0

I have Apple Macbook (MAC) with 128G volume space.

I received Virtual Machine (VM) in Open Virtual Appliance file (OVA file) with size 25G. After import that file in VirtualBox that space grow to 50G. Within my another software from Adobe Creative Cloud there was no space left.

When I ran that VM I saw "Microsoft Windows (MS WIN)" with 100G volume disk and 60G free space. Also bunch of applications what shouldn't be there.

After I try uninstall all apps, disable swap, remove everything not necessary, instead of reduce size VM or be fixed at least, that VM volume grow from 50G to 70G(!).

Q how can I reduce VM properly in my machine?

2

1 Answer 1

1

PRE-REQUIREMENTS

  1. if your volume disk file is in another format like "VirtualBox Virtual Disk Image (VDI)" you have to convert it to VDI
  2. also if it's type "Fixed" --format VDI we need to set it to "Dynamic" --variant Standard

{{vbox_path}}\VBoxManage" clonehd --variant Standard --format VDI {{input_filename}}.vmdk {{output_filename}}.vdi

STEPS

  1. attach disk like "not SSD"
  2. remove all data, temp, turnoff swap, turnoff hybernate, empty trash
  3. defragment
  4. open "Disk Management" diskmgmt.msc
  5. shrink volume to space with 1G free
  6. from new free space create a new disk, and set "full format", and remove it after format
  7. download SDelete
  8. on first shrinked volume run sdelete.exe -c c: and then sdelete.exe -z c:
  9. run {{vbox_path}}\VBoxManage" modifyhd --compact {{output_filename}}.vdi

Now that volume disk is set to minimum size even if can shown size bigger. Within set minimum size for volume inside operating system MS WIN it cannot grow and that file will be constant. In future when you want bigger then just set bigger size in "Disk Management".

My VM has after that 30G.

I hope it helped someone.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .