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
[root@cloudstack .ssh]# 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.
[root@hpxs1 ~] pwd
/root
[root@hpxs1 ~] mkdir tmp
[root@hpxs1 ~] cd tmp
[root@hpxs1 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) [application/x-tar]
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 [3342001/3342001]
[root@hpxs1 tmp] tar xf xenserver-cloud-supp.tgz
[root@hpxs1 tmp] ls
example-answerfile   post-install.sh  src                       xenserver-cloud-supp.tgz
packages.cloud-supp  README           xenserver-cloud-supp.iso
[root@hpxs1 tmp] xe-install-supplemental-pack xenserver-cloud-supp.iso
Installing 'XenServer Cloud Supp Pack'...
 
Preparing...                ########################################### [100%]
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         ########################################### [100%]
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.
[root@hpxs1 tmp]
[root@hpxs1 tmp] 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
[root@hpxs1 tmp] 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.
[root@xenserver602-max ~]# pwd
/root
[root@xenserver602-max ~]# mkdir tmp
[root@xenserver602-max ~]# cd tmp
[root@xenserver602-max 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) [application/x-tar]
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 [3342001/3342001]


[root@xenserver602-max tmp]# tar xf xenserver-cloud-supp.tgz 
[root@xenserver602-max tmp]# ls
example-answerfile   README                    xenserver-cloud-supp.tgz
packages.cloud-supp  src
post-install.sh      xenserver-cloud-supp.iso
[root@xenserver602-max tmp]# xe-install-supplemental-pack xenserver-cloud-supp.iso 
Installing 'XenServer Cloud Supp Pack'...


Preparing...                ########################################### [100%]
  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         ########################################### [100%]
Update sysctl to enable *tables checking
Memory required by all installed packages: 314572800
Current target 314572800 greater, skipping
Pack installation successful.
[root@xenserver602-max tmp]# 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
[root@xenserver602-max tmp]# 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/
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值