Skip to content

Instantly share code, notes, and snippets.

@mcallari
Created August 21, 2014 18:53
Show Gist options
  • Save mcallari/66ff5c401a91f8e5974f to your computer and use it in GitHub Desktop.
Save mcallari/66ff5c401a91f8e5974f to your computer and use it in GitHub Desktop.
Restart VirtualBox on OSX
If you need to restart VirtualBox.
This fixes an issue such as:
There was an error while executing `VBoxManage`, a CLI used by Vagrant
for controlling VirtualBox. The command and stderr is shown below.
Command: ["hostonlyif", "create"]
sudo /Library/Application\ Support/VirtualBox/LaunchDaemons/VirtualBoxStartup.sh restart
@xiaods
Copy link

xiaods commented Jun 4, 2017

xiaods at XiaoTommydeMacBook-Pro in ~/Documents/Code/mesos-projects
$ sudo /Library/Application\ Support/VirtualBox/LaunchDaemons/VirtualBoxStartup.sh restart
Loading VBoxDrv.kext
/Library/Application Support/VirtualBox/VBoxDrv.kext failed to load - (libkern/kext) kext (kmod) start/stop routine failed; check the system/kernel logs for errors or try kextutil(8).
Error: Failed to load /Library/Application Support/VirtualBox/VBoxDrv.kext
Loading VBoxUSB.kext
/Library/Application Support/VirtualBox/VBoxUSB.kext failed to load - (libkern/kext) dependency load failed; check the system/kernel logs for errors or try kextutil(8).
Error: Failed to load /Library/Application Support/VirtualBox/VBoxUSB.kext
Loading VBoxNetFlt.kext
/Library/Application Support/VirtualBox/VBoxNetFlt.kext failed to load - (libkern/kext) dependency load failed; check the system/kernel logs for errors or try kextutil(8).
Error: Failed to load /Library/Application Support/VirtualBox/VBoxNetFlt.kext
Loading VBoxNetAdp.kext
/Library/Application Support/VirtualBox/VBoxNetAdp.kext failed to load - (libkern/kext) dependency load failed; check the system/kernel logs for errors or try kextutil(8).
Error: Failed to load /Library/Application Support/VirtualBox/VBoxNetAdp.kext
(kernel) Kext org.virtualbox.kext.VBoxNetAdp not found for unload request.
Failed to unload org.virtualbox.kext.VBoxNetAdp - (libkern/kext) not found.
(kernel) Kext org.virtualbox.kext.VBoxNetFlt not found for unload request.
Failed to unload org.virtualbox.kext.VBoxNetFlt - (libkern/kext) not found.
(kernel) Kext org.virtualbox.kext.VBoxUSB not found for unload request.
Failed to unload org.virtualbox.kext.VBoxUSB - (libkern/kext) not found.
Fatal error: VirtualBox

@st3phani
Copy link

It's the same for me.

@BrightLin
Copy link

BrightLin commented Aug 23, 2022

It's the same for me. This work for me : System Preferences–> Security and Privacy shows: System software from developer “Oracle America, Inc” has been updated (Allow box on right is inoperative), then reboot.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment