How to Migrate Virtual Machines using RHEV clusters

RHEV Clustering

Add a new host to the RHEVM, before starting clustering and migration


To Install a new hypervisor (host)

To know how to setup a RedHat Enterprise Virtualisation Hypervisor visit,
https://www.linuxhelp.com/how-to-setup-redhat-enterprise-virtualization-hypervisor-in-linux/

After adding the host, approve the host in the rhevm.

Enter the Data Center, Host cluster, Name, address, port and click OK.

Select the cluster tab, edit the properties and then click OK.

Select the Host tab and configure the migration option. Then click OK

Click High Availability tab and choose a priority for the Migration queue.

Click migrate button for manual migration.

Select the destination host to migrate the virtual machine.


For Automatic migration

Make the CPU load of VM to exceed 60% for automatic migration by using the following command.

[root@vm :/home/user1] # dd if=/dev/urandom of=/dev/null

After running this command, the cpu load goes above 90%.

Now the host is getting migrated automatically to another host.

It has completely migrated to another host.

FAQ
Q
How to get the console of guest or virtual machine in Xen ?
A
# xm console domain-id
Q
How to verify Virtualization Technology (VT) is enabled in your server’s BIOS or not ?
A
grep -E ‘svm|vmx’ /proc/cpuinfo

vmx is for Intel processors
svm is for AMD processors
Q
What are different hypervisors available in Linux?
A
Xen & KVM are two hypervisors available in Linux.
Q
How do I move a VM from one cluster to another in RHEV?
A
Need to be able to move VMs around between clusters as neccessary