CS49OnUbuntu1404
May 3, 2017
Technology
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:
Zone:
Click Next:
Guest Traffic:
Pod:
ClusterName:
Host:
Secondary Storage:
Launch zone: