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

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

I think you can just copy the files in this case. If you are converting between VM systems you could use QEMU. I use qemu-img when I want to try and go between KVM and VMware and vice versa.

Here is where my windows7 KVM resides on my linux host.

[josephgr@oc0887178221 writings]$ ls /var/lib/libvirt/images
Windows7-KVM.qcow2  Windows7-KVM.qcow2.type
1 Like

You can use the virt-clone command and copy the result XML configuration file and image file to the target system.

1 Like