The capacity of the Microsoft Virtual PC Virtual disk is dynamically allocated. After a period of operation, we will find that the Virtual hard disk files (*. vhd) stored on the host are increasing. In this case, the most effective way to "lose weight" for virtual machines is to use the Microsoft compression tool Precompact, Which is http://www.loveyuki.com/attachments/month_0411/sphw_precompact.zip.
Step 1: Start Virtual PC and run the specified Virtual machine. after entering the system interface, move the precompact.exe file downloaded to the local machine to the Virtual machine through the shared folder, run the main program, and perform the compression operation (1 ).
Step 2: After the installation is complete, click "Yes" in the prompt dialog box that appears, and then close the VM. After that, call the "Virtual PC console" and click "File> Virtual hard disk wizard" in the menu bar ".
Step 3: Select "edit an existing virtual hard disk" on the "Hard Disk options" page ".
Step 4: select the path of the virtual hard disk file on the "virtual hard disk to be edited" page.
Step 5: Select "compression" (2) on the "virtual hard disk information and options" page ).
Step 6: choose whether to replace the original file or save the compressed Dynamic Virtual Disk (if an error occurs during the compression operation, the virtual disk may be damaged, therefore, you can select as needed ).
Step 7: complete the settings and perform the compression operation. Depending on the size of the virtual hard disk, this process may take several minutes.
After compression, we will find that the pre-compression and post-compression capacity of virtual hard disk files is "shrunk" to a certain extent ".