LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Blogs > neonsignal
User Name
Password

Notices


Rate this Entry

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.
Code:
sdelete -c
Then from the Linux host, VBoxManage is used to compact the container:
Code:
VBoxManage modifyvdi disk.vdi compact
Posted in Uncategorized
Views 292 Comments 0
« Prev     Main     Next »
Total Comments 0

Comments

 

  



All times are GMT -5. The time now is 10:30 PM.

Main Menu
Advertisement
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration