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

Windows XP installation, no previous version of Windows NT - Super User

permissions - Mount is denied because the NTFS volume is already exclusively opened - Ask Ubuntu

software installation - How to install linux driver for a lb-link wireless usb adapter - Ask Ubuntu