12.3.3. Preventing Automatic Migration of a Virtual Machine

You may find that for a specific virtual machine you need to override the policies which automatically trigger migration. Red Hat Enterprise Virtualization Manager allows you to disable automatic migration of virtual machines. You are also able to disable manual migration of virtual machines by setting the virtual machine to run only on a specific host.
  1. Ensure that you have the Tree tab open to the left of the Administration Portal Screen. Expand the objects in tree, by clicking the + icon next to them, until the cluster on which the virtual machine you are modifying runs is visible.
  2. Expand the entry for the cluster and select the VMs object. The list of the cluster's virtual machines will appear.
  3. Select the virtual machine from the list. Click the Edit button. Depending on the type of virtual machine selected the Edit Desktop Virtual Machine or Edit Server Virtual Machine dialog box will appear.
  4. Click the Host tab on the dialog box. A number of options used to determine where the virtual machine is able to run appear.
  5. Set the Run On option to either Any Host in Cluster or Specific.
    • Select Any Host in Cluster to allow the virtual machine to run on any host in the cluster. Subsequent options in the dialog will still allow you to ensure the virtual machine is not automatically migrated once it has started on a host. You will not however be able to disable manual migration.
    • Select Specific to set the virtual machine to only run on a specific host in the cluster. You must also select the host on which the virtual machine must run from the list. The list contains all active hosts in the cluster.

      Warning — Mutually Exclusive with High Availability

      Explicitly assigning a virtual machine to a specific host and disabling migration is mutually exclusive with high availability. Virtual machines that are assigned to a specific host and set not to migrate can not be made highly available.
  6. To force the virtual machine to only run on the host selected when it starts, and to disable migration, you must select either:
    • Run VM on the selected host (no migration allowed) — No migration of the virtual machine is permitted. Automatic migration of the virtual machine will not be attempted and manual attempts to migrate the virtual machine will be denied. This option is only available when you have selected to run the virtual machine on a specific host.
    • Allow VM migration only upon Administrator specific request (system will not trigger automatic migration of this VM) — Only manual migration of the virtual machine is permitted. Automatic migration of the virtual machine will not be attempted. This option is available regardless of whether you have selected to run the virtual machine on a specific host or on any host in the cluster.
  7. Result:
    The migration settings for the virtual machine have been updated.