I am setting up a jail for desktop use and I want to install x11/nvidia-driver inside the jail.
The jail was created with ezjail.
Within the jail I attempt to install the nvidia driver from ports:
I tried to copy /usr/src to /jails/c_desktop/usr/src and got:
I tried to copy /usr/src to /jails/c_desktop/basejail/usr/src and got:
how do I install the drivers? Should I make /jails/c_desktop/basejail/usr/src read/write to install the drivers then remove the sources once the driver is installed? Thanks!
The jail was created with ezjail.
Within the jail I attempt to install the nvidia driver from ports:
Code:
c_desktop# make install clean
===> Building for nvidia-driver-256.53_1
===> src (all)
"/usr/share/mk/bsd.kmod.mk", line 12: "can't find kernel source tree"
*** Error code 1
Stop in var/ports/basejail/usr/ports/x11/nvidia-driver/work/NVIDIA-FreeBSD-x86_64-256.53.
*** Error code 1
Stop in /basejail/usr/ports/x11/nvidia-driver.
*** Error code 1
Stop in /basejail/usr/ports/x11/nvidia-driver.
I tried to copy /usr/src to /jails/c_desktop/usr/src and got:
Code:
file or directory does not exist
I tried to copy /usr/src to /jails/c_desktop/basejail/usr/src and got:
Code:
Read-only file system
how do I install the drivers? Should I make /jails/c_desktop/basejail/usr/src read/write to install the drivers then remove the sources once the driver is installed? Thanks!