Linux generic headers virtualbox

Error: kernel headers not found. (But they are in place)

I’m trying to install the Guest Additions in VirtualBox 4.04. Host OS is Ubuntu desktop 11.04 64bit, guest OS is Ubuntu server 11.10 64bit.

$ sudo ./VBoxLinuxAdditions.run 
The headers for the current running kernel were not found. 
$ dpkg --get-selections | grep linux-headers linux-headers-3.0.0-12 install linux-headers-3.0.0-12-server install linux-headers-server install 
$ uname -a Linux foobar 3.0.0-12-server #20-Ubuntu SMP Fri Oct 7 16:36:30 UTC 2011 x86_64 x86_64 X86_64 GNU/Linux 

How do I fix things so that Guest Additions installer is able to find kernel headers? Update: added full output.

The headers for the current running kernel were not found. If the module compilation fails then this could be the reason. Building the main Guest Additions module . done. Building the shared folder support module . fail! (Look at /var/log/vboxadd-install.log to find out what went wrong) Installing the Window System drivers . fails! (Could not find the X.Org or XFree86 Window System). 

I don’t care for fail #2, because that’s a server and I don’t need X server. But I need shared folder support. Some further detail:

$ tail /val/log/vboxadd-install.log . cc1: some warnings being treated as errors make[2]: *** [/tmp/vbox.0/vfsmod.o] Error 1 make[1]: *** [_module_/tmp/vbox.0] Error 2 make: *** [vboxsf] Error 2 

Источник

Can’t run Virtualbox: The character device /dev/vboxdrv does not exist [duplicate]

WARNING: The character device /dev/vboxdrv does not exist. Please install the virtualbox-dkms package and the appropriate headers, most likely linux-headers-generic. You will not be able to start VMs until this problem is fixed.

Please tell us how you installed VirtualBox! Maybe you can find useful information at this link, help.ubuntu.com/community/VirtualBox, and links from it.

Читайте также:  Операционная система linux суть

I have tried many diffrent ways from yt and from the ubuntu site but non of them has workt i tried the way by your link to but it dident work

I did try a diffrent way and i did get this Reading package lists. Done Building dependency tree Reading state information. Done E: Unable to locate package virtualbox-5.1_5.1.22-115126~Ubuntu~yakkety_i386.deb E: Couldn’t find any package by glob ‘virtualbox-5.1_5.1.22-115126~Ubuntu~yakkety_i386.deb’ E: Couldn’t find any package by regex ‘virtualbox-5.1_5.1.22-115126~Ubuntu~yakkety_i386.deb’ But i did find it in my ls .

3 Answers 3

Disable Secure Boot from your bios and you’ll be able to use VirtualBox

Try to install the packages that VirtualBox needs to run.

Install them using Terminal (Ctrl-Alt-T) following these commands (press enter after each one).

sudo apt-get install virtualbox-dkms 

When it asks you to continue or not, press «y» (for yes) and then press Enter.

sudo apt-get install linux-headers-generic 

Note: Before continuing with the second command (linux-headers-generic), check if there are any updates for the headers for your Linux distribution. Because if you install the wrong headers, your system will be most likely unable to boot the OS. For example: if you install Linux Mint headers in Ubuntu, you will have the wrong headers and your OS probably won’t boot. VirtualBox displays this (linux-headers-generic) because the source code base is for all Linux distributions.

Question: What Linux distribution and what version of it are you using? (e.g.: Ubuntu 14.04 Trusty Tahr) This will help lots of users to determine the problem especially for your distribution. Also because the (VirtualBox) final code is different for every distribution.

Источник

Читайте также:  Установка драйвера amd arch linux

How to correct virtualbox installation [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.

This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.

Here is how the error output is if I run virtualbox from the terminal. How to correct it? I am on a Ubuntu 12.10 64bit machine.

virtualbox WARNING: The character device /dev/vboxdrv does not exist. Please install the virtualbox-ose-dkms package and the appropriate headers, most likely linux-headers-generic. You will not be able to start VMs until this problem is fixed. 

It says exactly what you need to do, install virtualbox-ose-dkms. Try typing sudo apt-get install virtualbox-ose-dkms and see if it goes away.

Dont downvote this question, I just had the same problem (installing virtualbox-ose-dkms didnt solve it). The accepted answer works as it triggers the kernel module recompilation

3 Answers 3

Before attempting to run this be sure that the current running Kernel headers are installed on your system. If you don’t you will receive an error indicating that you need to install them or use the —kernelsource option to point to said headers.

Following the directions on this blog post helped me. Basically after you install those two packages you also need to do the reconfiguration:

sudo dpkg-reconfigure virtualbox-dkms sudo dpkg-reconfigure virtualbox 

When attempting the steps in the blog post I get No suitable module for running kernel found . fail!

Читайте также:  Resolv conf alt linux

After the two dpkg-reconfigure commands I also needed to run:

I just stopped by to say that I needed to do these two commands as well before the accepted answer worked.

If you have the same problem in ubuntu 12.04 the above solution might not work (at least it didn’t work for me and another two — see the error I was getting in note#1 bellow). Installing the Oracle version of Virtualbox however worked just fine.

Note #1: I was getting the errors below:

ndemou ~ dkms status virtualbox, 4.1.12: added ndemou ~ sudo dkms install virtualbox/4.1.12 Kernel preparation unnecessary for this kernel. Skipping. Building module: cleaning build area. make KERNELRELEASE=3.5.0-28-generic -C /lib/modules/3.5.0-28-generic/build M=/var/lib/dkms/virtualbox/4.1.12/build. (bad exit status: 2) Error! Bad return status for module build on kernel: 3.5.0-28-generic (i686) Consult /var/lib/dkms/virtualbox/4.1.12/build/make.log for more information. 

Источник

Оцените статью
Adblock
detector