3.5.2.11 Migrate or Move Virtual Machines

The Migrate or Move Migrate or Move icon option allows you to migrate and move virtual machines by opening the Migrate or Move Virtual Machine wizard that allows you to select and perform the appropriate actions depending on your requirements and the state of the virtual machine.

It is important to understand that migrating a virtual machine changes the Oracle VM Server or server pool where the virtual machine runs, while moving a virtual machine changes the repository where the virtual machine configuration or virtual disks are located.

A stopped virtual machine can be migrated to any Oracle VM Server, server pool, or to the Unassigned Virtual Machines folder. A running virtual machine can be migrated to any Oracle VM Server within the same server pool.

The steps below assume the virtual machine is deployed to an Oracle VM Server. If the virtual machine is located in the Unassigned Virtual Machines folder, select it in that folder to perform the migration.

To migrate or move a virtual machine:

  1. Click the Servers and VMs tab.

  2. Select the server pool on which the virtual machine resides in the navigation tree.

  3. Select Virtual Machines from the Perspective drop-down list. Select the virtual machine to migrate in the management pane, and click Migrate or Move Migrate or Move icon .

    The Migrate or Move Virtual Machine dialog box is displayed.

  4. Choose the appropriate option from the Migrate or Move Virtual Machine dialog box. Different options are available, depending on if the virtual machine is running or stopped.

If the virtual machine is running, you can select from the following options:

  • Migrate a running VM to a different Server within the same Server Pool

    This option changes the server where the virtual machine runs. The destination server must be within the same server pool as the source server. Likewise, the destination server must be able to access the virtual machine configuration and storage. You should choose this option to migrate virtual machines between servers within a server pool that use a shared repository.

    Select this option and then click Next to proceed as follows:

    1. Select the destination server to which you want to migrate the virtual machine from the Specified Server drop-down list.

      Note

      Some options are disabled because they apply only if you are migrating a virtual machine that is stopped.

    2. Click Finish to complete the migration.

  • Migrate a running VM, and migrate its local storage, to a different Server within the same Server Pool

    This option changes the server where the virtual machine runs and moves its local storage. You can choose this option to migrate virtual machines between servers within the same server pool when:

    • At least one virtual disk resides in a repository that is local to the source server.

    • The destination repository is local to the destination server.

    Note

    If the virtual machine configuration file resides in a repository that is local to the source server only, the configuration file is copied to the destination repository. If the configuration file resides in a shared repository, it is not copied.

    Select this option and then click Next to proceed as follows:

    1. Select the destination server to which you want to migrate the virtual machine from the Server to Migrate to drop-down list.

    2. Select the destination repository to which you want to move the virtual machine configuration and storage from the Target Repository drop-down list.

      Note

      You can select only repositories that are hosted on an OCFS2 file system.

    3. Click Finish to complete the migration and move the virtual machine configuration and storage.

If the virtual machine is stopped, you can select from the following options:

  • Migrate a VM to a different Server, Server Pool, or Unassigned State

    This option lets you change the virtual machine destination to either the Unassigned Virtual Machines folder or unassigned in the current server pool. This option also lets you change the server or server pool where the virtual machine runs as well as the location of the virtual machine configuration and storage.

    Select this option and then click Next to proceed as follows:

    1. Select one of the following destinations for the virtual machine:

      • Unassigned Virtual Machines Folder: Removes the virtual machine from the server pool and moves it to the Unassigned Virtual Machines folder.

      • Unassigned in Current Server Pool: Removes the virtual machine from the Oracle VM Server. The virtual machine stays in the same server pool; it is removed from the Oracle VM Server only.

      • Specified Server: Moves the virtual machine to the selected Oracle VM Server. Stopped virtual machines can be migrated to Oracle VM Servers in other server pools that share the same repository, so Oracle VM Servers from other server pools might be listed here.

      • Server Pool: Moves the virtual machine to the selected server pool. Stopped virtual machines can be migrated to other server pools. The virtual machine is not deployed to a particular Oracle VM Server within the destination pool; you must start the virtual machine in the destination server pool to deploy it to an Oracle VM Server.

    2. Click Finish to complete the migration.

  • Move this VM to a different Repository

    This option changes the location where the virtual machine, and its configuration and local storage, reside. You should choose this option to move the virtual machine between servers in different server pools.

    Select this option and then click Next to proceed as follows:

    1. Select a clone customer from the Clone Customizer drop-down list or click Create to create a new clone customizer.

      Clone customizers can be used to determine storage mappings for the virtual machine so that you can define where the virtual disks for a virtual machine should be located.

      If you create a new clone customizer, the Create Clone Customizer wizard is displayed. You can read more on the options provided by this wizard in Create a Clone Customizer.

    2. Select the destination repository to which you want to move the virtual machine configuration and storage from the Target Repository drop-down list.

    3. Click Finish to move the virtual machine.

To migrate multiple virtual machines:

  1. Click the Servers and VMs tab.

  2. Select the server pool on which the virtual machines reside in the navigation tree.

  3. Select Virtual Machines from the Perspective drop-down list. Select the virtual machines to migrate in the management pane and drag and drop them to the Oracle VM Server, server pool or the Unassigned Virtual Machines folder in the navigation tree to which you want to migrate the virtual machines. See Section 1.13, “Drag and Drop” for information on using the drag and drop feature.

  4. The virtual machines are migrated.