How to export the KVM based guest VM as template or ovf ?

General support questions
Post Reply
kalpeer
Posts: 3
Joined: 2014/10/27 13:21:58

How to export the KVM based guest VM as template or ovf ?

Post by kalpeer » 2014/10/27 13:24:37

Hi All,

I am new to the KVM virtualization. I have deployed and configured KVM in one of my server. I am using RHEL 6.5. Also I created the guest VM successfully and installed OS on it. Its up and running without any issues.

Is there any way I can export the VM and import it in another KVM server? I am looking something similar to VMware OVA or OVF.

Thanks,
kalai

User avatar
TrevorH
Forum Moderator
Posts: 29493
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: How to export the KVM based guest VM as template or ovf

Post by TrevorH » 2014/10/27 21:12:44

The whole guest or just the xml definition of it? To do the latter you can use virsh dumpxml $vmname > /tmp/vmname.xml then scp the xml file to the other system and run virsh define vmname.xml

To do that for a whole guest including its storage should also be possible but obviously needs more disk space!
CentOS 6 will die in November 2020 - migrate sooner rather than later!
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 is dead, do not use it.
Full time Geek, part time moderator. Use the FAQ Luke

kalpeer
Posts: 3
Joined: 2014/10/27 13:21:58

Re: How to export the KVM based guest VM as template or ovf

Post by kalpeer » 2014/11/03 14:27:34

Thanks TrevorH . Yes i want the entire guests including the XML file.
One option is i can dump the config file and copy the images. Is there any other approach?

Post Reply

Return to “CentOS 6 - General Support”