NexTec Blog Minimize
20

Compacting a VPC Image

If you work with Virtual PC Images you must have noticed that over a period of time the size of the image file (.VHD) increases to two-to-three times of the original size. This happens because the physical image file size is increased when more data is added but not reduced when data is deleted.  
Here are some simple steps to shrink the file:
  1. Start VPC Image.
  2. Delete temporary files. You can run Windows Disk Cleanup Utility.
  3. Shrink SQL Server Log files, if needed.
  4. Delete/Remove all the files, databases, software etc. which you don’t need.
  5. Start VPC, go to CD Menu, choose “Capture ISO Image..” option, and select the following file: “C:\Program Files\Microsoft Virtual PC\Virtual Machine Additions\Virtual Disk Precompactor.iso”
  6. Goto “My Computer” in VPC and double click “PRECOMPACT(D:)”. Click “Yes” when prompted: “Would you like to prepare the virtual hard disks(s) for compaction?”
  7. Shutdown VPC Image.
  8. Run “Virtual Disk Wizard” from VPC Console. When prompted, choose “Edit an Existing Virtual Disk”, and hit “Compact” in the end.
  9. Enjoy the extra free space.

Post Rating

Comments

There are currently no comments, be the first to post one.

Post Comment

Name (required)

Email (required)

Website

CAPTCHA image
Enter the code shown above in the box below

  
spacer
dummy