cloudstack 开源虚拟化平台
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了cloudstack 开源虚拟化平台相关的知识,希望对你有一定的参考价值。
安装centOS 6.7
编辑/etc/yum/cloudstack.repo
[cloudstack] name=cloudstack baseurl=http://cloudstack.apt-get.eu/rhel/4.3/ enabled=1 gpgcheck=0
安装必要的软件
yum install -y setuptool yum install -y system-config-network-tui vi /etc/sysconfig/selinux yum -y groupinstall ‘Virtualization‘ ‘Virtualization Client‘ ‘Virtualzation Platform‘ ‘Virtualization Tools‘
安装mysql
yum -y install mysql-server
配置mysql
/etc/my.cnf innodb_rollback_on_timeout=1 innodb_lock_wait_timeout=600 max_connections=350 log-bin=mysql-bin binlog-format = ‘ROW‘ service mysqld start chkconfig mysqld on
安装nfs
yum -y install nfs-utils /etc/exports /export *(rw,async,no_root_squash)
/etc/sysconfig/nfs uncomment # LOCKD_TCPPORT=32803 LOCKD_UDPPORT=32769 MOUNTD_PORT=892 RQUOTAD_PORT=875 STATD_PORT=662 STATD_OUTGOING_PORT=2020
配置防火墙:
/etc/sysconfig/iptables -A INPUT -m state --state NEW -p udp --dport 111 -j ACCEPT -A INPUT -m state --state NEW -p tcp --dport 111 -j ACCEPT -A INPUT -m state --state NEW -p tcp --dport 2049 -j ACCEPT -A INPUT -m state --state NEW -p tcp --dport 32803 -j ACCEPT -A INPUT -m state --state NEW -p udp --dport 32769 -j ACCEPT -A INPUT -m state --state NEW -p tcp --dport 892 -j ACCEPT -A INPUT -m state --state NEW -p udp --dport 892 -j ACCEPT -A INPUT -m state --state NEW -p tcp --dport 875 -j ACCEPT -A INPUT -m state --state NEW -p udp --dport 875 -j ACCEPT -A INPUT -m state --state NEW -p tcp --dport 662 -j ACCEPT -A INPUT -m state --state NEW -p udp --dport 662 -j ACCEPT -A INPUT -m state --state NEW -p tcp --dport 3306 -j ACCEPT service rpcbind start service nfs start chkconfig rpcbind on chkconfig nfs on
开始安装cloudstack
yum -y install cloud-client cloudstack-setup-databases cloud:[email protected] --deploy-as=root:password cloudstack-setup-management /usr/share/cloudstack-common/scripts/storage/secondary/cloud-install-sys-tmplt -m /home/secondary -u http://download.cloud.com/templates/acton/acton-systemvm-02062012.qcow2.bz2 -h kvm -F /usr/share/cloudstack-common/scripts/storage/secondary/cloud-install-sys-tmplt -m /export/secondary -f /home/systemvm64template-2014-01-14-master-kvm.qcow2.bz2 -h kvm -F http://cloudstack.apt-get.eu/systemvm/ http://cloudstack.apt-get.eu/systemvm/systemvm64template-2014-01-14-master-kvm.qcow2.bz2 yum -y install cloud-agent cloudstack-setup-agent vi /etc/cloudstack/agent/agent.properties view sourceprint? 1 private.network.device 2 public.network.devic
配置:
vi /etc/libvirt/qemu.conf vnc_listen=0.0.0.0 vi /etc/libvirt/libvirtd.conf listen_tls = 0 listen_tcp = 1 tcp_port = "16059" auth_tcp = "none" mdns_adv = 0 vi /etc/sysconfig/libvirtd LIBVIRTD_ARGS="--listen" service libvirtd restart
查看CPU支持
lsmod | grep kvm modprobe kvm_intel ##intel modprobe kvm_amd ##amd
本文出自 “小地方” 博客,请务必保留此出处http://lazypaul.blog.51cto.com/1032344/1912403
以上是关于cloudstack 开源虚拟化平台的主要内容,如果未能解决你的问题,请参考以下文章