Changes

Jump to navigation Jump to search
no edit summary
Line 1: Line 1: −
== How to migrate a file-based guest to LVM ==
+
== How to migrate a file-based guest to LVM (online method) ==
    
* First, create the logical volume and attach it to the running VM:
 
* First, create the logical volume and attach it to the running VM:
Line 44: Line 44:  
  #treehouse virsh start lightwave --console
 
  #treehouse virsh start lightwave --console
    +
== How to migrate a file-based guest to LVM (offline method) ==
 +
 +
* Determine the offset of the root partition within the raw disk image:
 +
 +
fdisk -l -u vm.img
 +
 +
* Convert the start offset to bytes:
 +
 +
mount -o loop,offset=$((63 * 512)) vm.img /mnt/
 +
 +
* Then create an LV and copy over everything as in the online case
    
== How to migrate an LVM-based guest to another host ==
 
== How to migrate an LVM-based guest to another host ==

Navigation menu