Virtualbox VDI disk image-compression

Source: Internet
Author: User
Tags vmware server
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 --

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.