<div dir="ltr">Hi folks,<div><br></div><div>I'm trying to to attach a disk to an instance using libvirt. The problem is, this disk has external snapshots. The process tried was:</div><div><br></div><div>1 - Attach a disk in the domain:</div><div><font face="arial, helvetica, sans-serif"><i>        virsh# attach-device instance-00000006 /tmp/disk.xml[1] --live</i></font><br></div><div><br></div><div>2 - Snapshot the disk[2]:</div><div><i>        virsh# snapshot-create instance-00000006 --quiesce  --xmlfile /tmp/snap-from-disk.xml[2] --disk-only</i></div><div><br></div><div>3 - Dump the domain XML and create a new disk file from it:</div><div>        <i>virsh# dumpxml instance-00000006</i></div><div><i>        ... [3]</i></div><div><i><br></i></div><div>4 - Dettach the device and re-add it using the new disk file:</div><div>       <i> virsh# detach-device instance-00000006 /tmp/disk-with-snap.xml[4]</i></div><div><i>        Device detached successfully</i></div><div><i>        virsh# attach-device instance-00000006 /tmp/disk-with-snap.xml </i><br></div><div><i>        <b>error: Failed to attach device from /tmp/disk-with-snap.xml</b></i></div><div><i><b>        error: internal error: unable to execute QEMU command 'device_add': Property 'virtio-blk-device.drive' can't find value 'drive-virtio-disk1'</b></i></div><div><br></div><div>Question, is this operation supported? If yes, how is the correct procedure?</div><div><br></div><div>Erlon</div><div><br></div><div><br></div><div>[1] <a href="http://paste.openstack.org/show/556055/">http://paste.openstack.org/show/556055/</a></div><div>[2] <a href="http://paste.openstack.org/show/556056/">http://paste.openstack.org/show/556056/</a></div><div>[3] <a href="http://paste.openstack.org/show/556063/">http://paste.openstack.org/show/556063/</a></div><div>[4] <a href="http://paste.openstack.org/show/556064/">http://paste.openstack.org/show/556064/</a></div></div>