0

I am hosting Windows 7 in VirtualBox. I am using a dynamically allocated disk. The actual size of the VDI file is reported as 85.7GB, however in the hosted Windows OS the total drive size is around 1/3 that, 30.4GB. The maximum size of the VDI is 200GB.

  • Yes during download extraction and installation of updates your drive expand, after cleaning up it does not contract again, it will continue to grow when needed until it reaches the 200GB limmit. – Ken Mollerup Jan 11 '15 at 18:00
  • Ah... Ok. Is it due to begin fragmented or something? Is there anyway to prevent/reverse this? I want to limit the drive to 50GB rather than 200. Can I resize the VDI? – Munki Fisht Jan 11 '15 at 18:11
  • 2
    VirtualBox says, that dynamically allocated will only expand as needed; however, it will not shrink. – julka Jan 11 '15 at 18:22
  • To shrink see: http://askubuntu.com/questions/444598/how-do-i-shrink-a-dynamically-growing-vdi-disk-from-virtualbox – Takkat Jan 11 '15 at 21:42

1 Answers1

0

Unfortunatly not lightly. What you can try is Clone your Windows7 and give it a smaller footprint, then when that works delete the old big one. It is probably better to do an export appliance from the file menu, then create a new mashine with 50GB disk, and import the windows7 export here.

Ken Mollerup
  • 1,275