Moving a Dedicated Virtual Machine Host with Manual Migration

To manually migrate a dedicated virtual machine host, you manually move each instance that is placed on the unhealthy dedicated virtual machine host to a healthy host. This method requires that you create a new dedicated virtual machine host, delete (terminate) any instances that are placed on the original dedicated virtual machine host, and then launch new instances from the retained boot volumes. Instances that have additional VNICs, secondary IP addresses, remote attached block volumes, the Trusted Platform Module (TPM) enabled, or that belong to a backend set of a load balancer require additional steps.

Tip

You now have the option to migrate Dedicated Virtual Machine Hosts using reboot migration which automates many of the steps that follow in this section. For more information, see:

Limitations and Warnings for Manual Migration

Be aware of the following limitations and warnings when performing a manual migration:

  • Any public IP addresses assigned to your instance from a reserved public pool are retained. Any that were not assigned from a reserved public IP address pool will change. Private IP addresses do not change.
  • MAC addresses, CPUIDs, and other unique hardware identifiers do change during the move. If any applications running on the instance use these identifiers for licensing or other purposes, be sure to take note of this information before moving the instance to help you manage the change.
  • Shielded instances have additional limitations. See Migrating Shielded Instances.

Prerequisites for Manual Migration

Perform the following steps for each instance that is placed on the dedicated virtual machine host.

  1. Before moving the instance, document all critical details:

    • The instance's region, availability domain, and fault domain.
    • The instance's display name.
    • All private IP addresses, names, and subnets. Note that the instance can have multiple VNICs, and each VNIC can have multiple secondary IP addresses.
    • All private DNS names. The instance can have multiple VNICs, and each VNIC can have multiple secondary IP addresses. Each private IP address can have a DNS name.
    • Any public IP¬†addresses assigned from a reserved public pool. Note that the instance can have multiple VNICs, and each VNIC can have multiple secondary private IP addresses. Each VNIC and secondary private IP address can have an attached public IP address.
    • Any block volumes attached to the instance.
    • Any tags on the instance or attached resources.
  2. Prepare the instance for manual migration:

    • Ensure that any block volumes defined in /etc/fstab use the recommended options.
    • Ensure that any File Storage service (NFS) mounts use the nofail option.
    • If you have statically defined any network interfaces belonging to secondary VNICs using their MAC addresses, such as those defined in /etc/sysconfig/network-scripts/ifcfg*, those interfaces will not start due to the change in the MAC address. Remove the static mapping.
    • If you use the Oracle-provided script to configure secondary VNICs, ensure it runs automatically at startup.

Moving a Dedicated Virtual Machine Host Manually

After you complete the prerequisites:

  1. Create a new dedicated virtual machine host. Use the same shape as the original dedicated virtual machine host, and create the dedicated virtual machine host in the same fault domain.
  2. For each instance that is placed on the dedicated virtual machine host, do the following:

    Note

    Start with the largest instance first. Moving the largest instance first helps you to optimize capacity on the dedicated virtual machine host.
    1. Stop any running applications.
    2. Ensure that those applications will not start automatically.

      Caution

      When the relocated instance starts for the first time, any block volumes, secondary VNICs, or any resource that relies on them, will not be attached. The absence of these resources can cause application issues.
    3. If the instance uses a dense I/O shape, back up the locally-attached NVMe-based SSD:

      1. Create and attach one or more block volumes to the instance.
      2. Copy the data from the NVMe devices to the block volumes.
    4. Unmount any block volumes or File Storage service (NFS) mounts.
    5. Back up all block volumes.
    6. Create a backup of the boot volume.

      Important

      Do not generalize or specialize Windows instances.
    7. Terminate (delete) the instance, preserving the attached boot volume:

      Using the Console

      Follow the steps in Terminating an Instance, ensuring that the Permanently delete the attached boot volume check box is cleared. This preserves the boot volume that is associated with the instance.

      Using the API

      Use the TerminateInstance operation and pass the preserveBootVolume parameter set to true in the request.

      Using the CLI

      Use the instance terminate operation and set the preserve-boot-volume option to true.

    8. Create a new instance using the boot volume from the terminated instance. When you create the instance, place it on the new dedicated virtual machine host:

      1. In the Placement section, click Show advanced options.
      2. For Capacity type, select Dedicated host.
      3. Select the dedicated virtual machine host that you want to place the instance on.

      In the create instance flow, specify the private IP address that was attached to the primary VNIC. If the public IP address was assigned from a reserved IP address pool, be sure to assign the same IP address.

    9. When the instance state changes to Running, stop the instance.
    10. Recreate any secondary VNICs and secondary IP addresses.
    11. Attach any block volumes.

      Note

      This step includes any volumes used to back up local NVMe devices. Copy the data onto the NVMe storage on the new instance, and then detach the volumes.
    12. Start the instance.
    13. Start and test any applications on the instance.
    14. Configure the applications to start automatically, as required.
    15. Recreate the required tags.
    16. (Optional) After you confirm that the instance and applications are healthy, you can delete the volume backups.
  3. Repeat the previous step for each instance that is placed on the dedicated virtual machine host.
  4. After you move all instances to the new dedicated virtual machine host, delete the original dedicated virtual machine host.