<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><meta charset="utf-8"><span class="Apple-style-span" style="font-family: Arial, Helvetica, 'Nimbus Sans L', sans-serif; font-size: 13px; -webkit-text-size-adjust: none; line-height: 15px; ">Hi ,<br><br>I am trying to perform offline migration (i.e) Create an incremental image using the qcow format, transfer the vm memory state to a state fie.Use the image and statefile together as a template. Now create a new vm using the template. I can successfully do it using the following commands : <br><br><u>Save phase :</u><br>stop<br>migrate "exec:gzip -c > STATEFILE.gz"<br>qemu-img <br>qemu-img create -b BASE_img -f qcow2 INCRE_img<br><br><u>Restore phase :</u><br>qemu-kvm -m 1024 -hda INCRE_img -incoming "exec: gzip -c -d STATEFILE.gz"<br><br>And it works fine. But I am not able to find the vm with virt-manager or other libvirt based tools.<br><br>If I use : <br>virsh save <dom_id> STATEFILE<br><br>I can restore using "virsh restore STATEFILE" but I want to associate this with the incremental image that I created, but I dont know how. I think it saves the existing vm's xml file along with the STATEFILE, thus I am not able to change the disk image to the incremental image.<br><br>Thus ,<br>1. Either I should find a way to make vms created using qemu-kvm appear in libvirt-based tools.<br><br>OR <br><br>2. Find a way to associate the virsh save STATEFILE with a incremental image. <br><br>Any help or hint with respect to these will be very helpful. I am try to do cloning with minimal cost. This takes only 25 seconds ( to create STATEFILE) and creating incremental image is instantatenous . But I want to use the vm monitoring code based on libvirt. And it makes life difficult. <br><br>Thanks for your help. </span><br><br><div>
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; ">-<br>Regards,<br>Sethuraman Subbiah<br><br>Graduate Student - NC state University<br>M.S in Computer Science<br><br></span>
</div>
<br></body></html>