- Start the guest PC, and then defragment the guest PC hard disk.
- Obtain and then install a third-party data removal utility on the guest PC operating system.
- Run the third-party utility in the guest PC, and then configure it to zero out unused disk space. Use sdelete
- When this operation is complete, shut down the guest PC.
If you use "undoable" virtual hard disk images, commit the changes to the virtual hard disks. - In Virtual PC, click Virtual Disk Wizard on the File menu.
- Click Next, click Examine or modify existing disk image, and then click Next.
- Click Browse, locate and then click the virtual hard disk image that you want to compact, click Open, and then click Next.
- Click Compact the disk image, and then click Next.
- Use one of the following methods to create a compacted disk image:
- Click Use original file.
When you use this method, the virtual hard disk image is compacted to the same file as the original virtual hard disk image. This method uses less disk space on the host computer. However, if the virtual hard disk file becomes corrupted during the compaction process, you may lose guest PC data. - Click Select new file, click Browse, type a new file name for this virtual hard disk image, and then click Save.
When you use this method, a new image file is created for the compacted virtual hard disk image. Because the original file is not overwritten during the compaction process, Microsoft recommends that you use this method. When you use this method, you can verify the integrity of the guest PC virtual hard disk before you have to remove the original virtual hard disk image.
- Click Use original file.
- Click Next, and then click Finish.
The virtual hard disk is compacted. - On the message that states that the hard disk was compacted successfully, click Close.
The third-party products that this article discusses are manufactured by companies that are independent of Microsoft. Microsoft makes no warranty, implied or otherwise, regarding the performance or reliability of these products.
VitualBox 에서 용량줄이기.
1~4번까지 그대로 수행
오라클설치폴더\VBoxManage modyfyhd Win.vdi --compact
끝!