This should work fine in other Linux distributions that also use systemd and mokutil. So, for now, you can use the above workaround. If ! "$"Īll that said, grafting a modified version of the above code into the '/usr/lib/virtualbox/vboxdrv.sh' script to be executed during module installation ( check to see if signed, if not then sign) and compilation ( sign immediately after compiling) would also do the trick.Īnother solution could be to port the entire thing to DKMS and leverage the existing infrastructure, but that's probably far too much work at this point (which is likely why it hasn't been done). Then, create the following script and store it as /usr/bin/ensure-vbox-signed: can't load the service if driver sigining fails). before the VirtualBox startup service is run), and be required by it (i.e. The above unit is meant to be executed before rvice (i.e. Please note that you'll need to have MOK keys already created and enrolled, otherwise there won't be anything to sign the modules with.įirst, create the following systemd unit as /etc/systemd/system/rvice:ĭescription=Ensure the VirtualBox Linux kernel modules are signed This is based on systemd's RequiredBy capability, shim and mokutils. I'm sure it'll also work for Artful (17.10) and Zesty (17.04). I applied the following workaround for Ubuntu Bionic (18.04). Vboxdrv.sh: Starting VirtualBox services. Vboxdrv.sh: Building VirtualBox kernel modules. Vboxdrv.sh: Stopping VirtualBox services. Tail /var/log/vbox-install.log VirtualBox 5.2.13 r122773 installer, built. The installation log file is at /var/log/vbox-install.log. You will find useful information about using VirtualBox in the user manual VirtualBox has been installed successfully. There were problems setting up VirtualBox. Vboxdrv.sh: failed: modprobe vboxdrv failed. Python found: python, installing bindings.Ĭreated symlink /etc/systemd/system//rvice → /lib/systemd/system/rvice.Ĭreated symlink /etc/systemd/system//rvice → /lib/systemd/system/rvice.Ĭreated symlink /etc/systemd/system//rvice → /lib/systemd/system/rvice.Ĭreated symlink /etc/systemd/system//rvice → /lib/systemd/system/rvice. Removing previous installation of VirtualBox 5.2.13 r122773 from /opt/VirtualBox VirtualBox Version 5.2.13 r122773 () installer Uncompressing VirtualBox for Linux installation. VirtualBox-5.2.13-122773-Linux_n Verifying archive integrity. usr/src/linux-headers-$(uname -r)/scripts/sign-file sha256 \ I can sign the libraries, but still the installer doesn't work.įor modfile in $(dirname $(modinfo -n vboxdrv))/*.ko do
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |