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

There's more...

Depending on your Linux distribution and the server type (on-metal or a cloud instance) you are running this recipe on, you might encounter a few common errors when trying to migrate the instance.

Error: error: Unsafe migration: Migration may lead to data corruption if disks use cache != none. Solution: Edit the XML definition of the instance you are trying to migrate and update the driver section of the block device to contain the cache=none attribute:

root@kvm1:~# virsh edit iscsi_kvm...<devices> ... <disk type='block' device='disk'>   <driver name='qemu' type='raw' cache='none'/>   <source dev='/dev/disk/by-path/ip-10.184.22.74:3260-iscsi-iqn.2001-04.com.example:kvm-lun-0'/>   <target dev='hda' bus='ide'/> <address type='drive' ...

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