Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How can I export a KVM VM from one machine, and import it to another machine also running KVM?

The host to export from is running CentOS, and the import host is running Red Hat.

I've tried to find documentation on the matter but no luck. My KVM knowledge is minimal, the machine was installed using the GUI virt-manager.

share|improve this question
up vote 2 down vote accepted

VIRT-V2V can automate the process, but you can simply copy the disk image to the same directory, and copy the VM definition xml file as well.

share|improve this answer
Sounds good. I've now found the VM definition xlm in /etc/libvirt/qemu. If I wanted to test the process by copying a VM on the same box would it suffice to just copy the disk and xml definition (renaming as appropriate) and then make up a new UUID? – user62545 Apr 20 '11 at 7:00
yes it would. more so, you can keep the old uuid in the xml – dyasny Apr 20 '11 at 7:20

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.