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.
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.
-
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.
-
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.
- Ensure that any block volumes defined in
Moving a Dedicated Virtual Machine Host Instance Manually
After you complete the prerequisites, 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.
For each instance that is placed on the dedicated virtual machine host, perform the following steps.
Start with the largest instance first. Moving the largest instance first helps you to optimize capacity on the dedicated virtual machine host.
- Stop any running applications.
-
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. - Unmount any block volumes or File Storage service (NFS) mounts.
- Back up all block volumes.
-
Create a backup of the boot volume.
Important
Do not generalize or specialize Windows instances. -
Terminate (delete) the instance, preserving the attached boot volume:
Using the ConsoleFollow 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 APIUse the TerminateInstance operation and pass the
preserveBootVolume
parameter set totrue
in the request.Using the CLIUse the instance terminate operation and set the
preserve-boot-volume
option totrue
. -
Create a new instance using the boot volume from the terminated instance.
(Optional) If the instance is on a new dedicated virtual machine host:
- In the Placement section, click Show advanced options.
- For Capacity type, select Dedicated host.
- 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.
- When the instance state changes to Running, stop the instance.
- Recreate any secondary VNICs and secondary IP addresses.
-
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. - Start the instance.
- Start and test any applications on the instance.
- Configure the applications to start automatically, as required.
- Recreate the required tags.
- (Optional) After you confirm that the instance and applications are healthy, you can delete the volume backups.
Repeat the steps for each instance that is placed on the dedicated virtual machine host.
After you move all instances to the new dedicated virtual machine host, delete the original dedicated virtual machine host.