Cloudstack 4.5基础网络架构部署——cloudstack management server(01)
分为两部分:
1.网络环境
2.管理服务器安装
1.1选择服务器
CentOS-6.6-x86_64-minimal.iso
1.2设置ifcfg-eth0
Vi /etc/sysconfig/network-scripts/ifcfg-eth0 DEVICE=eth0 HWADDR=52:54:00:B9:A6:C0 NM_CONTROLLED=no ONBOOT=yes BOOTPROTO=none IPADDR=172.16.101.127 NETMASK=255.255.0.0 GATEWAY=172.16.101.252 DNS1=8.8.8.8 DNS2=8.8.4.4
1.3设置Hostname
Vi /etc/sysconfig/network ... NAMEHOST=cloudstack01 Vi /etc/hosts ... 172.16.101.127 cloudstack01
1.4关闭Selinux
setenforce 0 vi /etc/selinux/config # This file controls the state of SELinux on the system. # SELINUX= can take one of these three values: # enforcing - SELinux security policy is enforced. # permissive - SELinux prints warnings instead of enforcing. # disabled - No SELinux policy is loaded. SELINUX=permissive # SELINUXTYPE= can take one of these two values: # targeted - Targeted processes are protected, # mls - Multi Level Security protection. SELINUXTYPE=targeted
service network restart
1.5设置yum源
Vi /etc/yum.repo.d/cloudstack [cloudstack] name=cloudstack baseurl=http://cloudstack.apt-get.eu/rhel/4.5/ enabled=1 gpgcheck=0
1.6安装NTP服务
yum -y install ntp chkconfig ntpd on service ntpd start
2.1安装MySQL
yum -y install mysql-server vi /etc/my.cnf [mysqld] ... 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
2.2安装cloudstack且连接数据库
yum -y install cloudstack-management cloudstack-setup-databases cloud:172.16.101.127@localhost --deploy-as=root:123456 /etc/init.d/cloustack-management start