Auto Shutdown VM when app is closed

Disposable VMs shut down after their application is closed, is there a way to make a regular VM have the same behavior?

Basically after i’ve closed an app in a regular VM i want that VM to shut down automatically. I suspect i can insert code used in disposable VMs into my regular VM? But which code and where do i put it?

1 Like

@fsflover
thanks. installed

sudo apt install qubes-app-shutdown-idle

15 minutes was too long to wait so i edited

/usr/lib/python3.9/site-packages/qubesidle/idleness_monitor.py
TIMEOUT_SECONDS = 1 * 6

Qube now shutsdown after 6 seconds. Thanks.

2 Likes

Thanks for this.

In my case, customization path is

/usr/lib/python3/dist-packages/qubesidle/idleness_monitor.py