As I already said many times my current HPVM version is 3.5 so it doesn’t support guest online migration. But lacking the online migration feature doesn’t mean that we can not perform Integrity VM migration between hosts.
Currently there are two methods to perform migrations:
- HPVM commands.
In this post I will only cover the HPVM way. I will leave HPVM ServiceGuard clusters for a future post but as many of you already know moving a guest between cluster nodes is like moving any other ServiceGuard package since the guests are managed by SG as packages.
There is a certain list of prerequisites the guest has to met in order to be successfully migrated between hosts.
- Off-line state:
This is pretty obvious of course, the guest must be off.
- SSH configuration:
In both hosts root must have SSH access through public key authentication to the other.
- Shared devices:
If the guest has a shared device like the CD/DVD of the host, the device has to be deleted from the guest configuration.
- Storage devices:
There are two consideration about storage devices.
The storage devices of the guest must be physical disks. Migration of guests with lvols as storage devices is supported only in HPVM 4.1 release.
The WWID of the device must be the same in both HPVM hosts.
- Network configuration:
The virtual switch where the guest is connected to must be configured on the same network card in both hosts. For example if vSwitch
vlan2 is using
lan0 in host1 then it must be using
lan0 in host2 or the migration will fail.
If all the prerequisites explained before are met by our guest we can proceed with the migration. The command to use is
hpvmmigrate, the name or the VM number and the hostname of the destination server have to be provided. Some of the resources of the virtual machines like number of CPU, amount of RAM or the machine label can also be modified.
Check the existence of the migrated guest in the destination host.
As you can see once all the prerequisites have been met the migration is quite easy.
Even with the disadvantage of lacking online migration the guest migration feature can be of usefulness to balance the load between HPVM hosts.