mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
Sync systemvm and systemvm64 build instructions
This commit is contained in:
parent
a24263fe81
commit
3df97bd663
@ -1,11 +1,11 @@
|
|||||||
# Update the box
|
# Update the box
|
||||||
apt-get -y update
|
apt-get -y update
|
||||||
#apt-get -y install linux-headers-$(uname -r) build-essential
|
|
||||||
#apt-get -y install zlib1g-dev libssl-dev libreadline-gplv2-dev
|
|
||||||
apt-get -y install curl unzip
|
apt-get -y install curl unzip
|
||||||
|
apt-get clean
|
||||||
|
|
||||||
# Set up sudo
|
# Set up sudo, TODO: Check security concerns
|
||||||
echo 'vagrant ALL=NOPASSWD:/bin/chmod, /bin/cp, /bin/mkdir, /bin/mount, /bin/umount' > /etc/sudoers.d/vagrant
|
echo 'vagrant ALL=NOPASSWD:/bin/chmod, /bin/cp, /bin/mkdir, /bin/mount, /bin/umount' > /etc/sudoers.d/vagrant
|
||||||
|
echo 'cloud ALL=NOPASSWD:/bin/chmod, /bin/cp, /bin/mkdir, /bin/mount, /bin/umount' > /etc/sudoers.d/cloud
|
||||||
|
|
||||||
# Tweak sshd to prevent DNS resolution (speed up logins)
|
# Tweak sshd to prevent DNS resolution (speed up logins)
|
||||||
echo 'UseDNS no' >> /etc/ssh/sshd_config
|
echo 'UseDNS no' >> /etc/ssh/sshd_config
|
||||||
|
|||||||
@ -19,7 +19,7 @@ set -x
|
|||||||
|
|
||||||
ROOTPW=password
|
ROOTPW=password
|
||||||
HOSTNAME=systemvm
|
HOSTNAME=systemvm
|
||||||
CLOUDSTACK_RELEASE=4.3.0
|
CLOUDSTACK_RELEASE=4.4.0
|
||||||
|
|
||||||
add_backports () {
|
add_backports () {
|
||||||
sed -i '/backports/d' /etc/apt/sources.list
|
sed -i '/backports/d' /etc/apt/sources.list
|
||||||
@ -27,7 +27,6 @@ add_backports () {
|
|||||||
apt-get update
|
apt-get update
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
install_packages() {
|
install_packages() {
|
||||||
DEBIAN_FRONTEND=noninteractive
|
DEBIAN_FRONTEND=noninteractive
|
||||||
DEBIAN_PRIORITY=critical
|
DEBIAN_PRIORITY=critical
|
||||||
@ -76,10 +75,11 @@ install_packages() {
|
|||||||
echo "iptables-persistent iptables-persistent/autosave_v6 boolean true" | debconf-set-selections
|
echo "iptables-persistent iptables-persistent/autosave_v6 boolean true" | debconf-set-selections
|
||||||
apt-get --no-install-recommends -q -y --force-yes install iptables-persistent
|
apt-get --no-install-recommends -q -y --force-yes install iptables-persistent
|
||||||
|
|
||||||
# Hyperv kvp daemon
|
# Hyperv kvp daemon - 64bit only
|
||||||
# Download the hv kvp daemon
|
# Download the hv kvp daemon
|
||||||
wget http://people.apache.org/~rajeshbattala/hv-kvp-daemon_3.1_amd64.deb
|
wget http://people.apache.org/~rajeshbattala/hv-kvp-daemon_3.1_amd64.deb
|
||||||
dpkg -i hv-kvp-daemon_3.1_amd64.deb
|
dpkg -i hv-kvp-daemon_3.1_amd64.deb
|
||||||
|
|
||||||
#libraries required for rdp client (Hyper-V)
|
#libraries required for rdp client (Hyper-V)
|
||||||
apt-get --no-install-recommends -q -y --force-yes install libtcnative-1 libssl-dev libapr1-dev
|
apt-get --no-install-recommends -q -y --force-yes install libtcnative-1 libssl-dev libapr1-dev
|
||||||
|
|
||||||
@ -221,7 +221,7 @@ configure_services() {
|
|||||||
snapshot_dir="/opt/cloudstack*"
|
snapshot_dir="/opt/cloudstack*"
|
||||||
cd /opt
|
cd /opt
|
||||||
wget --no-check-certificate $snapshot_url -O cloudstack.tar.gz
|
wget --no-check-certificate $snapshot_url -O cloudstack.tar.gz
|
||||||
tar -zxvf cloudstack.tar.gz
|
tar -zxvf cloudstack.tar.gz 'cloudstack-HEAD-???????/systemvm'
|
||||||
cp -rv $snapshot_dir/systemvm/patches/debian/config/* /
|
cp -rv $snapshot_dir/systemvm/patches/debian/config/* /
|
||||||
cp -rv $snapshot_dir/systemvm/patches/debian/vpn/* /
|
cp -rv $snapshot_dir/systemvm/patches/debian/vpn/* /
|
||||||
mkdir -p /usr/share/cloud/
|
mkdir -p /usr/share/cloud/
|
||||||
|
|||||||
@ -1,12 +1,10 @@
|
|||||||
# Update the box
|
# Update the box
|
||||||
apt-get -y update
|
apt-get -y update
|
||||||
#below are needed for ruby perhaps
|
|
||||||
#apt-get -y install linux-headers-$(uname -r) build-essential
|
|
||||||
#apt-get -y install zlib1g-dev libssl-dev libreadline-gplv2-dev
|
|
||||||
apt-get -y install curl unzip
|
apt-get -y install curl unzip
|
||||||
apt-get clean
|
apt-get clean
|
||||||
|
|
||||||
# Set up sudo, TODO: Check security concerns
|
# Set up sudo, TODO: Check security concerns
|
||||||
|
echo 'vagrant ALL=NOPASSWD:/bin/chmod, /bin/cp, /bin/mkdir, /bin/mount, /bin/umount' > /etc/sudoers.d/vagrant
|
||||||
echo 'cloud ALL=NOPASSWD:/bin/chmod, /bin/cp, /bin/mkdir, /bin/mount, /bin/umount' > /etc/sudoers.d/cloud
|
echo 'cloud ALL=NOPASSWD:/bin/chmod, /bin/cp, /bin/mkdir, /bin/mount, /bin/umount' > /etc/sudoers.d/cloud
|
||||||
|
|
||||||
# Tweak sshd to prevent DNS resolution (speed up logins)
|
# Tweak sshd to prevent DNS resolution (speed up logins)
|
||||||
|
|||||||
@ -19,7 +19,7 @@ set -x
|
|||||||
|
|
||||||
ROOTPW=password
|
ROOTPW=password
|
||||||
HOSTNAME=systemvm
|
HOSTNAME=systemvm
|
||||||
CLOUDSTACK_RELEASE=4.2.0
|
CLOUDSTACK_RELEASE=4.4.0
|
||||||
|
|
||||||
add_backports () {
|
add_backports () {
|
||||||
sed -i '/backports/d' /etc/apt/sources.list
|
sed -i '/backports/d' /etc/apt/sources.list
|
||||||
@ -51,6 +51,9 @@ install_packages() {
|
|||||||
# nfs irqbalance
|
# nfs irqbalance
|
||||||
apt-get --no-install-recommends -q -y --force-yes install irqbalance
|
apt-get --no-install-recommends -q -y --force-yes install irqbalance
|
||||||
|
|
||||||
|
# cifs client
|
||||||
|
apt-get --no-install-recommends -q -y --force-yes install samba-common
|
||||||
|
apt-get --no-install-recommends -q -y --force-yes install cifs-utils
|
||||||
|
|
||||||
# vpn stuff
|
# vpn stuff
|
||||||
apt-get --no-install-recommends -q -y --force-yes install xl2tpd bcrelay ppp ipsec-tools tdb-tools
|
apt-get --no-install-recommends -q -y --force-yes install xl2tpd bcrelay ppp ipsec-tools tdb-tools
|
||||||
@ -72,6 +75,9 @@ install_packages() {
|
|||||||
echo "iptables-persistent iptables-persistent/autosave_v6 boolean true" | debconf-set-selections
|
echo "iptables-persistent iptables-persistent/autosave_v6 boolean true" | debconf-set-selections
|
||||||
apt-get --no-install-recommends -q -y --force-yes install iptables-persistent
|
apt-get --no-install-recommends -q -y --force-yes install iptables-persistent
|
||||||
|
|
||||||
|
#libraries required for rdp client (Hyper-V)
|
||||||
|
apt-get --no-install-recommends -q -y --force-yes install libtcnative-1 libssl-dev libapr1-dev
|
||||||
|
|
||||||
# vmware tools
|
# vmware tools
|
||||||
apt-get --no-install-recommends -q -y --force-yes install open-vm-tools
|
apt-get --no-install-recommends -q -y --force-yes install open-vm-tools
|
||||||
# commented installaion of vmware-tools as we are using the opensource open-vm-tools:
|
# commented installaion of vmware-tools as we are using the opensource open-vm-tools:
|
||||||
@ -205,7 +211,7 @@ configure_services() {
|
|||||||
snapshot_dir="/opt/cloudstack*"
|
snapshot_dir="/opt/cloudstack*"
|
||||||
cd /opt
|
cd /opt
|
||||||
wget --no-check-certificate $snapshot_url -O cloudstack.tar.gz
|
wget --no-check-certificate $snapshot_url -O cloudstack.tar.gz
|
||||||
tar -zxvf cloudstack.tar.gz
|
tar -zxvf cloudstack.tar.gz 'cloudstack-HEAD-???????/systemvm'
|
||||||
cp -rv $snapshot_dir/systemvm/patches/debian/config/* /
|
cp -rv $snapshot_dir/systemvm/patches/debian/config/* /
|
||||||
cp -rv $snapshot_dir/systemvm/patches/debian/vpn/* /
|
cp -rv $snapshot_dir/systemvm/patches/debian/vpn/* /
|
||||||
mkdir -p /usr/share/cloud/
|
mkdir -p /usr/share/cloud/
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user