CS49OnUbuntu1404

TurnToJPG -->


MySql Configuration

Configuration for mysql:

# cat >>/etc/mysql/conf.d/cloudstack.cnf <<EOM
> [mysqld]
> innodb_rollback_on_timeout=1
> innodb_lock_wait_timeout=600
> max_connections=350
> log-bin=mysql-bin
> binlog-format = 'ROW'
> EOM
# service mysql restart

Configuration:

# cloudstack-setup-databases cloud:engine123@localhost --deploy-as=root:engine123 -e file -m mymskey44 -k mydbkey00

NFS Server

# mkdir -p /export/primary /export/secondary
# apt-get install nfs-kernel-server
# vim /etc/exports 
/export  *(rw,async,no_root_squash,no_subtree_check)
# service nfs-kernel-server start
# exportfs -a
# showmount -e 127.0.0.1
Export list for 127.0.0.1:
/export *

CloudStack-Agent

安装:

# apt-get install cloudstack-agent

配置libvirt:

# vim /etc/libvirt/libvirtd.conf
listen_tls = 0
listen_tcp=1
tcp_port="16509"
auth_tcp="none"

配置libvirt-bin.conf文件:

# vim /etc/default/libvirt-bin
libvirtd_opts="-d -l"

配置qemu.conf文件,以侦听所有端口:

# vim /etc/libvirt/qemu.conf
vnc_listen = "0.0.0.0"

Systemvm

Install systemvm via:

# /usr/share/cloudstack-common/scripts/storage/secondary/cloud-install-sys-tmplt -m /mnt -u http://192.168.1.69/systemvm64template-4.6.0-kvm.qcow2.bz2 -h kvm -F

CloudStack Configuration

Zone Type:

/images/2017_05_03_11_40_48_764x641.jpg

Zone:

/images/2017_05_03_11_41_24_597x536.jpg

/images/2017_05_03_11_42_07_575x365.jpg

Click Next:

/images/2017_05_03_11_42_20_576x450.jpg

Guest Traffic:

/images/2017_05_03_11_42_56_654x273.jpg

Pod:

/images/2017_05_03_11_43_28_492x449.jpg

/images/2017_05_03_11_43_43_432x214.jpg

ClusterName:

/images/2017_05_03_11_43_58_504x242.jpg

Host:

/images/2017_05_03_11_44_20_485x391.jpg

Secondary Storage:

/images/2017_05_03_11_45_06_505x355.jpg

Launch zone:

/images/2017_05_03_11_45_29_641x410.jpg