AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / computer / 问题 / 1539756
Accepted
denn0n
denn0n
Asked: 2020-04-08 14:17:42 +0800 CST2020-04-08 14:17:42 +0800 CST 2020-04-08 14:17:42 +0800 CST

VirtualBox 6 Fedora 30 EFI 安全启动您可能需要在加载内核模块(vboxdrv、vboxnetflt、vboxnetadp、vboxpci)之前对其进行签名

  • 772

你好,我正在尝试在我想在其中运行 Vm 的 PC Lenovo AllIn 上安装 VirtualBox 6,从昨天开始我正在解决这个问题

virtualbox fedora
  • 1 1 个回答
  • 5779 Views

1 个回答

  • Voted
  1. Best Answer
    denn0n
    2020-04-08T14:17:42+08:002020-04-08T14:17:42+08:00

    安全启动启用

    然后读到这个

    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 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.
    

    然后我像这样对模块进行自我签名

        cd /root/module-signing
        openssl req -new -x509 -newkey rsa:2048 -keyout MOK.priv -outform DER -out MOK.der -nodes -days 36500 -subj "/CN=YOUR_NAME/"
        chmod 600 MOK.priv
    

    并导入密钥

    mokutil --import /root/module-signing/MOK.der
      input password: type my password
      input password again: type my password
    

    我检查这样的模块

     $ for modfile in $(dirname $(modinfo -n vboxdrv))/*.ko; do hexdump -Cv  "$modfile" | tail -n 5 ;done
    
    00dcdc20  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
    00dcdc30  a8 c9 dc 00 00 00 00 00  6b 02 00 00 00 00 00 00  |........k.......|
    00dcdc40  00 00 00 00 00 00 00 00  01 00 00 00 00 00 00 00  |................|
    00dcdc50  00 00 00 00 00 00 00 00                           |........|
    00dcdc58
    00094400  11 00 00 00 03 00 00 00  00 00 00 00 00 00 00 00  |................|
    00094410  00 00 00 00 00 00 00 00  c0 36 09 00 00 00 00 00  |.........6......|
    00094420  bb 01 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
    00094430  01 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
    00094440
    00113470  11 00 00 00 03 00 00 00  00 00 00 00 00 00 00 00  |................|
    00113480  00 00 00 00 00 00 00 00  b8 27 11 00 00 00 00 00  |.........'......|
    00113490  b1 01 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
    001134a0  01 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
    001134b0
    000ddbf0  11 00 00 00 03 00 00 00  00 00 00 00 00 00 00 00  |................|
    000ddc00  00 00 00 00 00 00 00 00  38 cf 0d 00 00 00 00 00  |........8.......|
    000ddc10  b1 01 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
    000ddc20  01 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
    

    并运行

    $ for modfile in $(dirname $(modinfo -n vboxdrv))/*.ko; do /usr/src/kernels/$(uname -r)/scripts/sign-file sha256 /root/module-signing/MOK.priv /root/module-signing/MOK.der "$modfile" ;done
    

    并再次检查

    $ for modfile in $(dirname $(modinfo -n vboxdrv))/*.ko; do hexdump -Cv  "$modfile" | tail -n 5 ;done
    
    00dcddd0  f2 67 a1 c7 88 5f 39 1e  1f e6 34 65 a1 8f ca 24  |.g..._9...4e...$|
    00dcdde0  e4 b2 b6 d0 00 00 02 00  00 00 00 00 00 00 01 8c  |................|
    00dcddf0  7e 4d 6f 64 75 6c 65 20  73 69 67 6e 61 74 75 72  |~Module signatur|
    00dcde00  65 20 61 70 70 65 6e 64  65 64 7e 0a              |e appended~.|
    00dcde0c
    000945c0  35 19 99 5f 30 f8 21 51  84 00 6d 17 00 00 02 00  |5.._0.!Q..m.....|
    000945d0  00 00 00 00 00 00 01 8c  7e 4d 6f 64 75 6c 65 20  |........~Module |
    000945e0  73 69 67 6e 61 74 75 72  65 20 61 70 70 65 6e 64  |signature append|
    000945f0  65 64 7e 0a                                       |ed~.|
    000945f4
    00113630  66 35 23 5c b8 d3 de aa  66 69 45 eb 00 00 02 00  |f5#\....fiE.....|
    00113640  00 00 00 00 00 00 01 8c  7e 4d 6f 64 75 6c 65 20  |........~Module |
    00113650  73 69 67 6e 61 74 75 72  65 20 61 70 70 65 6e 64  |signature append|
    00113660  65 64 7e 0a                                       |ed~.|
    00113664
    000dddb0  54 45 4e 4e 82 5d 75 5e  ab 97 cd 8d 00 00 02 00  |TENN.]u^........|
    000dddc0  00 00 00 00 00 00 01 8c  7e 4d 6f 64 75 6c 65 20  |........~Module |
    000dddd0  73 69 67 6e 61 74 75 72  65 20 61 70 70 65 6e 64  |signature append|
    000ddde0  65 64 7e 0a                                       |ed~.|
    000ddde4
    

    并运行

    modprobe vboxdrv 
    

    只需使用步骤即可完美!:P

    • 3

相关问题

  • VirtualBox Guest Additions for Linux Guest with kernel 5.0.5

  • 来宾运行时主机 MacOS 自动更新后虚拟框 linux 来宾死机

  • 校验和失败——Fedora 29 或旋转 KDE Plasma

  • Genymotion 如何绕过 VirtualBox 缺乏 Wi-Fi 仿真?

  • virtualbox 是否需要 CPU 来支持 VT-d 以托管 64 位客户操作系统?

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    如何减少“vmmem”进程的消耗?

    • 11 个回答
  • Marko Smith

    从 Microsoft Stream 下载视频

    • 4 个回答
  • Marko Smith

    Google Chrome DevTools 无法解析 SourceMap:chrome-extension

    • 6 个回答
  • Marko Smith

    Windows 照片查看器因为内存不足而无法运行?

    • 5 个回答
  • Marko Smith

    支持结束后如何激活 WindowsXP?

    • 6 个回答
  • Marko Smith

    远程桌面间歇性冻结

    • 7 个回答
  • Marko Smith

    子网掩码 /32 是什么意思?

    • 6 个回答
  • Marko Smith

    鼠标指针在 Windows 中按下的箭头键上移动?

    • 1 个回答
  • Marko Smith

    VirtualBox 无法以 VERR_NEM_VM_CREATE_FAILED 启动

    • 8 个回答
  • Marko Smith

    应用程序不会出现在 MacBook 的摄像头和麦克风隐私设置中

    • 5 个回答
  • Martin Hope
    CiaranWelsh 如何减少“vmmem”进程的消耗? 2020-06-10 02:06:58 +0800 CST
  • Martin Hope
    Jim Windows 10 搜索未加载,显示空白窗口 2020-02-06 03:28:26 +0800 CST
  • Martin Hope
    v15 为什么通过电缆(同轴电缆)的千兆位/秒 Internet 连接不能像光纤一样提供对称速度? 2020-01-25 08:53:31 +0800 CST
  • Martin Hope
    fixer1234 “HTTPS Everywhere”仍然相关吗? 2019-10-27 18:06:25 +0800 CST
  • Martin Hope
    andre_ss6 远程桌面间歇性冻结 2019-09-11 12:56:40 +0800 CST
  • Martin Hope
    Riley Carney 为什么在 URL 后面加一个点会删除登录信息? 2019-08-06 10:59:24 +0800 CST
  • Martin Hope
    zdimension 鼠标指针在 Windows 中按下的箭头键上移动? 2019-08-04 06:39:57 +0800 CST
  • Martin Hope
    jonsca 我所有的 Firefox 附加组件突然被禁用了,我该如何重新启用它们? 2019-05-04 17:58:52 +0800 CST
  • Martin Hope
    MCK 是否可以使用文本创建二维码? 2019-04-02 06:32:14 +0800 CST
  • Martin Hope
    SoniEx2 更改 git init 默认分支名称 2019-04-01 06:16:56 +0800 CST

热门标签

windows-10 linux windows microsoft-excel networking ubuntu worksheet-function bash command-line hard-drive

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve