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 01:14, 23 January 2011
395 bytes added
,
01:14, 23 January 2011
no edit summary
Line 54:
Line 54:
mount -o loop,offset=$((63 * 512)) vm.img /mnt/
mount -o loop,offset=$((63 * 512)) vm.img /mnt/
−
* Then create an LV and copy over everything as in the online case
+
* Then
,
create an LV and copy over everything as in the online case
+
+
virsh vol-create-as treehouse VMNAME-root 10G
+
virsh attach-disk rt /dev/treehouse/VMNAME-root vdc
+
mkfs.ext4 -L rt-root -O flex_bg,extent,uninit_bg,sparse_super /dev/treehouse/VMNAME-root
+
tune2fs -c -1 -i 0 /dev/treehouse/VMNAME-root
+
mkdir /mnt2/VMNAME-root
+
mount /dev/treehouse/VMNAME-root /mnt2/VMNAME-root/
+
rsync -HAXphax --numeric-ids --delete /mnt/VMNAME-root/ /mnt2/VMNAME-root/
=== 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