Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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
add comment

1 Answer 1

up vote 1 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
add comment

Your Answer

 
discard

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.