Cloudstack 4.1 Host (Agent) Installation


CloudStack is now at 4.1 and there have been many changes. This means that the installation process has also changed so I wanted to update the process I outlined from a previous post (http://s10758.p20.sites.pressdns.com/?p=2093) for CloudStack 4.1. I will outline some of those changes, which is really only one for the kvm host server, to help you easily install CloudStack on CentOS. This post will focus on the kvm host server.

Host Server Installation

This process outlines the steps for installing the Cloudstack KVM virtualization host server on CentOS 6.x. The Cloudstack management server is supported on other versions of linux but they will not be covered in this document.

  1. Install the linux OS. I start off with CentOS 6.3 x64 minimal.
  2. Upgrade the linux OS [# yum update]
  3. Edit the SELinux configuration file, set “SELINUX=Permissive” [# vi /etc/selinux/config]
  4. Reboot
  5. Configure the cloudstack repo [# vi /etc/yum.repos.d/cloudstack.repo]
  6. Add lines to cloudstack.repo and save the file: Note: The baseurl has changed from 4.0 to 4.1
    [cloudstack]
    name=cloudstack
    baseurl=http://cloudstack.apt-get.eu/rhel/4.1/
    enabled=1
    gpgcheck=0
  7. Install Network Time Protocol (NTP) [# yum install ntp -y]
  8. Install Cloudstack components [# yum install cloudstack-agent -y]
  9. Modify the libvirtd configuration [# vi /etc/libvirt/libvirtd.conf]
    • listen_tls = 0
    • listen_tcp = 1
    • tcp_port = 16059
    • auth_tcp = “none”
    • mdns_adv = 0
  10. Also edit [# vi /etc/sysconfig/libvirtd]
    • LIBVIRTD_ARGS=”-listen”
  11. Append the below section into [# vi /etc/cgconfig.conf]
    group virt {
        cpu {
            cpu.shares = 9216;
        }
    }
  12. Restart cgconfig service [# service cgconfig restart]
  13. Restart libvirtd service [# service libvirtd restart]
  14. Restart cloud-agent service [# service cloudstack-agent start]
  15. Start NTP service [# service ntpd start]
  16. Configure NTP service to run at startup [# chkconfig ntpd on]
  17. Next follow this post to set up your networking bridge. http://s10758.p20.sites.pressdns.com/2020/06/18/cloudstack-cloud-agent-dead-but-subsys-locked/