Host : opensuse leap 42.3
Guest : windows 7
I have just created a windows 7 VM by specifying a dynamic VDI file of size 40 Gb ( to fit a 64 Gb USB stick ).
The VM is fully configured and every things has been installed.
The size of the windows 7 guest is 15 Gb ( windows 7 partition size )
The size of the vdi files has been reduce from 25 Gb to 16 Gb
Code: Select all
1 defrag
2 reduce partition size using windows partition manager tools (computer administration)
3 defrag again
4 zeroes free space with sdelete 1.61
5 reboot with disk verification during boot
6 shutdown and return to linux environment.
7 reduce size of VM with vboxmanage --compactAs the vdi file size is still fixed to its initial size of 40 Gb, Where/How can I fix the size to 25Gb.