安装virtualbox
- 报错
Either there is no module available for the current kernel (5.4-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.
- 解决
- 进入bios设置项,关闭secure boot,即关闭安全启动项
- 不同电脑进入方法不同,以hp为例:
开机时狂按F10进入bios -> 先进 -> 安全引导配置 -> 启用传统支持和禁用安全引导 -> 保存并重启
安装增强工具
- 正常安装流程:Devices -> insert Guest additions CD image…
- 报错:
- 解决办法
- 挂载镜像文件
machine -> setting -> contruller: IDE > 挂载VBoxGuestAdditions.iso文件 - 加载镜像
sudo mount /dev/cdrom /mnt/tmp/ cd /mnt/tmp sudo bash VBoxLinuxAdditions.run
- 挂载镜像文件
- 重开虚拟机即可全屏