LinuxQuestions.org
Review your favorite Linux distribution.
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 271 Comments 0
« Prev     Main     Next »
Total Comments 0

Comments

 

  



All times are GMT -5. The time now is 11:23 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration