Cloudstack CPU Masking and Heterogeneous Clustering

This article explains about CPU Masking in Cloudstack. Also I deal with Heterogeneous Clustering in Cloudstack Xen (XCP) hypervisor platforms. 

Before We Begin:

In Cloudstack we have Cluster in which all the Hosts which are added should be of same
Configuration, but if we need to add different Hosts to Same Cluster (Heterogeneous cluster) then we need to mask the CPU of different host to a common one.

Why should I Mask CPUs?

In order to achieve Heterogeneous clustering, we should be having all the hosts with same CPU Mask. The following steps will guide you to configure CPU Masking and do Heterogeneous clustering to Cloudstack. Homogeneous is so simple which does not even involve CPU Masking. :d

In Cloudstack we can mask the CPU of different hosts to a common mask, to do that we need to know the CPU features of each host which will be added to the cluster.
Login into host and execute xe host-cpu-info to check the CPU features of the particular post before masking. ( The Below image shows Host A's output)

Copy the CPU features of Hosts which are to be clustered. ( The Below image shows Host B's output)

Here, I used CMB Tool to generate common CPU Mask of A and B.
Paste the CPU features of the Hosts and generate a Common CPU Mask.
Login to the Hosts and change the CPU Mask. To change CPU Mask you could execute xe host-set-cpu-features features=<CPU MASK>

Change the CPU Mask in all the hosts and restart the Hosts to make the change effective.

Now we can add those hosts of different configuration to the same Cluster as their CPU Masked. :)

Useful Resources

Share this:

Hey there! I'm Senthil Kumar Murugesan, An Infrastructure engineer with a focus on Cisco Unified Communications and Hacking. Also I’m happy to mention that I’m a Linux junkie, a Cisco proponent, a Tools fanatic and Script lover. This is a blog, a rambling of thoughts, and a result of technical experiments


Google Analytics Alternative