参考:https://www.virtualbox.org/wiki/Linux_Downloads
安装:
sudo rpm -ivh https://download.virtualbox.org/virtualbox/6.0.4/VirtualBox-6.0-6.0.4_128413_el7-1.x86_64.rpm
命令行启动virtualbox:
virtualbox
提示错误:
[hb@hb-desktop Bird2]$ virtualbox --version
WARNING: The vboxdrv kernel module is not loaded. Either there is no module
available for the current kernel (3.10.0-957.1.3.el7.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.
按照要求执行:
sudo /sbin/vboxconfig
显示:
vboxdrv.sh: Stopping VirtualBox services.
vboxdrv.sh: Starting VirtualBox services.
vboxdrv.sh: Building VirtualBox kernel modules.
问题解决。