Import VM's XML

In cases where we got a VM and wanted to load it back into our virt-manager, you use the import XML command.

Import XML File

You use the following command:

$ sudo virsh define --file /path/to/nameofvm.xml

Remember to place the snapshot and the virtual image disk back into /var/lib/libvirt/images or /var/lib/libvirt/qemu/snapshot.


You can update the xml file and perform the import again to update the QEMU server.

That's all about importing the XML file back into virt-manager.