VirtualBox sign drivers EFI Centos 7

Issues related to applications and software problems
Post Reply
Adonist
Posts: 4
Joined: 2019/09/02 15:19:29

VirtualBox sign drivers EFI Centos 7

Post by Adonist » 2019/09/06 11:01:20

Hi there,

Has anyone managed to sign drivers for VirtualBox on Centos 7 with EFI ?
I can't seem to find any documentation on that and modprobe doesn't seem to find the drivers either.

Thanks

User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: VirtualBox sign drivers EFI Centos 7

Post by TrevorH » 2019/09/06 11:16:23

Sign them? You mean so that they can be used with secure boot?
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

Adonist
Posts: 4
Joined: 2019/09/02 15:19:29

Re: VirtualBox sign drivers EFI Centos 7

Post by Adonist » 2019/09/06 15:05:37

Actually no.
Secure boot is disabled already in the BIOS, but the machine was installed with EFI.
When trying to running a VM that's the message we receive:
WARNING: The vboxdrv kernel module is not loaded. Either there is no module
available for the current kernel (3.10.0-957.21.2.el7.x86_64) or it failed to
load. Please recompile the kernel module and install it by
sudo /sbin/vboxconfig
You will not be able to start VMs until this problem is fixed.
When running the /sbin/vboxconfig we get the following errors:
vboxdrv.sh: Stopping VirtualBox services.
vboxdrv.sh: Starting VirtualBox services.
vboxdrv.sh: You must sign these kernel modules before using VirtualBox:
vboxdrv vboxnetflt vboxnetadp vboxpci
See the documenatation for your Linux distribution..
vboxdrv.sh: Building VirtualBox kernel modules.
vboxdrv.sh: failed: modprobe vboxdrv failed. Please use 'dmesg' to find out why.
There's nothing in dmesg either.
I've seen some posts of people running some commands in Ubuntu and fixing it, but can't get it in Centos for some reason.

User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: VirtualBox sign drivers EFI Centos 7

Post by TrevorH » 2019/09/06 15:23:51

If secure boot is disabled then there is nothing to sign and that message from vbox is in error. Perhaps they need to wrap that in a test for the existence of /sys/firmware/efi before they tell you that?
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

lightman47
Posts: 1521
Joined: 2014/05/21 20:16:00
Location: Central New York, USA

Re: VirtualBox sign drivers EFI Centos 7

Post by lightman47 » 2019/09/06 15:58:22

Try switcing to "su -" (NOT 'sudo') and run yum reinstall VirtualBox*.*

See if that helps.

Adonist
Posts: 4
Joined: 2019/09/02 15:19:29

Re: VirtualBox sign drivers EFI Centos 7

Post by Adonist » 2019/09/06 16:12:15

TrevorH wrote:
2019/09/06 15:23:51
If secure boot is disabled then there is nothing to sign and that message from vbox is in error. Perhaps they need to wrap that in a test for the existence of /sys/firmware/efi before they tell you that?
I will try to report to them as a bug then. Let's see.
lightman47 wrote:
2019/09/06 15:58:22
Try switcing to "su -" (NOT 'sudo') and run yum reinstall VirtualBox*.*

See if that helps.
Well, I think trying to reinstall is one of the first step to do before even coming and posting in a forum, so I thought that didn't need to be mentioned.
But yeah, I've tried to reinstall and as a root of course without sudo. It's not a sudo issue anyway.

Post Reply