Open main menu
Home
Random
Log in
Settings
About Sugar Labs
Disclaimers
Sugar Labs
Search
Changes
← Older edit
Newer edit →
Sysadmin/Migrate virtual machine
(view source)
Revision as of 20:54, 14 August 2010
330 bytes added
,
20:54, 14 August 2010
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 ==
Bernie
Bureaucrats
,
Check users
,
Administrators
1,784
edits