jim@jim-myth:~$ locate vboxmanage
/usr/bin/vboxmanage
/usr/share/man/man1/vboxmanage.1.gz
jim@jim-myth:~$ /usr/bin/vboxmanage modifyvm "homeassistant" --autostart-enabled on
VBoxManage: error: The path to the autostart database is not set
VBoxManage: error: Details: code NS_ERROR_FAILURE (0x80004005), component SessionMachine, interface IMachine, callee nsISupports
VBoxManage: error: Context: "COMSETTER(AutostartEnabled)(ValueUnion.f)" at line 3171 of file VBoxManageModifyVM.cpp
jim@jim-myth:~$
From what I have found the package in the ubuntu repositories lacks this and perhaps some other things. One suggestion was to use the Oracle’s repos . I used a simpler solution. Made desktop icon for virtual machine by right clicking on the vm. Then copied command from the icon and put that in startup list. https://askubuntu.com/questions/404665/how-to-start-virtual-box-machines-automatically-when-booting
After this working for a couple months it doesn’t auto start the virtual box and gives an error. Maybe due to some updates on the system? Here’s the error. Secure boot is NOT enabled in the host os. I tried reinstalling virtualbox-dkms but it still doesn’t auto start. I can start it manually and it all seems to work, just doesn’t auto start. I suppose I could wipe it and install from the Oracle repo but was hoping to avoid that and wondering how likely that is to fix this.