diff options
-rw-r--r-- | boxes.mdwn | 18 |
1 files changed, 9 insertions, 9 deletions
@@ -47,22 +47,22 @@ Por exemplo, considere a [instalação](/install) a Hydra Suite na máquina virt Encolhendo uma máquina virtual ------------------------------ -Sobre: - -* https://superuser.com/questions/529149/how-to-compact-virtualboxs-vdi-file-size -* http://www.thelinuxdaily.com/2010/02/shrinking-a-dynamic-virtualbox-disk-image/ -* https://packages.debian.org/wheezy/zerofree -* https://unix.stackexchange.com/questions/42015/mount-is-busy-when-trying-to-mount-as-read-only-so-that-i-can-run-zerofree - Procedimento genérico, dentro da máquina virtual: hydractl upgrade clean - apt-get install zerofree + apt-get install zerofree # apenas uma vez telinit 1 mount -o remount,ro / zerofree /dev/sda1 halt -Fora da máquina: +No host (`$box` é o nome da máquina): VBoxManage modifyhd --compact /var/cache/virtualbox/$box/$box.vdi + +Referências +----------- + +* [How to compact VirtualBox's VDI file size?](https://superuser.com/questions/529149/how-to-compact-virtualboxs-vdi-file-size). +* [Shrinking a Dynamic VirtualBox Disk Image](http://www.thelinuxdaily.com/2010/02/shrinking-a-dynamic-virtualbox-disk-image/). +* [ubuntu - "mount: / is busy" when trying to mount as read-only so that I can run zerofree](https://unix.stackexchange.com/questions/42015/mount-is-busy-when-trying-to-mount-as-read-only-so-that-i-can-run-zerofree). |