Bug 735073

Summary: QEMU/KVM live migration with non-shared storage expects an image file on destination
Product: [Community] Virtualization Tools Reporter: Henrik Ahlgren <pablo>
Component: libvirtAssignee: Libvirt Maintainers <libvirt-maint>
Status: CLOSED DUPLICATE QA Contact:
Severity: medium Docs Contact:
Priority: unspecified    
Version: unspecifiedCC: crobinso, xen-maint
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-05-25 20:49:59 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Henrik Ahlgren 2011-09-01 11:03:41 UTC
Description of problem:

QEMU/KVM live migration on non-shared storage using --copy-storage-all fails with error message "error: unable to set user and group to '(UID):(GID)' on '/PATH/TO/IMAGE': No such file or directory" if the image file is not created
in advance on the destination host. In case an empty image with identical path is created manually using "qemu-img create", the migration succeeds. Note however, simply creating an empty file with touch(1) is not enough, it 
needs to be a qemu supported image file (I've tested with qcow2).

I think this is unexpected (undocumented at least) behavior --libvirt (or qemu?) should create an empty image if it does not exists already. OTOH, if it does, maybe it should even warn the user before overwriting it?

Version-Release number of selected component (if applicable):

libvirt 0.9.4 (from Debian Experimental)
qemu-kvm 0.15 (from Debian Experimental)

How reproducible:

Always.

Steps to Reproduce:
1. migrate --live --verbose --copy-storage-all DOMAIN qemu+ssh://DESTHOST/system
  
Actual results:

error: unable to set user and group to '107:107' on '/data/vm/ahlghe-test2.qcow2': No such file or directory

Expected results:

Disk image created, it's content copied and virtual machine migrated.

Additional info:

Comment 1 Cole Robinson 2013-05-25 20:49:59 UTC

*** This bug has been marked as a duplicate of bug 967233 ***