Starting with VirtualBox version 4.0, by default, each virtual machine has one directory on your host computer where all the files of that machine are stored — the XML settings file (with a
.vbox file extension) and its disk images.
Once you start working with the VM, additional files will show up: you will find log files in a subfolder called
Logs, and once you have taken snapshots, they will appear in a
Snapshots subfolder. For each VM, you can change the location of its snapsnots folder in the VM settings.
You can change the default machine folder by selecting “Preferences” from the “File” menu in the VirtualBox main window. Then, in the window that pops up, click on the “General” tab. Alternatively, use
VBoxManage setproperty machinefolder;
Normally, VirtualBox uses its own container format for guest hard disks — Virtual Disk Image (VDI) files. In particular, this format will be used when you create a new virtual machine with a new disk.
VirtualBox also fully supports the popular and open VMDK container format that is used by many other virtualization products, in particular, by VMware.
VirtualBox also fully supports the VHD format used by Microsoft.
1. defragment disk
2. sdelete -c c:
3. VBoxManage modifyhd F:\VM1\Win7x64.vmdk –compact
error: Compact hard disk operation for this format is not implemented yet!
If you have VMware Workstation you can shrink (compact) disk image:
vmware-vdiskmanager.exe -k “F:\VM1\Win7x64.vmdk”
vmware-vdiskmanager -d “F:\VM1\Win7x64.vmdk”