4.3.18.4 MIGRATE GUEST
This command moves an Oracle Linux KVM guest to another KVM host.
Prerequisites
-
The Exadata system must use 2-socket Oracle Exadata system hardware with RoCE Network Fabric (X8M-2 or later).
-
The Exadata system must use Oracle Exadata System Software release 25.1.0 or later.
-
You must have an OEDA-generated Engineered System XML configuration file (
es.xml) that accurately reflects the current state of the Exadata system. -
The Exadata system must be configured to use Exascale storage to host the guest image files.
-
The environment must be configured with SSH equivalency, so that the OS user and the server running OEDACLI can perform actions as the
rootuser on both the source and target KVM hosts. -
The source and target KVM hosts must reside in the same Exadata system configuration and have the same network visibility.
-
The source and target KVM hosts must have access to the same Oracle Exadata storage servers.
-
The source and target KVM hosts must not have any outstanding work from a previous Exadata Live Update.
-
The target KVM host must use Oracle Exadata System Software packages that are the same version as, or newer than, those on the source KVM host.
-
The target KVM host must have sufficient free CPU and memory resources to accommodate the guest.
-
It is possible to over-commit virtual CPUs such that the total number of virtual CPUs assigned to all guests exceeds the number of physical CPUs on the system. Over-committing CPUs can be done only when the competing workloads for over-subscribed resources are well understood and the concurrent demand does not exceed physical capacity.
-
It is not possible to over-commit memory.
-
-
The guest being migrated must not have any outstanding work from a previous Exadata Live Update operation that could be applied when the guest restarts during the migration process. Either clear all outstanding work before migration, or reconfigure the guest so that no outstanding work occurs during the migration process.
-
The guest name must not already be in use on the target KVM host.
-
Additionally, for Exadata VM Live Migration:
-
The Exadata system hardware must be at least Oracle Exadata X10M.
-
The Exadata system must use Oracle Exadata System Software release 26.1.0 or later.
-
The Exadata system must be configured with Exadata Secure RDMA Fabric Isolation (Secure Fabric) enabled.
-
The source and target KVM hosts must use the same model of server hardware, with the same number and type of CPUs.
-
Syntax
MIGRATE GUEST
HOSTNAME=guest_name
MODE={OFFLINE|OFFLINEFORCE|LIVE}
SRCHOST=source_host
TGTHOST=target_host
[ WHERE
STEPNAME=stepname ]Arguments
-
HOSTNAME: Specifies the hostname of the guest being migrated. -
MODE: Specifies the migration mode.-
OFFLINE: Performs an automated migration process where the guest is gracefully shut down, moved to the target KVM host, and then restarted.Use this option in most offline migration situations to gracefully migrate a working guest.
-
OFFLINEFORCE: Performs a forced offline migration process without gracefully shutting down the guest.Use this option only in situations where the guest or source KVM host are not accessible. For example, to resurrect a guest from a failed KVM host.
-
LIVE: Performs the migration using Exadata VM Live Migration. In this case, the guest remains available throughout the operation and normal processing is uninterrupted, apart from a brief switchover to the target KVM host.
-
-
SRCHOST: Specifies the hostname or IP address of the source KVM host. This is where the guest resides before the migration operation. -
TGTHOST: Specifies the hostname or IP address of the target KVM host. This is where you intent to move the guest to. -
STEPNAME: Specifies the migration step to perform.The following list shows the migration steps (in order) for an offline migration (
MODE=OFFLINEorMODE=OFFLINEFORCE).STOP_GUESTCREATE_BRIDGESDETACH_INTERFACESDETACH_VOLUMESATTACH_VOLUMESMIGRATE_GUESTATTACH_INTERFACESSTARTUP_GUEST
The following list shows the migration steps (in order) for Exadata VM Live Migration (
MODE=LIVE).ATTACH_VOLUMESCREATE_BRIDGESMIGRATE_GUESTDETACH_VOLUMES
Additionally, you can perform a precheck for Exadata VM Live Migration using the
PRECHECK_LIVEMIGRATIONstep. This step serves as a standalone command that is only performed when theMIGRATE GUESTcommand uses Exadata VM Live Migration (MODE=LIVE) and includesWHERE STEPNAME=PRECHECK_LIVEMIGRATION.
Example 4-29 Migrating a Guest VM Using Offline Migration
This example shows the command sequence to migrate a guest using offline migration.
In this example, the guest being moved is named exa01vm01.example.com, the KVM host where the guest resides before the migration operation is exa01adm02.example.com, and the target KVM host is exa01adm06.example.com.
oedacli> LOAD FILE NAME=exa01.xml
oedacli> MIGRATE GUEST HOSTNAME=exa01vm01.example.com MODE=offline SRCHOST=exa01adm02.example.com TGTHOST=exa01adm06.example.com
oedacli> SAVE ACTION
oedacli> MERGE ACTIONS
...
Merging MIGRATE GUEST
Action Validated and Merged OK
oedacli> SAVE FILE NAME=exa01.migration-merged.xml
File : exa01.migration-merged.xml saved OK
oedacli> DEPLOY ACTIONS
Deploying Action ID : 28 MIGRATE GUEST HOSTNAME=exa01vm01.example.com MODE=offline SRCHOST=exa01adm02.example.com TGTHOST=exa01adm06.example.com
Deploying MIGRATE GUEST
...
Done...
Done [Elapsed = 193346 mS [3.0 minutes] Wed Jul 30 16:14:59 PDT 2025]]
oedacli> SAVE FILE NAME=exa01.migration-deployed.xml
File : exa01.migration-deployed.xml saved OKExample 4-30 Performing a Precheck for Exadata VM Live Migration
This example shows how to perform a precheck before migrating a guest using Exadata VM Live Migration.
In this example, the MIGRATE GUEST command checks that the guest named exa01vm01 can be migrated from exa01adm04 (the source KVM host) to exa01adm06 (the target KVM host) using Exadata VM Live Migration.
oedacli> LOAD FILE NAME=exa01.xml
oedacli> MIGRATE GUEST HOSTNAME=exa01vm01 MODE=live SRCHOST=exa01adm04 TGTHOST=exa01adm06 WHERE STEPNAME=PRECHECK_LIVEMIGRATION
oedacli> SAVE ACTION
oedacli> MERGE ACTIONS
oedacli> DEPLOY ACTIONSExample 4-31 Migrating a Guest VM Using Exadata VM Live Migration
This example shows how to migrate a guest using Exadata VM Live Migration.
In this example, the guest being moved is named exa01vm01, the KVM host where the guest resides before the migration operation is exa01adm04, and the target KVM host is exa01adm06. The example shows only a brief sample of the output from various migration steps.
oedacli> LOAD FILE NAME=exa01.xml
oedacli> MIGRATE GUEST HOSTNAME=exa01vm01 MODE=live SRCHOST=exa01adm04 TGTHOST=exa01adm06
oedacli> SAVE ACTION
oedacli> MERGE ACTIONS
oedacli> SAVE FILE NAME=exa01.migration-merged.xml
oedacli> DEPLOY ACTIONS
...
Attaching EDV Volume exa01vm01_sys using device exa01vm01_sys_c7db815ef4cc457b86a3015d1c467ace to host exa01adm06
...
Mounting Guest Configuration Files volume /dev/exc/exa01vm01_cfg_1412f96d1bd742248723f203438c5fad for guest exa01vm01 on kvmhost exa01adm06
...
Migrate guest exa01vm01 from exa01adm04 to exa01adm06. Step MIGRATE_GUEST completed successfully...
...
Unmounting Guest Configuration Files volume /dev/exc/exa01vm01_cfg_1412f96d1bd742248723f203438c5fad for guest exa01vm01 on kvmhost
exa01adm04.
...
Detaching EDV volume device exa01vm01_sys_c7db815ef4cc457b86a3015d1c467ace from source KVM host exa01adm04
...
Done...
Done [Elapsed = 92755 mS [1.5 minutes] Wed Apr 29 15:27:06 PDT 2026]]
oedacli> SAVE FILE NAME=exa01.migration-deployed.xml
File : exa01.migration-deployed.xml saved OKRelated Topics
Parent topic: GUEST