Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save ajcastro/c1ac9fa4a4e8b7e9d417acc2beaba1d2 to your computer and use it in GitHub Desktop.
Save ajcastro/c1ac9fa4a4e8b7e9d417acc2beaba1d2 to your computer and use it in GitHub Desktop.
# Source: http://askubuntu.com/questions/760671/could-not-load-vboxdrv-after-upgrade-to-ubuntu-16-04
# Follow instructions from 1 to 4 from the source url (stackoverflow).
# Then based from the comment also sign the following modules:`vboxnetflt`, `vboxnetadp`, and `vboxpci`.
# After instruction 4: `sudo modprobe vboxdrv`, enter the following commands to finish signing the modules.
# Copy-paste the ff into the terminal:
sudo /usr/src/linux-headers-$(uname -r)/scripts/sign-file sha256 ./MOK.priv ./MOK.der $(modinfo -n vboxdrv)
sudo /usr/src/linux-headers-$(uname -r)/scripts/sign-file sha256 ./MOK.priv ./MOK.der $(modinfo -n vboxnetflt)
sudo /usr/src/linux-headers-$(uname -r)/scripts/sign-file sha256 ./MOK.priv ./MOK.der $(modinfo -n vboxnetadp)
sudo /usr/src/linux-headers-$(uname -r)/scripts/sign-file sha256 ./MOK.priv ./MOK.der $(modinfo -n vboxpci)
sudo modprobe vboxdrv
sudo modprobe vboxnetflt
sudo modprobe vboxnetadp
sudo modprobe vboxpci
# After doing so, you may run vagrant up successfully :)