Ben Stienstra

Linux, Unix, network, radio and more...

User Tools

Site Tools


migrate_kvm_vm

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
migrate_kvm_vm [2015/03/18 12:38]
admin
migrate_kvm_vm [2015/03/18 12:38] (current)
admin [LV to qcow2 image]
Line 34: Line 34:
   * Enable autostart on new host. <​code>​virsh autostart vmns2</​code>​   * Enable autostart on new host. <​code>​virsh autostart vmns2</​code>​
   * Clean up vm and storage on old host / NAS.   * Clean up vm and storage on old host / NAS.
-====LV to qcow2 image====+===LV to qcow2 image===
   * Use qemu-img to convert from an lvm to qcow2 format <​code>​qemu-img convert -O qcow2 /​dev/​vg_name/​lv_name/​ /​var/​lib/​libvirt/​images/​image_name.qcow2</​code>​   * Use qemu-img to convert from an lvm to qcow2 format <​code>​qemu-img convert -O qcow2 /​dev/​vg_name/​lv_name/​ /​var/​lib/​libvirt/​images/​image_name.qcow2</​code>​
   * If you want the image compressed add '​-c'​ right after the word convert.   * If you want the image compressed add '​-c'​ right after the word convert.
migrate_kvm_vm.txt ยท Last modified: 2015/03/18 12:38 by admin