Solution for Fedora8 failure to use VirtualBox Virtual Machine

Source: Internet
Author: User
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!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.