<div dir="ltr">Hi Jonas,<div><br></div><div>I asked a similar question here last week. You could find it by searching for this topic in the mailing list archives: "Clone VM with saved state".</div><div>That being said I'd be very glad if you could update here when you find a complete solution.</div><div><br></div><div>- Michael</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Apr 18, 2016 at 9:49 PM, Jonas Finnemann Jensen <span dir="ltr"><<a href="mailto:jonasfj@mozilla.com" target="_blank">jonasfj@mozilla.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi,<div><br></div><div>I would like to save a running domain (ie. disk + memory) and be able to restore it multiple times creating duplicates of the orignal domain all starting from the same state.</div><div>Use case:<br>I'm building a task-processing system for use in a CI flow.</div><div>I want to run multiple VMs in parallel using the same image (always starting from the same state).<br></div><div>And to avoid needlessly booting between each task, I would like to save (and distribute) the domain state, so that I just restore from memory.</div><div><br></div><div>However, I can't seems to change the UUID or the name of a domain once it is saved.</div><div>Nor do I seem able to rename a domain while it is running.</div><div><br></div><div>I can obviously duplicate both the disks and the file to which I saved the domain state using "virsh save".</div><div>But I seem unable to rename before I restore.. Any ideas?</div><div><br></div>Could I do this with snapshots? I suspect not since I see virDomainSnapshotRedefinePrep() calling<div>virDomainDefCheckABIStability which raises the error here:</div><div><a href="https://fossies.org/dox/libvirt-1.3.3/domain__conf_8c_source.html#l17991" target="_blank">https://fossies.org/dox/libvirt-1.3.3/domain__conf_8c_source.html#l17991</a></div><div><br></div><div>Out of curiosity does anyone know what horrors might befall me if I were to remove the lines protecting against name and UUID changes? Then compile my own libvirt...</div><div>The comment in the code says name can be changed, but I'm guessing I would have to change the UUID too. Does anyone see how that would create issues? I'm not sure how libvirt uses the UUID internally.<div><br clear="all"><div><div><div dir="ltr">--<br>Regards Jonas Finnemann Jensen.</div></div></div>
</div></div></div>
<br>_______________________________________________<br>
libvirt-users mailing list<br>
<a href="mailto:libvirt-users@redhat.com">libvirt-users@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/libvirt-users" rel="noreferrer" target="_blank">https://www.redhat.com/mailman/listinfo/libvirt-users</a><br></blockquote></div><br></div>