<div dir="ltr"><div>Hi Cameron,<br></div><br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">I'm trying to learn libvirt, and this surprised me. With #2, would it work to just use virsh?</div></blockquote><div><br></div><div>I'm not sure what "this" is. If you mean "move a VM from one hypervisor to another" then yes: it'll work with virsh. It's what `virsh migrate` is for. The functionality is available in virt-manager too: right-click on your VM and you'll see a "migrate" option there. VMs can have live or offline migrations. The latter can happen from one machine to another even when they don't share storage. libvirt will prepare the hypervisor on the target machine, setting it up so you can start your VM after migration.<br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"> You can use `virsh dumpxml` to save the vm settings, and a similar command for the qcow2 storage. Then `virsh define` to restore the vm on a different machine.</div></blockquote><div><br></div><div>You could. But why re-invent the wheel? That's what `virsh migrate` is for.<br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"> IIRC one of the points of libvirt is you don't want to touch the underlying files directly anyways, instead use tools like virsh so that the permissions are managed automatically. Plus with this, all you need is the VM and volume names, not their paths. Is the problem that UEFI and TPM variables aren't kept in the xml itself? I haven't had to touch those yet.<br clear="all"></div></blockquote></div><div><br></div><div><br></div><div>Regards,<br></div><div><br></div><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature"><div dir="ltr">Bye,<div><br></div><div>Erik.</div><div><br></div><div><a href="http://efficito.com/" target="_blank">http://efficito.com</a> -- Hosted accounting and ERP.</div><div>Robust and Flexible. No vendor lock-in.</div></div></div></div>