Copy kvm virtual machine and XML

Closeup photo of eyeglasses

Photo by Kevin Ku on Unsplash

Copy the VM's disks from /var/lib/libvirt/images from source machine to the same folder on the destination machine

On the source machine run virsh dumpxml VMNAME > machine.xml

Copy the resultant XML file to the destination and on the destination machine run virsh define domxml.xml

Welcome

Welcome to you to my website. Here you will find some of the things about me as well as some of the things that interest me.

Currently, this site is in its infancy, so you might find some things missing here and there. Occasionally, you will find 'lorem ipsum' text. Please don't panic !!. They will be replaced eventually with more (or less) meaningful content.  If you found any irregularities, you can drop me a line at my email address.

Recent Snippets

Copy kvm virtual machine and XML

Closeup photo of eyeglasses

Photo by Kevin Ku on Unsplash

Copy the VM's disks from /var/lib/libvirt/images from source machine to the same folder on the destination machine

On the source machine run virsh dumpxml VMNAME > machine.xml

Copy the resultant XML file to the destination and on the destination machine run virsh define domxml.xml