How to do it...

To perform a manual offline migration of a KVM guest using an iSCSI storage pool, follow these steps:

  1. 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
  1. 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:~#

 

 

  1. Configure the block device to export with iSCSI:
root@iscsi_target:~# cat /etc/iet/ietd.confTarget iqn.2001-04.com.example:kvm Lun ...

Get KVM Virtualization Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.