compacting a VirtualBox Windows storage container
Posted 10-19-2011 at 09:47 PM by neonsignal
After a Windows client has been used inside VirtualBox for some time (particularly if large files have been removed), it can be useful to compact the storage container image (VDI) by removing unused space.
First, the space needs to be cleaned inside the client. This requires defragmenting the drive, and then running a program such as SysInternals sdelete to zero the unused space, so that the VirtualBox utilities are able to compact the file.
Then from the Linux host, VBoxManage is used to compact the container:
First, the space needs to be cleaned inside the client. This requires defragmenting the drive, and then running a program such as SysInternals sdelete to zero the unused space, so that the VirtualBox utilities are able to compact the file.
Code:
sdelete -c
Code:
VBoxManage modifyvdi disk.vdi compact
Total Comments 0




