If your system is using EFI Secure Boot you may need to sign the kernel modules

本文记录了在Ubuntu系统中安装VirtualBox时遇到的问题及解决方法。主要问题是安装过程中出现的组冲突和内核模块加载失败。解决方案涉及BIOS设置调整及使用特定命令完成配置。

Ubuntu 安装 virtualBox 报错

root@VM-0-6-ubuntu:/home/ubuntu/newdocker# dpkg -i virtualbox-6.0_6.0.8-130520~Ubuntu~xenial_amd64.deb 
(Reading database ... 68969 files and directories currently installed.)
Preparing to unpack virtualbox-6.0_6.0.8-130520~Ubuntu~xenial_amd64.deb ...
Unpacking virtualbox-6.0 (6.0.8-130520~Ubuntu~xenial) over (6.0.8-130520~Ubuntu~xenial) ...
Setting up virtualbox-6.0 (6.0.8-130520~Ubuntu~xenial) ...
addgroup: The group `vboxusers' already exists as a system group. Exiting.
vboxdrv.sh: failed: modprobe vboxdrv failed. Please use 'dmesg' to find out why.

There were problems setting up VirtualBox.  To re-start the set-up process, run
  /sbin/vboxconfig
as root.  If your system is using EFI Secure Boot you may need to sign the
kernel modules (vboxdrv, vboxnetflt, vboxnetadp, vboxpci) before you can load
them. Please see your Linux system's documentation for more information.
Processing triggers for libc-bin (2.23-0ubuntu9) ...
Processing triggers for systemd (229-4ubuntu21.2) ...
Processing triggers for ureadahead (0.100.0-19) ...
Processing triggers for shared-mime-info (1.5-2ubuntu0.1) ...
Processing triggers for mime-support (3.59ubuntu1) ...

解决办法

进入bios 安全boot设置为disable

sudo /sbin/vboxconfig

Last login: Mon Nov 3 18:54:25 2025 from 9.11.8.102 [dragon@localhost ~]$ VBoxManage list extpacks WARNING: The vboxdrv kernel module is not loaded. Either there is no module available for the current kernel (4.19.90-23.59.v2101.ky10.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. VBoxManage: error: Failed to create the VirtualBox object! VBoxManage: error: Code NS_ERROR_FACTORY_NOT_REGISTERED (0x80040154) - Class not registered (extended info not available) VBoxManage: error: Most likely, the VirtualBox COM server is not running or failed to start. [dragon@localhost ~]$ sudo modprobe vboxdrv modprobe: FATAL: Module vboxdrv not found in directory /lib/modules/4.19.90-23.59.v2101.ky10.x86_64 [dragon@localhost ~]$ sudo /sbin/vboxconfig vboxdrv.sh: Stopping VirtualBox services. vboxdrv.sh: Starting VirtualBox services. vboxdrv.sh: Building VirtualBox kernel modules. vboxdrv.sh: failed: Look at /var/log/vbox-setup.log to find out what went wrong. There were problems setting up VirtualBox. To re-start the set-up process, run /sbin/vboxconfig as root. If your system is using EFI Secure Boot you may need to sign the kernel modules (vboxdrv, vboxnetflt, vboxnetadp, vboxpci) before you can load them. Please see your Linux system's documentation for more information. [dragon@localhost ~]$ systemctl status vboxdrv.service Failed to execute 'pager', using next fallback pager: 权限不够 ● vboxdrv.service - VirtualBox Linux kernel module Loaded: loaded (/usr/lib/virtualbox/vboxdrv.sh; enabled; vendor preset: d> Active: inactive (dead) lines 1-3/3 (END) ^C [dragon@localhost ~]$
最新发布
11-04
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值