Skip to content

Commit 56a3526

Browse files
committed
Merge release branch 4.9 to master
* 4.9: CLOUDSTACK-9447: fix build and upgrade to debian 7.11 iso
2 parents 3afedbb + bdc409c commit 56a3526

File tree

8 files changed

+30
-29
lines changed

8 files changed

+30
-29
lines changed

tools/appliance/.ruby-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.9.3-p484
1+
2.3.0p0

tools/appliance/.rvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
# specific language governing permissions and limitations
1616
# under the License.
1717

18-
rvm use ruby-1.9.3@vagrant-release-cloudstack --create
18+
rvm use ruby-2.3.0@vagrant-release-cloudstack --create
1919
export VAGRANT_HOME=$HOME/.vagrant.d-release-cloudstack
2020
bundle check > /dev/null 2>&1
2121
RETVAL=$?

tools/appliance/Gemfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@
1616
# under the License.
1717

1818
source 'https://rubygems.org'
19-
# gem 'veewee', :git => 'https://github.com/jedi4ever/veewee.git'
19+
2020
gem 'veewee', '~> 0.4.5.1'
2121
gem 'em-winrm'
2222
gem 'sys-proctable'
23+
gem 'net-scp'
24+
gem 'net-ssh'

tools/appliance/README.md

Lines changed: 12 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -19,17 +19,17 @@ under the License.
1919

2020
# Setting up Tools and Environment
2121

22-
- Install latest VirtualBox (at least 4.2)
23-
- Install tools for exporting appliances: qemu-img, vboxmanage, vhd-util
22+
- Install latest VirtualBox (5.0+)
23+
- Install tools for exporting appliances: qemu-img, vboxmanage, vhd-util, ovftool
2424
- Install [RVM](https://rvm.io/rvm/install)
25-
- Install shar
26-
yum install sharutils
25+
- Install dependencies (tested on Ubuntu 16.04):
26+
apt-get install sharutils libxslt1-dev libxml2-dev zlib1g-dev build-essential ruby ruby-bundler ruby-dev qemu-utils blktap-utils faketime
2727
- Setup paths:
2828
export PATH=~/.rvm/bin:$PATH
29-
- Install Ruby 1.9.3, if it installed some other version:
30-
rvm install 1.9.3
31-
- Set rvm to use that 1.9.3
32-
rvm use ruby-1.9.3
29+
- Install Ruby 2.3.0, if it installed some other version:
30+
rvm install 2.3.0
31+
- Set rvm to use that 2.3.0
32+
rvm use ruby-2.3.0
3333
- Install bundler: (if you get any openssl issue see https://rvm.io/packages/openssl)
3434
gem install bundler
3535

@@ -38,10 +38,6 @@ All the dependencies will be fetched automatically.
3838
To save some time if you've downloaded iso of your distro, put the isos in:
3939
tools/appliance/iso/
4040

41-
Note, gem may require gcc-4.2, make sure link exists:
42-
43-
sudo ln -s /usr/bin/gcc /usr/bin/gcc-4.2
44-
4541
# Setting up jenkins (CI) builds
4642

4743
All the tools listed above are expected to be available. If you follow
@@ -69,9 +65,10 @@ bundle_args="--path vendor/bundle"
6965
# How to build SystemVMs automatically
7066

7167
Just run build.sh, it will export archived appliances for KVM, XenServer,
72-
VMWare and HyperV in `dist`:
68+
VMWare and HyperV in `dist` directory:
7369

74-
bash build.sh [systemvmtemplate|systemvmtemplate64]
70+
bundle install
71+
bash build.sh systemvm64template
7572

7673
# Building SystemVM template appliance manually
7774

@@ -103,7 +100,7 @@ the systemvmtemplate:
103100

104101
Troubleshooting
105102
===============
106-
If you see following line in the screen, then veewee is failing
103+
If you see following line in the screen, then veewee is failing
107104
extracting vboxmanage version.
108105

109106
Downloading vbox guest additions iso v - http://download.virtualbox.org/vi

tools/appliance/build.sh

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,13 @@ echo $@ | grep '\-h' >/dev/null && usage
6464
# make
6565
# sudo make install
6666
# * vhd-util
67+
# Install on yum-based:
6768
# sudo yum -y install python-devel dev86 iasl iasl-devel libuuid libuuid-devel \
6869
# glib-devel glib2 glib2-devel yajl yajl-devel
70+
# Install on apt-based:
71+
# sudo apt-get install -y python python-dev bcc bin86 iasl uuid-dev \
72+
# libglib2.0-dev libyajl-dev build-essential libc6-dev zlib1g-dev libncurses5-dev \
73+
# patch iasl libbz2-dev e2fslibs-dev xz-utils gettext
6974
# wget -q http://bits.xensource.com/oss-xen/release/4.2.0/xen-4.2.0.tar.gz
7075
# tar xzvf xen-4.2.0.tar.gz
7176
# cd xen-4.2.0/tools/
@@ -77,7 +82,7 @@ echo $@ | grep '\-h' >/dev/null && usage
7782
# sudo ldconfig
7883
# sudo cp blktap2/vhd/vhd-util /usr/lib64/cloud/common/scripts/vm/hypervisor/xenserver
7984
# faketime 2010-01-01 vhd-util convert
80-
85+
#
8186
set -e
8287

8388
###
@@ -529,8 +534,6 @@ function vmware_export() {
529534
stage_vmx ${appliance_build_name}-vmware ${appliance_build_name}-vmware.vmdk
530535
ovftool ${appliance_build_name}-vmware.vmx ${appliance_build_name}-vmware.ova
531536
fi
532-
bzip2 "${appliance_build_name}-vmware.vmdk"
533-
mv "${appliance_build_name}-vmware.vmdk.bz2" dist/
534537
mv ${appliance_build_name}-vmware.ova dist/
535538
log INFO "${appliance} exported for VMWare: dist/${appliance_build_name}-vmware.ova"
536539
}

tools/appliance/definitions/systemvmtemplate/configure_systemvm_services.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ function install_cloud_scripts() {
3737
chmod +x /opt/cloud/bin/* \
3838
/root/{clearUsageRules.sh,reconfigLB.sh,monitorServices.py} \
3939
/etc/init.d/{cloud,cloud-early-config,cloud-passwd-srvr,postinit} \
40-
/etc/cron.daily/cloud-cleanup \
4140
/etc/profile.d/cloud.sh
4241

4342
chkconfig --add cloud-early-config

tools/appliance/definitions/systemvmtemplate/definition.rb

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,15 @@
2727
architectures = {
2828
:i386 => {
2929
:os_type_id => 'Debian',
30-
:iso_file => 'debian-7.9.0-i386-netinst.iso',
31-
:iso_src => 'http://cdimage.debian.org/cdimage/archive/7.9.0/i386/iso-cd/debian-7.9.0-i386-netinst.iso',
32-
:iso_md5 => 'e101a11ddb31f85acef542df1a49bf57',
30+
:iso_file => 'debian-7.11.0-i386-netinst.iso',
31+
:iso_src => 'http://cdimage.debian.org/cdimage/archive/7.11.0/i386/iso-cd/debian-7.11.0-i386-netinst.iso',
32+
:iso_md5 => '75055a694508f5b891038ec12d703c9e',
3333
},
3434
:amd64 => {
3535
:os_type_id => 'Debian_64',
36-
:iso_file => 'debian-7.9.0-amd64-netinst.iso',
37-
:iso_src => 'http://cdimage.debian.org/cdimage/archive/7.9.0/amd64/iso-cd/debian-7.9.0-amd64-netinst.iso',
38-
:iso_md5 => '774d1fc8c5364e63b22242c33a89c1a3'
36+
:iso_file => 'debian-7.11.0-amd64-netinst.iso',
37+
:iso_src => 'http://cdimage.debian.org/cdimage/archive/7.11.0/amd64/iso-cd/debian-7.11.0-amd64-netinst.iso',
38+
:iso_md5 => '096c1c18b44c269808bd815d58c53c8f'
3939
}
4040
}
4141

tools/appliance/definitions/systemvmtemplate/install_systemvm_packages.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ function install_packages() {
6363
nfs-common \
6464
samba-common cifs-utils \
6565
xl2tpd bcrelay ppp ipsec-tools tdb-tools \
66-
openswan=1:2.6.37-3 \
66+
openswan=1:2.6.37-3+deb7u1 \
6767
xenstore-utils libxenstore3.0 \
6868
conntrackd ipvsadm libnetfilter-conntrack3 libnl-3-200 libnl-genl-3-200 \
6969
ipcalc \

0 commit comments

Comments
 (0)