aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2015-08-01 14:02:56 -0300
committerSilvio Rhatto <rhatto@riseup.net>2015-08-01 14:02:56 -0300
commitb52c805492b5e2d71a47f13e741d394b46030327 (patch)
tree30caf200443506e8c070b5c3cb215103b855d093
parentcda60e9ed7e9ea6d8770919a49fd5386ac78c355 (diff)
downloadpadrao-b52c805492b5e2d71a47f13e741d394b46030327.tar.gz
padrao-b52c805492b5e2d71a47f13e741d394b46030327.tar.bz2
Boxes: referencias
-rw-r--r--boxes.mdwn18
1 files changed, 9 insertions, 9 deletions
diff --git a/boxes.mdwn b/boxes.mdwn
index 325307e..428cc2e 100644
--- a/boxes.mdwn
+++ b/boxes.mdwn
@@ -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).