O'Reilly logo

KVM Virtualization Cookbook by Konstantin Ivanov

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required