Jump to content
funtoo forums
  • 0

virtualbox-guest-additions KERN_DIR


Hi there,

I am attempting to emerge virtualbox-guest-additions package.  This consistently fails with the error message:

*** The variable KERN_DIR must be a kernel build folder and end with /build without a trailing slash, or KERN_VER must be set.  Stop.

The values reported in relation to this error message are:


I have come across this error being reported many times reported for other distributions.  In these cases the suggestion has been to install linux-headers and pre-populate KERN_DIR with path to your kernel source before installing.  I have even tried hard coding this in the ebuild, also I have tried masking off ebuilds to use the Gentoo stable version.

Any help or insight would be gratefully received.

Share this post

Link to post
Share on other sites

3 answers to this question

Recommended Posts

  • 0

The current version which Funtoo tries to build is virtualbox-guest-additions-5.2.14.

When I try to emerge virtualbox-guest-addtions-5.1.36, then xf86-video-virtualbox-5.1* is pulled in which blocked by xf86-video-vboxvideo-1.0.0 and turns into a rabbit hole of dependency conflicts.


Share this post

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...