[SOLVED] Little request for managing VDI disk space

Here you can provide suggestions on how to improve the product, website, etc.
Post Reply
SanLostSoul
Posts: 4
Joined: 3. Jan 2026, 19:41

[SOLVED] Little request for managing VDI disk space

Post by SanLostSoul »

Hi everyone, I have a personal request, but I hope it helps. I use three Windows 11 VMs on a host PC with Linux Mint, and they're working perfectly (thank you). Periodically, when the VMs automatically shut down, they run a script that cleans them up a bit, but obviously the VDI disk remains at the used level. Would it be possible to add an option to the VM settings, such as "run this command upon shutdown"? That way, after the "internal cleanup" with zerofill, I could create a "squeezeme.now" file in a shared folder and tell the script to run "if squeeze exists, then Vboxmanage --compact [diskname]" and report a decent size. I don't have much free space. Thanks for your attention.

Sorry, I don't speak English very well; I use Google Translate. :roll:
Last edited by SanLostSoul on 2. Apr 2026, 18:55, edited 1 time in total.
SanLostSoul
Posts: 4
Joined: 3. Jan 2026, 19:41

Re: Little request for managing VDI disk space

Post by SanLostSoul »

Solved.
I created a script that launches the VM instead of activating it from the GUI, then added what's needed to compact the VDI if necessary.
Regards.
JFYI (https://www.youtube.com/watch?v=bGb07qf-Qkk)
Post Reply