Monday, January 22, 2018

export KVM image to other host

steps for exporting KVM images to other host:
1. copy vm image from /var/lib/libvirt/images on source host to destination host

2. on the source host run:
    virsh dumpxml vmname > my_vm.xml
    edit my_vm.xml, removing mac address or host guid if needed.

3.  on the destination host run:
    virsh define my_vm.xml

4. start the vm:
    virsh start my_vm

No comments:

Post a Comment