Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
60 commits
Select commit Hold shift + click to select a range
49cbb4e
CLOUDSTACK-7143: upgrade systemvm to latest debian stable, 7.6.0.
lsimons Jul 21, 2014
35b1875
CLOUDSTACK-7143: split base.sh into its two functions.
lsimons Jul 21, 2014
fb258b5
CLOUDSTACK-7143: move network tuning from cleanup.sh to its own script.
lsimons Jul 21, 2014
50e2c01
CLOUDSTACK-7143: merge systemvm templates, step 1: remove differences
lsimons Jul 21, 2014
03dba3d
CLOUDSTACK-7143: merge systemvm templates, step 2: only one template …
lsimons Jul 21, 2014
afe696e
CLOUDSTACK-7143: remove 'manual' from preseed config. No other changes.
lsimons Jul 21, 2014
d7aca05
CLOUDSTACK-7143: reformat definition.rb code. No other changes.
lsimons Jul 21, 2014
6b36577
CLOUDSTACK-7143: move add_backports to apt_upgrade.sh
lsimons Jul 21, 2014
751a4d2
CLOUDSTACK-7143: cleanup apt_upgrade.sh code
lsimons Jul 21, 2014
6129113
CLOUDSTACK-7143: add vagrant_box_build_time file that's standard with…
lsimons Jul 21, 2014
58a11d3
CLOUDSTACK-7143: cleanup configure_gruh.sh code
lsimons Jul 21, 2014
82dedcc
CLOUDSTACK-7143: split login config out from postinstall.sh
lsimons Jul 21, 2014
3bf9ddf
CLOUDSTACK-7143: cleanup configure_login.sh code
lsimons Jul 21, 2014
ae65bf1
CLOUDSTACK-7143: split locale config into its own file
lsimons Jul 21, 2014
d87d60a
CLOUDSTACK-7143: cleanup configure_locale.sh code
lsimons Jul 21, 2014
77677a3
CLOUDSTACK-7143: move fix_acpid to its own file
lsimons Jul 21, 2014
db8eb12
CLOUDSTACK-7143: cleanup configure_acpid.sh code
lsimons Jul 21, 2014
5003845
CLOUDSTACK-7143: cleanup cleanup.sh code
lsimons Jul 21, 2014
6e714dc
CLOUDSTACK-7143: split connection tracking config into its own file
lsimons Jul 21, 2014
0addd5a
CLOUDSTACK-7143: move networking logic from postinstall.sh to configu…
lsimons Jul 21, 2014
fc87fc4
CLOUDSTACK-7143: cleanup configure_networking.sh code
lsimons Jul 21, 2014
95d77c2
CLOUDSTACK-7143: move install_packages from postinstall.sh to its own…
lsimons Jul 21, 2014
cdb30cc
CLOUDSTACK-7143: consider vhdutil a software package
lsimons Jul 21, 2014
0e62aab
CLOUDSTACK-7143: reorg of install_systemvm_packages.sh (no logic chan…
lsimons Jul 21, 2014
3ac947f
CLOUDSTACK-7143: collapse apt-get install onto one line
lsimons Jul 21, 2014
207c50a
CLOUDSTACK-7143: rename postinstall.sh to represent what remains
lsimons Jul 21, 2014
b9f606b
CLOUDSTACK-7143: cleanup configure_systemvm_services.sh code
lsimons Jul 21, 2014
30fe938
CLOUDSTACK-7143: tune timeouts to expect about <=~60 min build
lsimons Jul 21, 2014
1567380
CLOUDSTACK-7143: cleanup zerodisk.sh code
lsimons Jul 21, 2014
44a888a
CLOUDSTACK-7143: cleanup configure_conntrack.sh code
lsimons Jul 21, 2014
1af56f8
CLOUDSTACK-7143: license headers on all the systemvm scripts
lsimons Jul 21, 2014
8883c41
CLOUDSTACK-7143: improve build.sh ergonomics
lsimons Jul 21, 2014
9b5d5ff
CLOUDSTACK-7143: improve build.sh failure handling and recovery
lsimons Jul 21, 2014
674fa8d
CLOUDSTACK-7143: add the ability to inject a custom SSH key
lsimons Jul 21, 2014
74c3815
CLOUDSTACK-7143: use shar to inject cloud-scripts from working copy
lsimons Jul 21, 2014
aa6f5a3
CLOUDSTACK-7143: add tests for the appliance build
lsimons Jul 21, 2014
f4bc5c4
CLOUDSTACK-7143: fix a bug in the debianbase template that was refere…
lsimons Jul 22, 2014
e1beceb
CLOUDSTACK-7143: fix a bug where a script file rename wasn't propagat…
lsimons Jul 22, 2014
751e778
CLOUDSTACK-7143: attempt at a reliable way to set up rvm/bundler on j…
lsimons Jul 22, 2014
11b399f
CLOUDSTACK-7143: install openssl early enough to allow generating pas…
lsimons Jul 22, 2014
19addac
CLOUDSTACK-7143: make script compatible with linux mktemp
lsimons Jul 22, 2014
cb2b2d1
CLOUDSTACK-7143: sometimes the consolidated 'apt' command runs out of…
lsimons Jul 22, 2014
b8d1cd0
CLOUDSTACK-7143: initial apt-upgrade still running out of space (upgr…
lsimons Jul 22, 2014
10afa81
CLOUDSTACK-7143: fix the fix for rvm/ruby/bundler setup on jenkins
lsimons Jul 22, 2014
3cac804
CLOUDSTACK-7143: fix do_signature to account for change to install_cl…
lsimons Jul 22, 2014
52a8596
CLOUDSTACK-7143: a better fix for kernel upgrade disk space problems
lsimons Jul 22, 2014
20821e2
CLOUDSTACK-7143: fix a missing apt-get update
lsimons Jul 22, 2014
9633c4a
CLOUDSTACK-7143: attempt to export a vagrant box
lsimons Jul 23, 2014
84c29f9
CLOUDSTACK-7143: more robust box cleanup
lsimons Jul 25, 2014
3ef8ef7
CLOUDSTACK-7143: more reliable support for vagrant box export
lsimons Jul 25, 2014
f5e6eb9
CLOUDSTACK-7143: try to fix jenkins problems with last 2 commits
lsimons Jul 25, 2014
aa54c95
CLOUDSTACK-7143: remove erroneous backticks
lsimons Jul 25, 2014
13b227f
CLOUDSTACK-7143: Fixed box file for virtualbox
Jul 28, 2014
511e12e
CLOUDSTACK-7143: work on vagrant box export
lsimons Jul 29, 2014
4118c9c
CLOUDSTACK-7143: only archive the zipped hyperv image
lsimons Jul 31, 2014
d68d7ed
CLOUDSTACK-7143: survive / in branch names
lsimons Sep 4, 2014
d3af68c
CLOUDSTACK-7143: don't call rvm from build
lsimons Sep 17, 2014
aeb5007
CLOUDSTACK-7143: note shar dependency
lsimons Sep 18, 2014
4e5ab7d
CLOUDSTACK-7143: protect against old ruby
lsimons Sep 19, 2014
c2e4876
CLOUDSTACK-7143: attempt to be safer when cleaning up
lsimons Sep 22, 2014
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions tools/appliance/Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,4 @@
source 'https://rubygems.org'
gem 'veewee', :git => 'https://github.com/jedi4ever/veewee.git'
gem 'em-winrm'
gem 'sys-proctable'
38 changes: 35 additions & 3 deletions tools/appliance/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,11 @@ under the License.

# Setting up Tools and Environment

- Install VirtualBox 4.2 or latest
- Tool for exporting appliances: qemu-img, vboxmanage, vhd-util
- Install latest VirtualBox (at least 4.2)
- Install tools for exporting appliances: qemu-img, vboxmanage, vhd-util
- Install [RVM](https://rvm.io/rvm/install)
- Install shar
yum install sharutils
- Setup paths:
export PATH=~/.rvm/bin:$PATH
- Install Ruby 1.9.3, if it installed some other version:
Expand All @@ -40,12 +42,36 @@ Note, gem may require gcc-4.2, make sure link exists:

sudo ln -s /usr/bin/gcc /usr/bin/gcc-4.2

# Setting up jenkins (CI) builds

All the tools listed above are expected to be available. If you follow

http://rvm.io/integration/jenkins

then you'll need to do a bit of logic to load RVM in jenkins. In the
build script you put into jenkins, start it with
```
#!/bin/bash -l
```

to ensure a login shell, then add something like
```
# inspired by https://github.com/CloudBees-community/rubyci-clickstart/blob/master/bin/run-ci
# also see https://rvm.io/integration/jenkins
# .rvmrc won't get trusted/auto-loaded by jenkins by default
export VAGRANT_HOME=$HOME/.vagrant.d-release-cloudstack
rvm use ruby-1.9.3@vagrant-release-cloudstack --create
# do not use --deployment since that requires Gemfile.lock...and we prefer an up-to-date veewee
bundle_args="--path vendor/bundle"
```


# How to build SystemVMs automatically

Just run build.sh, it will export archived appliances for KVM, XenServer,
VMWare and HyperV in `dist`:

sh build.sh [systemvmtemplate|systemvmtemplate64]
bash build.sh [systemvmtemplate|systemvmtemplate64]

# Building SystemVM template appliance manually

Expand All @@ -68,6 +94,12 @@ Halt the box:

Now VirtualBox can be used to export appliance.

To build the systemvm64template by hand using veewee, set VM_ARCH=amd64 and use
the systemvmtemplate:

export VM_ARCH=amd64
cp -r definitions/systemvmtemplate definitions/systemvm64template
veewee vbox build 'systemvm64template'

Trobuleshooting
===============
Expand Down
Loading