[Systems] How to migrate kvm guests in LVM volumes

Bernie Innocenti bernie at codewiz.org
Wed Dec 9 13:23:13 EST 2009


El mié, 09-12-2009 a las 13:12 -0500, Bernie Innocenti escribió:
> (untested procedure)
> 
> First, shutdown the VM, then do:
> 
>  mount /dev/treehouse/beamrider-root /mnt
>  ssh housetree mount /dev/housetree/beamrider-root /mnt
>  rsync -PHAXphax --delete --numeric-ids /mnt/ housetree:/mnt/
>  rsync -a /etc/libvirt/qemu/beamrider.xml housetree:/etc/libvirt/qemu/
>  umount /mnt
>  ssh housetree umount /mnt
> 
> Then you log to housetree and create the domain in virsh.
> 
> You can reduce downtime to just a few minutes by doing a first rsync
> iteration from within the VM while it's still running. Make sure you
> pass all the fancy switches to rsync or you'll loose information on the
> copy.

I wikified the procedure here:

 http://wiki.sugarlabs.org/go/Infrastructure_Team/Migrate_virtual_machine

-- 
   // Bernie Innocenti - http://codewiz.org/
 \X/  Sugar Labs       - http://sugarlabs.org/



More information about the Systems mailing list