migrate_kvm_vm
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
migrate_kvm_vm [2014/06/12 14:59] – admin | migrate_kvm_vm [2015/03/18 11:38] – [LV to qcow2 image] admin | ||
---|---|---|---|
Line 2: | Line 2: | ||
=====KVM Migrate VM to other host===== | =====KVM Migrate VM to other host===== | ||
+ | |||
+ | ===Prerequisites=== | ||
+ | * Restart VM on source host to be sure reboot is successful before the change. | ||
+ | |||
+ | ===Migration iSCSI LV to image=== | ||
Example migration from iSCSI backed storage host to other host with local LVM based storage. | Example migration from iSCSI backed storage host to other host with local LVM based storage. | ||
Line 29: | Line 34: | ||
* Enable autostart on new host. < | * Enable autostart on new host. < | ||
* Clean up vm and storage on old host / NAS. | * Clean up vm and storage on old host / NAS. | ||
+ | ===LV to qcow2 image=== | ||
+ | * Use qemu-img to convert from an lvm to qcow2 format < | ||
+ | * If you want the image compressed add ' | ||
+ | * Edit the xml for the image < | ||
+ | * Modify the disk stanza, adding a type to the driver line; on the source line change ' | ||
+ | source file='/ | ||
+ | * Shrink the file < |
migrate_kvm_vm.txt · Last modified: 2021/10/09 15:14 by 127.0.0.1