Cloudstack Host (Agent) Installation (4.0.2)

Overview

CloudStack is an open source software cloud controller for building private, public and hybrid IaaS environments. CloudStack lets you pool and manage compute, storage and network resources all from its inviting web interface. In this post I’ll show how to install the management server.

Lets take a look at the high level architecture of Cloudstack. It very simple consisting of these components:

  • Management Server: [cloud-client]
  • Mysql Server: [mysql-server]
  • Usage Server: [cloud-usage]
  • Agent (KVM): [cloud-agent]

The components can be separated by Management Server and Agent where they would be installed as such.

  • Management Server: [cloud-client, mysql-server, cloud-awsapi, cloud-usage]
  • Agent Server: [cloud-agent & cloud-system-iso]

Installed Packages:

  • cloud-python-4.0.2-1.el6.x86_64
  • cloud-utils-4.0.2-1.el6.x86_64
  • cloud-deps-4.0.2-1.el6.x86_64
  • cloud-agent-libs-4.0.2-1.el6.x86_64
  • cloud-scripts-4.0.2-1.el6.x86_64
  • cloud-core-4.0.2-1.el6.x86_64
  • cloud-agent-4.0.2-1.el6.x86_64

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:

  7. [cloudstack]
    name=cloudstack
    baseurl=http://cloudstack.apt-get.eu/rhel/4.0/
    enabled=1
    gpgcheck=0
    
  8. Install Network Time Protocol (NTP) [# yum install ntp -y]

  9. Install Cloudstack components [# yum install cloud-agent -y]

  10. Modify the libvirtd configuration [# vi /etc/libvirt/libvirtd.conf]
    • listen_tls = 0
    • listen_tcp = 1
    • tcp_port = 16059
    • auth_tcp = “none”
    • mdns_adv = 0
  11. Also edit [# vi /etc/sysconfig/libvirtd]
    • LIBVIRTD_ARGS=“-listen”
  12. Append the below section into [# vi /etc/cgconfig.conf]

  13. group virt {
          cpu {
                   cpu.shares = 9216;
          }
      }
    
  14. Restart cgconfig service [# service cgconfig restart]

  15. Restart libvirtd service [# service libvirtd restart]

  16. Restart cloud-agent service [# service cloud-agent start]

  17. Start NTP service [# service ntpd start]

  18. Configure NTP service to run at startup [# chkconfig ntpd on]

Cloudstack Host (Agent) Installation (4.0.2) originally appeared on theHyperadvisor by Antone Heyward

Tags: , ,

2 Responses to Cloudstack Host (Agent) Installation (4.0.2)

  1. Joe on July 7, 2020 at 3:24 am

    So .. what’s next ?

  2. Antone Heyward on July 7, 2020 at 9:07 am

    Check out my 4.1 management and post management install blog posts. More posts on CloudStack are coming soon.

Leave a Reply

Disclaimer:

The opinions expressed on this blog are solely those of the individual that left it, and do not reflect the opinions of their employer.