I have the following configuration setup
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Disabled</key>
<false/>
<key>KeepAlive</key>
<true/>
<key>Label</key>
<string>org.virtualbox.vboxautostart</string>
<key>ProgramArguments</key>
<array>
<string>/Applications/VirtualBox.app/Contents/MacOS/VBoxAutostartDarwin.sh</str ing>
<string>/etc/vbox/autostart.cfg</string>
</array>
<key>RunAtLoad</key>
<true/>
<key>LaunchOnlyOnce</key>
<false/>
</dict>
</plist>
$ cat /etc/vbox/autostart.cfg
default_policy = allow
Then I did the following
sudo chmod +x /Applications/VirtualBox.app/Contents/MacOS/VBoxAutostartDarwin.sh
sudo chown root:wheel /etc/vbox
sudo chown root:wheel /etc/vbox/autostart.cfg
sudo chown root:wheel /Library/LaunchDaemons/org.virtualbox.vboxautostart.plist
and
VBoxManage modifyvm va1 --autostart-enabled on
VBoxManage modifyvm va1 --autostop-type acpishutdown
VBoxManage modifyvm va2 --autostart-enabled on
VBoxManage modifyvm va2 --autostop-type acpishutdown
Then, I issued the following command for verification:
sudo launchctl load /Library/LaunchDaemons/org.virtualbox.vboxautostart.plist
However, only one VM starts at reboot and sometimes both don't start.
What am I missing here?