[libvirt] Block-migrate

Daniel P. Berrange berrange at redhat.com
Wed Aug 11 12:16:11 UTC 2010


On Sat, Aug 07, 2010 at 03:55:10PM +0200, Ruben Kerkhof wrote:
> I've been playing with the new block-migrate feature, but am unable to
> get it to work.
> 
> [root at src ~]# virsh migrate --live --p2p  --tunnelled
> --copy-storage-all 4c5c75b9-decc-41c9-9296-20ca5bd5c355
> qemu://dst/system
> error: Unknown failure
> 
> /var/log/libvirt/qemu/4c5c75b9-decc-41c9-9296-20ca5bd5c355.log on the
> destination host shows:
> 
> bind(unix:/var/run/libvirt/qemu/qemu.tunnelmigrate.dest.4c5c75b9-decc-41c9-9296-20ca5bd5c355):
> Permission denied
> Migration failed. Exit code
> unix:/var/run/libvirt/qemu/qemu.tunnelmigrate.dest.4c5c75b9-decc-41c9-9296-20ca5bd5c355(-22),
> exiting
> 
> It seems that qemu is not able to write to that location.
> 
> [root at dst qemu]# ls -ld /var/run/libvirt/qemu/
> drwx------. 2 root root 4096 Aug  7 15:40 /var/run/libvirt/qemu/
> 
> As a workaround I gave qemu write permission, and now the block migrate starts.

Did the disk image files exist on the target before migration started ?
If not, then this is going to be falling foul of our security drivers
which prevent QEMU creating new files itself.

Also, a straw poll of people at the KVM forum yesterday determined that no
one had ever got  block migration to work, so it might be just broken in
QEMU

Daniel
-- 
|: Red Hat, Engineering, London    -o-   http://people.redhat.com/berrange/ :|
|: http://libvirt.org -o- http://virt-manager.org -o- http://deltacloud.org :|
|: http://autobuild.org        -o-         http://search.cpan.org/~danberr/ :|
|: GnuPG: 7D3B9505  -o-   F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 :|




More information about the libvir-list mailing list