4.5. Migrating with virt-manager
virt-managerfrom one host physical machine to another.
virt-manager. Choose → → from the main menu bar to launch
Figure 4.1. Virt-Manager main menu
Connect to the target host physical machineConnect to the target host physical machine by clicking on themenu, then click .
Figure 4.2. Open Add Connection window
Add connectionThe Add Connection window appears.
Figure 4.3. Adding a connection to the target host physical machineEnter the following details:
Click thebutton. An SSH connection is used in this example, so the specified user's password must be entered in the next step.
- Hypervisor: Select .
- Method: Select the connection method.
- Username: Enter the user name for the remote host physical machine.
- Hostname: Enter the host name for the remote host physical machine.
Figure 4.4. Enter password
Migrate guest virtual machinesOpen the list of guests inside the source host physical machine (click the small triangle on the left of the host name) and right click on the guest that is to be migrated (guest1-rhel6-64 in this example) and click .
Figure 4.5. Choosing the guest to be migratedIn thefield, use the drop-down list to select the host physical machine you wish to migrate the guest virtual machine to and click .
Figure 4.6. Choosing the destination host physical machine and starting the migration processA progress window will appear.
Figure 4.7. Progress windowvirt-manager now displays the newly migrated guest virtual machine running in the destination host. The guest virtual machine that was running in the source host physical machine is now listed inthe Shutoff state.
Figure 4.8. Migrated guest virtual machine running in the destination host physical machine
Optional - View the storage details for the host physical machineIn themenu, click , the Connection Details window appears.Click thetab. The iSCSI target details for the destination host physical machine is shown. Note that the migrated guest virtual machine is listed as using the storage
Figure 4.9. Storage detailsThis host was defined by the following XML configuration:
<pool type='iscsi'> <name>iscsirhel6guest</name> <source> <host name='virtlab22.example.com.'/> <device path='iqn.2001-05.com.iscsivendor:0-8a0906-fbab74a06-a700000017a4cc89-rhevh'/> </source> <target> <path>/dev/disk/by-path</path> </target> </pool> ...
Figure 4.10. XML configuration for the destination host physical machine