Skip to content

Files

Latest commit

4f27109 · Oct 15, 2016

History

History
72 lines (48 loc) · 2.13 KB

README.virtualbox.md

File metadata and controls

72 lines (48 loc) · 2.13 KB

VirtualBox 5.1

Tips for installing VirtualBox 5.1 with Secure Boot on Fedora

Install VirtaulBox 5.1

  1. Import the Oracle public key.
sudo rpm --import https://www.virtualbox.org/download/oracle_vbox.asc
  1. Install the Fedora VirtualBox repo file to /etc/yum.repos.d/
sudo wget -O /etc/yum.repos.d/virtualbox.repo http://download.virtualbox.org/virtualbox/rpm/fedora/virtualbox.repo
  1. Install requirements for building kernel modules
sudo dnf install binutils gcc make patch libgomp glibc-headers glibc-devel kernel-headers kernel-devel dkms
  1. Install VirtualBox 5.1
sudo dnf install VirtualBox-5.1
  1. Add your user to the vboxusers group
usermod -a -G vboxusers user_name

see virtualbox and if-not-true-then-false

Sign Kernel Modules for Secure Boot

  1. Generate certificate
openssl req -new -x509 -newkey rsa:2048 -keyout MOK.priv -outform DER -out MOK.der -nodes -days 36500 -subj "/CN=Stanswers/"
  1. Import module in MOKManager of UEFI
sudo mokutil --import MOK.der

note: you will be propmted to provide a password make sure to remember this you will be prompted for it when enrolling MOK in the next step

  1. Reboot and follow the "Perform MOK management" dialogue.

    Enroll MOK -> Continue -> Yes -> (provide your password) -> Ok

  2. Sign VirtualBox Modules

for module in vboxdrv vboxnetflt vboxnetadp vboxpci; do
  echo sudo /usr/src/kernels/$(uname -r)/scripts/sign-file sha256 ./MOK.priv ./MOK.der $(modinfo -n $module)
done

note: each time "/sbin/rcvboxdrv setup" is called the VirtualBox Modules will have to be signed again.

  1. Finall restart the vboxdrv
systemctl restart vboxdrv

see tejasbarot