sher 发表于 2015-10-13 13:49:08

CloudStack install steps

1. set hostname like "a.b.c"
gedit /etc/hostname
hostname –-fqdn
2. install time server
sudo apt-get install openntpd


3. copy install package to ubuntu
4. apt-get install aptitude# for cloudstack package install
5. unpackge
tar xjvf CloudStack-oss-4.0.0-536.tar.bz2
./install.sh #install cloudstack manager server
M
#waiting for done

./install.sh #install DB
D
cloud-setup-databases cloud:cloudstack@localhost --deploy-as=root:cloudstack -e file -m cloudstack -k cloudstack


6. set xenserver
# ssh 192.168.10.10   #ssh xenserver
The authenticity of host '192.168.10.10 (192.168.10.10)' can't be established.
RSA key fingerprint is ae:5b:8a:dc:2a:c8:6c:56:f6:7a:48:02:e6:db:78:dd.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '192.168.10.10' (RSA) to the list of known hosts.
root@192.168.10.10's password:
Type "xsconsole" for access to the management console.
pwd
/root
mkdir tmp
cd tmp
wget http://download.cloud.com/releases/3.0.1/XS-6.0.2/xenserver-cloud-supp.tgz
--2012-06-29 21:55:08--http://download.cloud.com/releases/3.0.1/XS-6.0.2/xenserver-cloud-supp.tgz
Resolving download.cloud.com... 207.171.185.201
Connecting to download.cloud.com|207.171.185.201|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 3342001 (3.2M)
Saving to: `xenserver-cloud-supp.tgz'

100%[================================================================>] 3,342,001    217K/s   in 15s

2012-06-29 21:55:49 (214 KB/s) - `xenserver-cloud-supp.tgz' saved
tar xf xenserver-cloud-supp.tgz
ls
example-answerfile   post-install.shsrc                     xenserver-cloud-supp.tgz
packages.cloud-suppREADME         xenserver-cloud-supp.iso
xe-install-supplemental-pack xenserver-cloud-supp.iso
Installing 'XenServer Cloud Supp Pack'...

Preparing...                ###########################################
1:iptables               ########################################### [ 10%]
2:iptables-ipv6          ########################################### [ 20%]
3:arptables            ########################################### [ 30%]
4:iptables-debuginfo   ########################################### [ 40%]
5:ipset-modules-kdump-2.6########################################### [ 50%]
6:ipset-modules-xen-2.6.3########################################### [ 60%]
7:csp-pack               ########################################### [ 70%]
8:ebtables               ########################################### [ 80%]
9:ipset                  ########################################### [ 90%]
10:iptables-devel         ###########################################
Update sysctl to enable *tables checking
Memory required by all installed packages: 894697472
Truncating to static-max: 789839872
Setting VM.memory_target: 789839872
Pack installation successful.

xe-switch-network-backend bridge
Cleaning up old ifcfg files
Remove... ifcfg-xenbr0
Disabling openvswitch daemon
Configure system for bridge networking
You *MUST* now reboot your system
reboot


root@lum-CS:/# ssh 192.168.88.184
The authenticity of host '192.168.88.184 (192.168.88.184)' can't be established.
RSA key fingerprint is dc:ac:19:d9:56:5f:15:03:9f:60:5f:12:4a:7e:01:d0.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '192.168.88.184' (RSA) to the list of known hosts.
root@192.168.88.184's password:
Last login: Wed Mar 20 13:02:16 2013 from 192.168.88.190
Type "xsconsole" for access to the management console.
# pwd
/root
# mkdir tmp
# cd tmp
# wget http://download.cloud.com/releases/3.0.1/XS-6.0.2/xenserver-cloud-supp.tgz
--2013-03-20 13:09:40--http://download.cloud.com/releases/3.0.1/XS-6.0.2/xenserver-cloud-supp.tgz
Resolving download.cloud.com... 207.171.187.118
Connecting to download.cloud.com|207.171.187.118|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 3342001 (3.2M)
Saving to: `xenserver-cloud-supp.tgz'


100%[======================================>] 3,342,001    617K/s   in 8.8s   


2013-03-20 13:09:50 (369 KB/s) - `xenserver-cloud-supp.tgz' saved


# tar xf xenserver-cloud-supp.tgz
# ls
example-answerfile   README                  xenserver-cloud-supp.tgz
packages.cloud-suppsrc
post-install.sh      xenserver-cloud-supp.iso
# xe-install-supplemental-pack xenserver-cloud-supp.iso
Installing 'XenServer Cloud Supp Pack'...


Preparing...                ###########################################
1:iptables               ########################################### [ 10%]
2:iptables-ipv6          ########################################### [ 20%]
3:arptables            ########################################### [ 30%]
4:iptables-debuginfo   ########################################### [ 40%]
5:ipset-modules-kdump-2.6########################################### [ 50%]
6:ipset-modules-xen-2.6.3########################################### [ 60%]
7:csp-pack               ########################################### [ 70%]
8:ebtables               ########################################### [ 80%]
9:ipset                  ########################################### [ 90%]
10:iptables-devel         ###########################################
Update sysctl to enable *tables checking
Memory required by all installed packages: 314572800
Current target 314572800 greater, skipping
Pack installation successful.
# xe-switch-network-backend bridge
Cleaning up old ifcfg files
Remove... ifcfg-xenbr0
Disabling openvswitch daemon
Configure system for bridge networking
You *MUST* now reboot your system
# reboot
7. adduser cloud sudo
echo "%sudo ALL=(ALL:ALL) NOPASSWD:ALL" >> /etc/sudoers
chmod 777 /root
grep -i -E 'exception|unable|fail|invalid|leak|invalid|warn' /var/log/cloud/management/management-server.log


8. download vhd-util
wget http://download.cloud.com.s3.amazonaws.com/tools/vhd-util
mv vhd-util /usr/lib/cloud/common/scripts/vm/hypervisor/xenserver/         版权声明:本文为博主原创文章,未经博主允许不得转载。
页: [1]
查看完整版本: CloudStack install steps