Let's first look at using VirtualBox Virtual Machine in Fedora8. We cannot use VirtualBox Virtual Machine in Fedora8 because Fedora8 upgrades the kernel or does not have the original kernel code when installing VirtualBox, the following error occurs when running VirtualBox: VirtualBoxkerneldrivernotinstalled. thevboxdrvkernelmodulewaseith
Let's take a look at using the VirtualBox Virtual Machine in Fedora8.
We cannot use the VirtualBox VM in Fedora8 because Fedora8 upgrades the kernel or the original kernel code does not exist during VirtualBox installation. The following error occurs during VirtualBox running.
VirtualBox kernel driver not installed. The vboxdrv kernel module was either not loaded or/dev/vboxdrv was not created for some reason.
Re-setup the kernel module by executing '/etc/init. d/vboxdrv setup'
As root.
When we run
[OrientSun @ localhost ~] $ Sudo/etc/init. d/vboxdrv setup // the following error occurs when the VirtualBox kernel is re-compiled.
Stopping VirtualBox kernel module: vboxdrv. [OK]
Recompiling VirtualBox kernel module: vboxdrv [failed]
* Look at/var/log/vbox-install.log to find out what went wrong
I will use: gedit/var/log/vbox-install.log
I did not install gcc or the kernel source code. The kernel source code is generally stored in the usr/src/kernels/directory.
So I used
[OrientSun @ localhost ~] $ Yum inteall gcc is used for re-compiling the kernel. I am usually engaged in J2EE development now, so I didn't install gcc when installing Fedora 8. If you have chosen, you do not need to install it,
Now we need to download the original kernel code. before downloading the source code, we need to check your kernel version. Use the following command.
[OrientSun @ localhost ~] $ Uname-rm
2.6.23.9-85. fc8 i686
// Red indicates the version number! Download the 2.6.23.9-85. fc8 i686 kernel source code from the Internet !, I chose the rpm package, because you just double-click it to automatically decompress for you, the kernel-devel-2.6.23.9-85.fc8 i686.rpm unzipping directory is
/Usr/src/kernels/2.6.23.9-85. fc8-i686
Below:
Http://hany.sk/mirror/fedora/updates/8/i386/kernel-devel-2.6.23.9-85.fc8.i686.rpm
Download back, directly double-click OK, it will automatically decompress to/usr/src/kernels/2.6.23.9-85. fc8-i686 directory
Now we are running
[OrientSun @ localhost ~] $ Sudo/etc/init. d/vboxdrv setup
Stopping VirtualBox kernel module [OK]
Recompiling VirtualBox kernel module [OK]
Starting VirtualBox kernel module [OK]
Successful! Now you can successfully run VirtualBox.
Let's take a look at my run!