Timeline for Unable to install VIrtualbox, `"Specify KERN_DIR=<directory>"` -- installing Virtual Box to Debian?
Current License: CC BY-SA 3.0
10 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jul 12, 2017 at 12:01 | comment | added | durette |
The version of the running kernel must match the version of your kernel-devel package. In Oracle Linux 6.9, after a yum update , I found it wasn't booting into the new kernel by default. I didn't care about keeping the old version, so I booted into the new kernel using the menu at boot, then removed the old kernel with a verbose yum remove command with the full name of the old kernel package. I found the name of that package by running rpm -qa kernel* | sort . (That last command is also useful for checking that your kernel-devel package matches the running kernel.)
|
|
S Mar 15, 2017 at 21:13 | history | edited | Abraxas | CC BY-SA 3.0 |
Updated with testing and additional details to make it work for CentOS.
|
S Mar 15, 2017 at 21:13 | history | suggested | Chloe | CC BY-SA 3.0 |
Updated with testing and additional details to make it work for CentOS.
|
Mar 15, 2017 at 19:18 | review | Suggested edits | |||
S Mar 15, 2017 at 21:13 | |||||
Sep 30, 2016 at 5:41 | comment | added | Artjom Kurapov |
I got errors that its not a directory. Note that it needs a slash at the end.. echo export KERN_DIR=/usr/src/kernels/uname -r / >> ~/.bashrc
|
|
Aug 16, 2016 at 14:16 | comment | added | Justin |
source ~/.bashrc to set KERN_DIR in the current environment without having to restart.
|
|
Apr 8, 2016 at 13:09 | comment | added | jnr | In my case (CentOS 6.7) [uname -r] is [2.6.32-573.el6.x86_64], but [ls /usr/src/kernels/] prints [2.6.32-573.22.1.el6.x86_64] So be careful and use actual existing dir name | |
Jan 8, 2016 at 0:14 | comment | added | Migwell |
This was the right package to install, however recompiling the kernel modules required root privileges, and running something in root will lose your environment variables (including KERN_DIR). I instead did sudo -s followed by export KERN_DIR=/usr/src/kernels/XXX but I'm sure there's a better way to persist variables into sudo mode
|
|
Jun 2, 2015 at 11:14 | comment | added | Reddy | After running above steps, had to restart guest system before reinstalling vbox guest additions again. | |
Jul 19, 2014 at 12:20 | history | answered | user11153 | CC BY-SA 3.0 |