Red Hat Training
A Red Hat training course is available for Red Hat Enterprise Linux
22.4. Migrating with virt-manager
This section covers migrating KVM based guests with
virt-manager
.
- Connect to the source and target hosts. On the File menu, click Add Connection, the Add Connection window appears.Enter the following details:
- Hypervisor: Select QEMU.
- Connection: Select the connection type.
- Hostname: Enter the hostname.
Click Connect.The Virtual Machine Manager displays a list of connected hosts. - Add a storage pool with the same NFS to the source and target hosts.On the Edit menu, click Host Details, the Host Details window appears.Click the Storage tab.
- Add a new storage pool. In the lower left corner of the window, click the + button. The Add a New Storage Pool window appears.Enter the following details:
- Name: Enter the name of the storage pool.
- Type: Select netfs: Network Exported Directory.
Click Forward. - Enter the following details:
- Format: Select the storage type. This must be NFS or iSCSI for live migrations.
- Host Name: Enter the IP address or fully-qualified domain name of the storage server.
Click Finish. - Create a new volume in the shared storage pool, click New Volume.
- Enter the details, then click Create Volume.
- Create a virtual machine with the new volume, then run the virtual machine.The Virtual Machine window appears.
- In the Virtual Machine Manager window, right-click on the virtual machine, select Migrate, then click the migration location.
- Click Yes to confirm migration.The Virtual Machine Manager displays the virtual machine in its new location.The VNC connection displays the remote host's address in its title bar.