From: Michael Hanke Date: Tue, 19 Jan 2010 02:17:52 +0000 (-0500) Subject: Notes about deployment of VDIs X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=f9d9b4bbebf84e86516733195b8ab1420f1d9435;p=neurodebian.git Notes about deployment of VDIs --- diff --git a/sphinx/vm.rst b/sphinx/vm.rst index 846b40a..ffe579c 100644 --- a/sphinx/vm.rst +++ b/sphinx/vm.rst @@ -79,3 +79,16 @@ cp /mnt/host/.config/awesome/hotbrain.png .config/backgrounds/ #change menu icon sudo cp /mnt/host/hacking/neurodebian/artwork/icon.svg /usr/share/icons/Mist/scalable/places/start-here.svg + + +Deploy +------ + +# shrink VDI image by writting to a new (unfragmented) image +# target VDI needs to have proper partition table and MBR +# XXX maybe 'dd' could be used on the fuse-mounted VDIs +sudo ~/vdfuse-v60 -f ~/.VirtualBox/HardDisks/NeuroDebian.vdi mnt/src +sudo ~/vdfuse-v60 -f ~/.VirtualBox/HardDisks/nd_test.vdi mnt/dest +sudo mount -o loop mnt/src/Partition1 src +sudo mount -o loop mnt/dest/Partition1 dest +rsync -vxaHD --delete --exclude=src/dev --exclude=src/proc --exclude=src/tmp src dest