CloudStack CentOS Template – Install From ISO

This is a part 1/3 creating CentOS 6.x CloudStack template with the following features:

  1. Minimal and fully updated CentOS 6.5 for 32-bit and 64-bit platforms with guest OS tools
  2. Root password management using cloudstack-guest-set-password script
  3. SSH key management using cloud-init

Register CentOS ISO

  1. Login to CloudStack management UI
  2. Navigate to ‘Templates’ and select view ‘ISO’ from the drop-down listcloudstack-view-iso
  3. Click ‘Register ISO’. Use the latest CentOS release ISO, which at this time (as of Jan 2014) is CentOS 6.5cloudstack-register-iso
  4. Set ‘Name’ and ‘Description’ fields to CentOS-6.5-x86_64-minimal.iso
  5. Set the URL to the nearest ISO mirror. I used http://mirror.leapswitch.com/centos/6.5/isos/x86_64/CentOS-6.5-x86_64-minimal.iso for CentOS 6.4 64-bit and http://mirror.leapswitch.com/centos/6.5/isos/i386/CentOS-6.5-i386-minimal.iso for the 32-bit version.
  6. Check the ‘Bootable’ checkbox
  7. Set the OS Type field to ‘CentOS 6.4 (64-bit)’ as CentOS 6.5 is not listed in the drop down list as of CloudStack 4.2.0. Use OS Type ‘CentOS 6.4 (32-bit)’ for the 32-bit ISO
  8. Click OK button to start the downloadcloudstack-register-iso-centos
  9. CloudStack will now start to download the ISO from the mirror. You can check the status by clicking on the ISO’s namecloudstack-view-iso-progress
  10. Wait for the ISO download and complete registration successfully. It takes a few minutes depending on the speed of your connection cloudstack-view-iso-success

Once the ISO registration is completed, create a new instance with the ISO

Continue reading CloudStack CentOS Template – Install From ISO

Shanker Balan

Shanker Balan is a devops and infrastructure freelancer with over 14 years of industry experience in large scale Internet systems. He is available for both short term and long term projects on contract. Please use the Contact Form for any enquiry.

More Posts - Website

Follow Me:
TwitterLinkedIn

Applying XenServer Hotfixes with Ansible

Ansible is a very simple yet powerful alternative to Puppet and Chef. It works over plain SSH and does not require an agent on the remote nodes. This makes Ansible very handy in automating tasks on XenServer hypervisor which is essentially a vendor black box.

Below is a very hackish playbook to apply predefined XenServer hotfixes. It would be a lot cleaner if a “xen” module existed for Ansible.

Continue reading Applying XenServer Hotfixes with Ansible

Shanker Balan

Shanker Balan is a devops and infrastructure freelancer with over 14 years of industry experience in large scale Internet systems. He is available for both short term and long term projects on contract. Please use the Contact Form for any enquiry.

More Posts - Website

Follow Me:
TwitterLinkedIn