Autostart VM with HA in VirtualBox on Asustor

I manage to install Home Assistant on VirtualBox in Asustor AS6604T. I would like to autostart it after NAS reboot. I search on internet but can’t find any solution. Can anyone help with that?

1 Like

Hi, the solution is here
You need to create a .sh file looking like this in this path on your NAS /usr/local/etc/init.d/.
The file should contain this code:

  • #!/bin/sh
  • /opt/VirtualBox/VBoxManage startvm VMNAME --type vrdp &
    where VMNAME is the name as you see it in the list of VM in virtual box
    set permissions on the file to 0774 and you’re done