Skip to content

Instantly share code, notes, and snippets.

@RogWilco
Created June 21, 2013 18:39
Show Gist options
  • Save RogWilco/5833339 to your computer and use it in GitHub Desktop.
Save RogWilco/5833339 to your computer and use it in GitHub Desktop.
Loads the required OS X kernel extensions for VirtualBox. This is specifically useful in the developer preview of OS X 10.9 Mavericks, which for some reason does not seem to automatically load these kernel extensions (which, consequently, will prevent most VMs from successfully booting). Use launchd to have this script run on boot to ensure they…
#!/bin/bash
sudo kextload -r "/Library/Extensions/" "/Library/Extensions/VBoxDrv.kext"
sudo kextload -r "/Library/Extensions/" "/Library/Extensions/VBoxNetFlt.kext"
sudo kextload -r "/Library/Extensions/" "/Library/Extensions/VBoxNetAdp.kext"
sudo kextload -r "/Library/Extensions/" "/Library/Extensions/VBoxUSB.kext"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment