Jump to content
Read the Funtoo Newsletter: Summer 2023 ×
  • 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.

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...