Manual offline migration using an iSCSI storage pool
In this recipe, we are going to set up an iSCSI target, configure a storage pool for it, and create a new KVM instance using the attached iSCSI block device as its backend volume. Then, we are going to perform a manual offline migration of the instance to a new host.
Getting ready
For this recipe, we are going to need the following:
- Two servers with
libvirt
andqemu
installed and configured, namedkvm1
andkvm2
. The two hosts must be able to connect to each other using SSH keys and short hostname. - A server with an available block device that will be exported as an iSCSI target and reachable from both
libvirt
servers. If a block device is not available, please refer to the There's more... section in this recipe for instructions on how to create one using a regular file. The name of the iSCSI target server in this recipe isiscsi_target
. - Connectivity to a Linux repository to install the guest OS.
How to do it...
To perform a manual offline migration...