To perform a manual offline migration of a KVM guest using an iSCSI storage pool, follow these steps:
- On the iSCSI target host, install the iscsitarget package and kernel module package:
root@iscsi_target:~# apt-get update && apt-get install iscsitarget iscsitarget-dkms
- Enable the target functionality:
root@iscsi_target:~# sed -i 's/ISCSITARGET_ENABLE=false/ISCSITARGET_ENABLE=true/g' /etc/default/iscsitargetroot@iscsi_target:~# cat /etc/default/iscsitargetISCSITARGET_ENABLE=trueISCSITARGET_MAX_SLEEP=3# ietd options# See ietd(8) for detailsISCSITARGET_OPTIONS=""root@iscsi_target:~#
- Configure the block device to export with iSCSI:
root@iscsi_target:~# cat /etc/iet/ietd.confTarget iqn.2001-04.com.example:kvm Lun ...