You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Ubuntu 22.04下VirtualBox无法加载vxboxdrv内核模块问题求助

Ubuntu 22.04下VirtualBox无法加载vxboxdrv内核模块问题求助

大家好,我是Linux新手,最近刚用上Windows+Ubuntu双启动的配置。因为Ansible不支持Windows,所以我打算在Ubuntu上搭建Ansible+Vagrant+VirtualBox的学习环境,但VirtualBox这里卡壳了,麻烦各位帮忙看看!

我的环境信息

  • 系统版本:Ubuntu 22.04
  • VirtualBox版本:7.0.10(从官方网站下载安装)
  • 内核版本:6.2.0-33-generic(通过uname -r命令查看)

遇到的问题

运行VBoxManage --version命令时,终端弹出以下警告:

WARNING: The vboxdrv kernel module is not loaded. Either there is no module
available for the current kernel (6.2.0-33-generic) 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.
7.0.10r158379

按照提示执行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.

我已经尝试过的解决方法

  • 按照相关指引关闭了Secure Boot,也操作了mokutil相关的模块签名步骤,但完成后问题依然存在,错误信息还是一样。

真的很希望能解决这个问题,毕竟Ansible不支持Windows,我的Mac又是Apple Silicon架构VirtualBox也不兼容,只能靠Linux这个环境来学习了,谢谢大家的时间和帮助!

备注:内容来源于stack exchange,提问作者Sean

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.04.21 12:28:12