virtual machine - VirtualBox VM slowly decreasing disk space - Super User


i have windows xp vm (with virtualbox 3.1.2) getting hd full. when delete stuff nothing happens free space.

i've tried defrag vm , tried sysinternals sdelete utility, doesn't helped, in fact, vm lost little more space.

any idea else should try?

after running sdelete inside virtual machine did shut down , compact drive? need run command tell virtualbox unused space , release back.

steps releasing allocated space .vhd

  1. defragment .vhd inside vm.
  2. run sdelete inside vm.
  3. shut down vm.
  4. open command prompt (start -> run -> cmd.exe).
  5. change directories virtual box installation directory.
    cd \program files\sun\virtualbox
  6. run vboxmanage modifyhd {filename} --compact shrink file size.
    vboxmanage modifyhd "c:\users\joshua\.virtualbox\hard disks\xp virtual machine.vhd" --compact
  7. wait process complete.

you need know location of .vhd file. can locate information opening virtual media manager (file > virtual media manager...), select drive compact , @ location listed below. once process finishes should end .vhd file size matches (or close to) amount of space used in vm.


Comments

Popular posts from this blog

download - Firefox cannot save files (most of the time), how to solve? - Super User

windows - "-2146893807 NTE_NOT_FOUND" when repair certificate store - Super User