rhel6/7: kvm live migration failed with the "Permission denied" error on a disk
Issue
When trying to live migrate a guest between RHEL6.5 KVM hosts, the following error occurred and the live migration failed.
/var/log/libvirt/qemu/<host>.log on the destination host:
----
2016-05-01 12:41:13.118+0000: starting up
LC_ALL=C PATH=/sbin:/usr/sbin:/bin:/usr/bin \char device redirected to /dev/pts/11
qemu-kvm: could not open disk image /dev/disk/by-id/scsi-3600000[..]0000: Permission denied
qemu: re-open of /dev/disk/by-id/scsi-360000[..]0000 failed wth error -13
reopening of drives failed
2016-05-01 12:41:15.123+0000: shutting down
The guest's XML file:
</disk>
<disk type='block' device='lun' sgio='unfiltered'>
<driver name='qemu' type='raw' cache='none'/>
<source dev='/dev/disk/by-id/scsi-360000[..]0000'/>
<target dev='sdb' bus='scsi'/>
<shareable/>
<address type='drive' controller='0' bus='0' target='0' unit='1'/>
</disk>
The disk /dev/disk/by-id/scsi-3600000[..]0000 is assigned as /dev/sdac on host-dest and we could not find any errors or anything unusual with the disk from sosreport.
Environment
- Red Hat Enterprise Linux 6 and 7
- KVM
- live migration
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
