Fedora 24 x86 安装VirtualBox

2023-05-07,,

1, 系统版本

2, 下载VirtualBox

3, 安装VirtualBox

4, 排错

5, 安装虚拟系统测试

6, 发博客

1, 系统版本

[chunli@localhost ~]$ cat /etc/redhat-release 
Fedora release 24 (Twenty Four)

[chunli@localhost ~]$ uname -rm
4.5.5-300.fc24.i686+PAE i686

系统版本和我的不一样的,不要往下看了...



2, 下载VirtualBox

Virtual box 官网 https://www.virtualbox.org/

wget http://download.virtualbox.org/virtualbox/5.1.14/VirtualBox-5.1-5.1.14_112924_fedora24-1.i686.rpm

3, 安装VirtualBox

[chunli@localhost ~]$ sudo dnf install ./VirtualBox-5.1-5.1.14_112924_fedora24-1.i686.rpm 

提示:
vboxdrv.sh: failed: Look at /var/log/vbox-install.log to find out what went wrong.
This system is not currently set up to build kernel modules (system extensions).
Running the following commands should set the system up correctly:

  yum install kernel-PAE-core-devel-4.5.5-300.fc24.i686
(The last command may fail if your system is not fully updated.)
  yum install kernel-PAE-core-devel

There were problems setting up VirtualBox.  To re-start the set-up process, run
  /sbin/vboxconfig


4, 排错

  
[chunli@localhost ~]$ sudo dnf --best --allowerasing install kernel-PAE kernel-PAE-core kernel-PAE-devel kernel-PAE-modules

[root@localhost chunli]# export KERN_DIR=/usr/src/kernels/4.9.12-100.fc24.i686+PAE/

[root@localhost chunli]# /sbin/vboxconfig
vboxdrv.sh: Building VirtualBox kernel modules.
vboxdrv.sh: Starting VirtualBox services.
vboxdrv.sh: Building VirtualBox kernel modules.
vboxdrv.sh: failed: modprobe vboxdrv failed. Please use 'dmesg' to find out why.
This system is not currently set up to build kernel modules (system extensions).
Running the following commands should set the system up correctly:

  yum install kernel-PAE-core-devel-4.5.5-300.fc24.i686
(The last command may fail if your system is not fully updated.)
  yum install kernel-PAE-core-devel

There were problems setting up VirtualBox.  To re-start the set-up process, run
  /sbin/vboxconfig
as root.


还是报错,单简洁了许多,重启电脑试试
[root@localhost chunli]# reboot


开机再试试 
[root@localhost chunli]# /sbin/vboxconfig
vboxdrv.sh: Building VirtualBox kernel modules.
vboxdrv.sh: Starting VirtualBox services.
[root@localhost chunli]# echo $?
0
终于~ 好了!


5, 安装虚拟系统测试


可以启动xp,说明virtualBox运行正常了.

6, 发博客.

《Fedora 24 x86 安装VirtualBox.doc》

下载本文的Word格式文档,以方便收藏与打印。