I'm having some problems with auto-starting a VM on macOS Monterey 12.2 and am hoping someone from the forum can assist. I've read the user manual and even tried the VBoxStartAtBoot tool another member has shared here on the forum and in both cases, it's just not auto-starting on reboot.
Here are the files I believe are relevant. Maybe I just have something wrong but for the most part, these files were auto-generated. The VM name is "HA2" and the UUID is "98ff363b-4279-402e-bf24-a8e1ab472783" and I want it to run headless after a reboot (preferably before a user even logs in)
/Library/LaunchDaemons/org.virtualbox.vboxautostart.plist
Code: Select all
<?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>Label</key>
<string>org.virtualbox.vboxautostart</string>
<key>ProgramArguments</key>
<array>
<string>/Library/Application Support/VBoxStartAtBoot/VBoxAutostartDarwin.sh</string>
<string>/etc/vbox/autostart.cfg</string>
</array>
<key>RunAtLoad</key>
<true/>
<key>LaunchOnlyOnce</key>
<true/>
<key>StandardErrorPath</key>
<string>/tmp/vboxautostart.error.log</string>
<key>StandardOutPath</key>
<string>/tmp/vboxautostart.log</string>
</dict>
</plist>
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key> <string>org.virtualbox.startup</string>
<key>Disabled</key> <false/>
<key>RunAtLoad</key> <true/>
<key>KeepAlive</key> <false/>
<key>LaunchOnlyOnce</key> <true/>
<key>ProgramArguments</key>
<array>
<string>/Library/Application Support/VirtualBox/LaunchDaemons/VirtualBoxStartup.sh</string>
<string>restart</string>
</array>
</dict>
</plist>
Code: Select all
<?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>
<true/>
<key>KeepAlive</key>
<false/>
<key>Label</key>
<string>org.virtualbox.vboxwebsvc</string>
<key>Program</key>
<string>/Applications/VirtualBox.app/Contents/MacOS/vboxwebsrv</string>
<key>Sockets</key>
<dict>
<key>Listeners</key>
<dict>
<key>SockServiceName</key>
<string>18083</string>
<key>SockType</key>
<string>stream</string>
<key>SockFamily</key>
<string>IPv4</string>
</dict>
</dict>
</dict>
</plist>
Code: Select all
## This file was created by VBoxStartAtBoot.
## Do not edit this file manually otherwise any changes you
## make WILL be overriden next time you run VBoxStartAtBoot.
default_policy = allow
SoCalDude = {
allow = true
}