Jump to content
Forums in Read-Only Mode - Please use Reddit ×
  • 0

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


vchipk985

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)?

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 1
  • Funtoo Linux BDFL

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.

Link to comment
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

Link to comment
Share on other sites

×
×
  • Create New...