After finding a lot of other posts on the topic that didn’t work out for me this one did the trick so I’m reposting for my own sense of self preservation.
Copy the Virtualbox autostart plist template file to your system’s LaunchDaemons folder.
sudo cp \
true, and confirm the last string entry in the command array is set to
/etc/vbox/autostart.cfg. The file should look like this:
<?xml version="1.0" encoding="UTF-8"?>
Make the directory
/etc/vbox and create the file
/etc/vbox/autostart.cfg with the following content:
default_policy = deny
Make sure to change osxusername to the username on your system that the VMs are under.
Next properly set permissions:
sudo chmod +x /Applications/VirtualBox.app/Contents/MacOS/VBoxAutostartDarwin.sh
Now, configure the VMs that should automatically start and set how they should be stopped:
VBoxManage modifyvm vmname --autostart-enabled on
Finally, test the configuration by running:
sudo launchctl load /Library/LaunchDaemons/org.virtualbox.vboxautostart.plist
After a reboot, the VMs that have been set with autostart enabled should be running!