LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud
User Name
Password
Linux - Virtualization and Cloud This forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.

Notices


Reply
  Search this Thread
Old 02-07-2019, 04:59 AM   #1
parotta36
Member
 
Registered: Dec 2017
Location: Madurai
Distribution: Linux Mint | Slackware
Posts: 59

Rep: Reputation: Disabled
Kernel headers for VirtualBox


I'm using Linux kernel 4.15.0-43 on Linuxmint 19.1, and when I run Guest Additions in VirtualBox, it says to install kernel headers.

So far, I've installed
  • linux-headers-kvm
  • linux-headers-4.15.0-43-lowlatency
  • linux-headers-generic-hwe-18.04
  • linux-headers-generic-hwe-18.04-edge
  • linux-headers-virtual-hwe-18.04
  • linux-headers-virtual-hwe-18.04-edge
  • linux-headers-$(uname -r)
  • linux-headers-generic
  • virtualbox-guest-dkms
  • build-essential & dkms
  • linux-headers-4.15.0-43
  • linux-headers-4.15.0-43-generic
It still gives the same error message. What else should I install?


There are many other packages like linux-headers-4.15.0-[1004-1036]-[oem,gcp,aws,oracle,azure], linux-headers-[aws,azure,gcp,gke,oem,oracle], should I install any of them?

Why are there so many packages for
linux-kvm-headers-4.15.0- 1008, 1011, 1012, 1016, 1017, 1019, 1020 ... 1029???

Last edited by parotta36; 02-07-2019 at 05:03 AM.
 
Old 02-07-2019, 05:04 AM   #2
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
What is your guest operating system?

Are you installing these header packages in the guest or host operating system?

Just as general advice, it's not a good idea to install lots of packages without really knowing what you are doing.
 
1 members found this post helpful.
Old 02-07-2019, 09:08 AM   #3
parotta36
Member
 
Registered: Dec 2017
Location: Madurai
Distribution: Linux Mint | Slackware
Posts: 59

Original Poster
Rep: Reputation: Disabled
Guest is Slackware 14.2 on Virtualbox 5.2.18_Ubuntu r123745.

I'm installing the headers in the host.

Well, I'm very desperate to get it running. Now, I've removed linux-headers-kvm & linux-headers-4.15.0-43-[1029 & lowlatency].
I also purged and installed virtualbox-dkms,guest-dkms
 
Old 02-07-2019, 09:12 AM   #4
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
Forgive me if I'm wrong but, as far as I know, if you're running Guest additions in the guest, and running that requires a header file, then it is the guest that will need the relevant header package.
 
1 members found this post helpful.
Old 02-07-2019, 10:23 AM   #5
ehartman
Senior Member
 
Registered: Jul 2007
Location: Delft, The Netherlands
Distribution: Slackware
Posts: 1,674

Rep: Reputation: 888Reputation: 888Reputation: 888Reputation: 888Reputation: 888Reputation: 888Reputation: 888
Quote:
Originally Posted by parotta36 View Post
Guest is Slackware 14.2 on Virtualbox 5.2.18_Ubuntu r123745.

I'm installing the headers in the host.
For Slackware you need to install the kernel-headers-4.4.* package for the kernel VERSION you did install in that guest O/S (there have been several kernel updates in 14.2, so the specific version will depend on which kernel package you installed IN that guest).
Latest version has been 4.4.172, but as far as I know that version will not work yet with VirtualBox, especially not one that old. VB's code for the Guest additions hasn't been updated for kernels 4.4.168 or later.

See the VirtualBox & Kernel 4.4.172 thread too for more info.

Last edited by ehartman; 02-07-2019 at 10:25 AM.
 
2 members found this post helpful.
Old 02-07-2019, 11:06 AM   #6
parotta36
Member
 
Registered: Dec 2017
Location: Madurai
Distribution: Linux Mint | Slackware
Posts: 59

Original Poster
Rep: Reputation: Disabled
hydrurga Well, you are right.
ehartman Okay

Last edited by parotta36; 02-07-2019 at 11:09 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Kernel headers for VirtualBox parotta36 Linux Mint 3 02-07-2019 05:25 AM
Issue with kernel headers with VirtualBox install. samBl Linux - Kernel 2 08-29-2013 08:38 PM
[kernel-headers-3.2.45-x86-3] OR [kernel-headers-3.2.45_smp-x86-3]? Sefid par Slackware 3 07-24-2013 09:59 AM
Zypper wants to dl the wrong kernel headers... YaST doesnt have current headers zorb SUSE / openSUSE 2 11-28-2009 11:12 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud

All times are GMT -5. The time now is 10:19 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration