I am a newbie in Mabox Linux. I have created a virtual machine with virtual box to run homeAssistant in my Mabox installation, since I use that computer for general stuff.
I am trying to make VirtualBox auto-start at boot in the event of a power outage.
For that I created a simple script and placed it under /etc/X11/xinit/xinitrc.d/51-startHAos.sh
with the bellow code: VBoxManage startvm "HomeAssistant" --type headless
Well… it has a small problem: it only starts to run after I login to my session.
Is there a way to automatically start this process even before I login?
If not, maybe the alternative would be to auto-login, start the script and immediately after lock the screen/session.
I would prefer the first approach. Also, I’m not sure how to auto-login without password.