CentOS 7.x Cloudstack 4.11 Management server setup
From Notes_Wiki
<yambe:breadcrumb>CentOS_7.x_Cloudstack_4.11|CentOS 7.x Cloudstack 4.11</yambe:breadcrumb>
CentOS 7.x Cloudstack 4.11 Management server setup
To create Cloudstack 4.11 management server on top of CentOS 7.4 use following steps:
- Full install CentOS 7.4. Basically we need at least:
- yum -y install epel-release
- yum groupinstall -y "Development Tools"
- yum install -y java-1.8.0-openjdk-devel.x86_64 genisoimage ws-commons-util MySQL-python createrepo
- Disable Selinux by editing /etc/selinux/config
- SELINUX=disabled
- Stop & Disable firewalld
- systemctl stop firewalld
- systemctl disable firewalld
- Ensure that java-1.8.0-openjdk is installed and configured as preferred java platform using:
- alternatives --display java
-
- and make sure that /etc/profile has same exported for JAVA_HOME
- export JAVA_HOME=<java-path>
- and make sure that /etc/profile has same exported for JAVA_HOME
- Set linux system hostname by editing /etc/hostname
- hostname.domain.com
-
- and also edit /etc/hosts to reflect the same:
- 192.168.1.2 hostname.domain.com hostname
- and also edit /etc/hosts to reflect the same:
- Install NTP client as following
- yum install ntp -y
- Edit /etc/ntp.conf
- server 192.168.2.2
-
- where 192.168.2.2 is the local ntp server
- Start and enable ntp service
- systemctl start ntpd
- systemctl enable ntpd
- Configuring cloudstack repository using '/etc/yum.repos.d/cloudstack.repo' with following contents
- [cloudstack]
- name=cloudstack
- baseurl=http://cloudstack.apt-get.eu/centos/7/4.11/
- enabled=1
- gpgcheck=0
- Install CloudStack Management package using:
- yum install cloudstack-management -y
- Initialize cloudstack DB using:
- cloudstack-setup-databases cloud:<clouduser-db-password>@<database-ip>:3306 --deploy-as=root:<rootuser-db-password> -i <management-server-ip>
- Persistently mount secondary storage (eg /mnt/secondary) on cloudstack management server using /etc/fstab
- Initialize Management Server using:
- cloudstack-setup-management
- Prepare the System VM Template for cloudstack 4.11 using:
- /usr/share/cloudstack-common/scripts/storage/secondary/cloud-install-sys-tmplt -m /mnt/secondary -u http://cloudstack.apt-get.eu/systemvm/4.11/systemvmtemplate-4.11.0-kvm.qcow2.bz2 -h kvm -F
-
- Here -m /mnt/secondary points to location of secondary storage mounted in previous steps
- Note that if version of cloudstack changes from 4.11 then above systemvm template URLs might also change.
- Check Management server status using:
- systemctl status cloudstack-management.service
- Create bridges for host and management communication eg cloudbr0, cloudbr1, etc. Compared to Creating bridge interfaces (br0) for virtual hosts to use shared interface also do following:
- In bridge configuration append:
- HOTPLUG=no
- DELAY=0
- STP=no
- In interface configuration append:
- HOTPLUG=no
-
- This is apart from normal TYPE=Bridge or BRIDGE=<bridge-name> etc. configuration already described in reference link above.
- In bridge configuration append:
- Setup at least one KVM host as described at CentOS 7.x Cloudstack 4.11 KVM Host setup
- Access cloudstack management at port 8080 at URL /client such as http://<cloudstack-management-ip>:8080/client/
Refer:
- http://docs.cloudstack.apache.org/projects/cloudstack-installation/en/4.11/hypervisor/kvm.html
- http://docs.cloudstack.apache.org/projects/cloudstack-installation/en/4.11/management-server/index.html#install-mgt
- http://cloudstack.apt-get.eu/systemvm/4.11/
- http://docs.cloudstack.apache.org/projects/cloudstack-installation/en/4.11/
- http://docs.cloudstack.apache.org/projects/cloudstack-administration/en/4.11/
<yambe:breadcrumb>CentOS_7.x_Cloudstack_4.11|CentOS 7.x Cloudstack 4.11</yambe:breadcrumb>