What's the best way to have a VM automatically start (preferably in seamless mode) when i boot my computer, and save it's state when i shut down?
- For starting, it seems easy enough : i've put this in the task scheduler with an "at session opening" trigger.
Now, maybe there is a better way to do this, if so i'd be glad to know it. Also, are there specific options to set in the task parameters?
Code: Select all
C:\VirtualBox\VirtualBox.exe --startvm <UUID> - My main issue is for shutdown. I was thinking of using
However, there is neither an "at session close" or "at shutdown" trigger in task sheduler. There is a "session disconnected" but it seems to be made for remote sessions more than local ones. There is also the possibility to trigger based on a log event, but i don't know whether there is a log event recorded when i choose to "shut-down".
Code: Select all
VBoxManage controlvm <vm> savestate
Also, i need to be sure the CPU doesn't actually shut-down before the save is complete and I'm note sure if there is something special to do.