Http://www.hooto.com/home/rui/blog/archives/5144.htmlVirtualBox VDI disk image-compression Guiding Ideology
1. virtual machines: clean up the system, uninstall and delete System junk files
2. Virtual Machine: Move the disk data to the "front" and write the remaining disk space to "zero"
3. Physical HOST: clears the "zero" Byte space and uses vboxmanage modifyhd to compress the VDI disk image file.
Windows Virtual Machine
1. Virtual Machine: delete System junk files and run Disk sortingProgram...
2. Virtual Machine: Use sdelete to write "0", http://technet.microsoft.com/en-us/sysinternals/bb897443.aspx, and execute "sdelete-c" in the command line... shutdown...
3. Physical HOST: Run "vboxmanage modifyhd/the-path-of-VDI.vdi -- compact"
Linux Virtual Machine
1. Virtual Machine: cleanup and unmount System junk files
2. virtual Machine: write "zero", as if "dd If =/dev/Zero of =/fillerup. the zero method is not very effective. After several hardships, I found a very old "Ultimate Way" on the official website )!
2.1 start the virtual machine with a livecd (UBUNTU) and use the system-Administration-gparted partition software to minimize the virtual hard disk space...
2.2 create a new partition in the available space and execute "dd If =/dev/Zero of =/dev /{?} ", And then delete this partition
2.3 Return to the primary partition and restore all its space. The application is shut down...
3. Physical HOST: Run "vboxmanage modifyhd/the-path-of-VDI.vdi -- compact"
Test Environment
HOST: Linux 2.6.28, UBUNTU 9.04 64-bit, virtualbox 2.2.4
Virtual Host: Debian 5.0.0 64-bit, Windows 2003 32-bit SP2
Journal
Use VMware Server 1. 0. * for Linux for a long time, free of charge, easy to use! After Server 2.0 is released, 1.0 enters maintenance. Its latest 1.0.9 can be installed on a bit-64-bit system, and it cannot run a bit-64 virtual machine well; server 2.0 supports bit-64 host/guest,... the size is too large, but it is slow to run on my computer! ".
Virtualbox 2.2.4 is good. It is free, open-source, and runs fast. It has comprehensive functions. Recommended:->
-- EOF --