From f9d9b4bbebf84e86516733195b8ab1420f1d9435 Mon Sep 17 00:00:00 2001 From: Michael Hanke Date: Mon, 18 Jan 2010 21:17:52 -0500 Subject: [PATCH] Notes about deployment of VDIs --- sphinx/vm.rst | 13 +++++++++++++ 1 file changed, 13 insertions(+) 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 -- 2.39.5