Posts Tagged 'KVM Host'

CloudStack KVM Host Installation

CloudStack Version 4.0
OS Version Ubuntu Server 12.04, 64 bit

 

  1. Install Ubuntu Server 12.04, 64 bit, you can download it from http://stingray.cyber.net.pk/pub/ubuntu-releases//precise/ubuntu-12.04.2-server-amd64.iso
  2. Set root password using these commands
    1. a.      sudo su
    2. b.      Enter your password
    3. c.       passwd
    4. d.      Enter and confirm your password for root user
  3. Assign static IP address to Ethernet card with these commands
    1. a.      vim /etc/network/interfaces
    2. b.      Press insert button to change the editor to insert mode
    3. c.       Change

                                                  i.      auto eth0

                                                ii.      iface eth0 inet dhcp

  1. d.      To

                                                  i.      auto eth0

                                                ii.      iface eth0 inet static

                                              iii.      address xxx.xxx.xxx.xxx

                                               iv.      netmask xxx.xxx.xxx.xxx

                                                 v.      gateway xxx.xxx.xxx.xxx

  1. e.       Restart network service

                                                  i.      /etc/init.d/networking restart

  1. Install SSH server to allow ssh access to this machine
    1. a.      apt-get install ssh
  2. Configure repository for CloudStack
    1. vim /etc/apt/sources.list.d/cloudstack.list
    2. b.      Write to file

                                                  i.      deb http://cloudstack.apt-get.eu/ubuntu precise 4.0

  1. c.       Save the file
  2. d.      wget -O – http://cloudstack.apt-get.eu/release.asc | apt-key add –
  3. e.       apt-get update
  4. Install NTP server
    1. a.      apt-get install openntpd
  5. Install cloud agent
    1. a.      apt-get install cloud-agent
  6. Configure libvirt
    1. a.      vim /etc/libvirt/libvirtd.conf, and uncomment the below lines

                                                   i.      listen_tls = 0

                                                 ii.      listen_tcp = 1

                                               iii.      tcp_port = 16059

                                                iv.      auth_tcp = “none”

                                                  v.      mdns_adv = 0

  1. b.      Save file and close it
  2. c.       vim /etc/init/libvirt-bin.conf

                                                   i.      Modify libvirtd_opts to “-d –l”

  1. d.      Save file and close it
  2. e.       service libvirt-bin restart
  3. 9.      vim /etc/idmap.conf
    1. a.      Uncomment Domain and make it same to the management server
  4. Configure Firewall
    1. a.      dpkg –list ‘apparmor’
    2. b.      ln -s /etc/apparmor.d/usr.sbin.libvirtd /etc/apparmor.d/disable/
    3. c.       ln -s /etc/apparmor.d/usr.lib.libvirt.virt-aa-helper /etc/apparmor.d/disable/
    4. d.      apparmor_parser -R /etc/apparmor.d/usr.sbin.libvirtd
    5. e.       apparmor_parser -R /etc/apparmor.d/usr.lib.libvirt.virt-aa-helper
  5. Open Ports
    1. a.      ufw allow proto tcp from any to any port 22
    2. b.      ufw allow proto tcp from any to any port 1798
    3. c.       ufw allow proto tcp from any to any port 16509
    4. d.      ufw allow proto tcp from any to any port 5900:6100
    5. e.       ufw allow proto tcp from any to any port 49152:49216
  6. System Reboot

Just access cloud stack management interface and add the host.


Asp.Net Problems and their Solutions