CentOS 7.x Cloudstack 4.11 Management server setup

From Notes_Wiki
Revision as of 16:16, 28 August 2022 by Saurabh (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Home > CentOS > CentOS 7.x > CentOS 7.x Cloudstack 4.11> 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:

  1. 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
  2. Disable Selinux by editing /etc/selinux/config
    SELINUX=disabled
  3. Stop & Disable firewalld
    systemctl stop firewalld
    systemctl disable firewalld
  4. 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>
  5. 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
  6. Install NTP client as following
    1. yum install ntp -y
    2. Edit /etc/ntp.conf
      server 192.168.2.2
      where 192.168.2.2 is the local ntp server
  7. Start and enable ntp service
    systemctl start ntpd
    systemctl enable ntpd
  8. 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
  9. Install CloudStack Management package using:
    yum install cloudstack-management -y
  10. Initialize cloudstack DB using:
    cloudstack-setup-databases cloud:<clouduser-db-password>@<database-ip>:3306 --deploy-as=root:<rootuser-db-password> -i <management-server-ip>
  11. Persistently mount secondary storage (eg /mnt/secondary) on cloudstack management server using /etc/fstab
  12. Initialize Management Server using:
    cloudstack-setup-management
  13. 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.
  14. Check Management server status using:
    systemctl daemon-reload
    systemctl status cloudstack-management.service
  15. 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:
    1. In bridge configuration append:
      HOTPLUG=no
      DELAY=0
      STP=no
    2. 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.
  16. Setup at least one KVM host as described at CentOS 7.x Cloudstack 4.11 KVM Host setup
  17. Access cloudstack management at port 8080 at URL /client such as http://<cloudstack-management-ip>:8080/client/


Refer:


Home > CentOS > CentOS 7.x > CentOS 7.x Cloudstack 4.11> CentOS 7.x Cloudstack 4.11 Management server setup