安装软件
sudo apt install virtualbox
sudo apt install virtualbox-dkms
<a name="Fgdik"></a>
启动软件创建虚拟机
发现报错
The VirtualBox Linux kernel driver is either not loaded or not set up correctly. Please reinstall virtualbox-dkms package and load the kernel module by executing
'modprobe vboxdrv'
as root.
If your system has EFI Secure Boot enabled you may also 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.
where: suplibOsInit what: 3 VERR_VM_DRIVER_NOT_INSTALLED (-1908) - The support driver is not installed. On linux, open returned ENOENT.

<br />按照提示重装dkms
sudo apt --reinstall install virtualbox-dkms
<br />执行后终端显示如下<br />

sudo modprobe vboxdrv
<br />提示modprobe: ERROR: could not insert 'vboxdrv': Operation not permitted
<br />重启系统reboot
<br />然后会进入一个从没见过的界面,一次按下面选择的确认,倒数第二步输入secure boot 密码,最后重启<br />






原文:https://yngee.cn/2020/11/18/elementary(Ubuntu)%E5%AE%89%E8%A3%85-Virtual-box%E9%81%87%E5%88%B0%E7%9A%84%E5%9D%91/
网友评论