virsh create-snapshot fails to create external snapshot (blockdev-snapshot-sync fails in json monitor)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
libvirt (Ubuntu) |
Triaged
|
Medium
|
Unassigned | ||
Precise |
Won't Fix
|
Medium
|
Unassigned |
Bug Description
When you attempt to create a virtual machine snapshot onto a separate disk, this fails with an error message. The error message is different depending on whether you use snapshot-create or snapshot-create-as but both approaches fail.
The intention is to be able to take a backup of a live VM by freezing the running image file and applying snapshot deltas to a separate file so the backup can save the filesystem image without it being modified during the backup. (i.e. standard practice in VM world)
Format being used is QCOW2 for the disk file which supports snapshots. Manually using qemu-img to create a snapshot on the file does work without any problems.
If you use snapshot-create-as :
snapshot-create-as winxppro3 snapname --disk-only --diskspec hda,snapshot=
error: internal error unable to execute QEMU command 'blockdev-
Or if you use snapshot-create and an XML file specification :
virsh # snapshot-create winxppro3 snapspec.xml
error: argument unsupported: unable to handle disk requests in snapshot
snapspec.xml is :
<domainsnapshot>
<name>
<description>
<disks>
<disk name='hda' snapshot=
<source file='/
</disk>
</disks>
</domainsnapshot>
PC specification is :
<domain type='kvm' id='2'>
<name>
<uuid>
<memory>
<currentMemor
<vcpu>1</vcpu>
<os>
<type arch='x86_64' machine=
<boot dev='hd'/>
</os>
<features>
<acpi/>
<apic/>
<pae/>
</features>
<clock offset=
<on_poweroff>
<on_reboot>
<on_crash>
<devices>
<emulator>
<disk type='file' device='disk'>
<driver name='qemu' type='qcow2'/>
<source file='/
<target dev='hda' bus='ide'/>
<alias name='ide0-0-0'/>
<address type='drive' controller='0' bus='0' unit='0'/>
</disk>
etc. etc.
Changed in qemu-kvm (Ubuntu): | |
status: | New → Confirmed |
importance: | Undecided → Medium |
summary: |
- virsh create-snapshot fails to create external snapshot + virsh create-snapshot fails to create external snapshot (blockdev- + snapshot-sync fails in json monitor) |
tags: | added: apparmor |
tags: | added: 13.04 |
tags: | added: precise |
Just to be clear, this is on 12.04LTS,
virsh --version
0.9.8
3.2.0-24-generic #37-Ubuntu SMP Wed Apr 25 08:43:22 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux
Switching to PC 1.0 spec does not make any difference.