Jump to content
funtoo forums
  • 0
Sign in to follow this  
vchipk985

[solved] lxd/lxc no .config in the kernel source directory

Question

Hello,

I'm trying to set up a LXD GPU-accelerated container.

First time doing so i used https://www.funtoo.org/LXD/GPU_Acceleration

but on emerge -auDN @world xorg-x11 --jobs step  x11-drivers/nvidia-drivers fails with:

 * Could not find a usable .config in the kernel source directory.                                                                        
 * Please ensure that /usr/src/linux points to a configured set of Linux sources.
 * If you are using KBUILD_OUTPUT, please set the environment var so that
 * it points to the necessary object directory so that it might find .config.         
 * ERROR: x11-drivers/nvidia-drivers-430.40::gentoo failed (pretend phase):           
 *   Kernel not configured; no .config found in /usr/src/linux

Should I compile a kernel for the container? (manual or genkernel)

Or should i use the host .config (debian-sources)?

Share this post


Link to post
Share on other sites

2 answers to this question

Recommended Posts

  • 1

LXD GPU-accelerated containers requires Funtoo Linux 1.4. It looks like you may be using Funtoo Linux 1.3?

The nvidia-drivers in 1.4 has been significantly modified to work properly inside containers and not require a kernel. The 1.3 one hasn't.

Share this post


Link to post
Share on other sites
  • 0
2 hours ago, drobbins said:

LXD GPU-accelerated containers requires Funtoo Linux 1.4. It looks like you may be using Funtoo Linux 1.3?

The nvidia-drivers in 1.4 has been significantly modified to work properly inside containers and not require a kernel. The 1.3 one hasn't.

Hello Daniel,

I'm using Funtoo 1.4 on host for 2 weeks by now, thanks for the release.

About the problem: After a emerge --sync today on gentoo guest the error is gone (at least for now, still in emerge process),

Thanks for the help

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.

Guest
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.

Sign in to follow this  

×
×
  • Create New...