missing /dev/nvidia-modeset file

I am testing enroot on DGX2, and it requires the file. How do I get it installed?

cat /etc/dgx-release:

DGX_NAME=“DGX Server”
DGX_PRETTY_NAME=“NVIDIA DGX Server”
DGX_SWBUILD_DATE=“2018-11-16”
DGX_SWBUILD_VERSION=“4.0.4”
DGX_COMMIT_ID=“cc11146”
DGX_PLATFORM=“DGX Server for DGX-2”
DGX_SERIAL_NUMBER=“0574018000230”

DGX_OTA_VERSION=“4.0.7”
DGX_OTA_DATE=“Fri Sep 6 11:09:21 CEST 2019”

(For reference, creating a support ticket with NVIDIA Enterprise Support would probably be the best way to get an assured response to these types of issues- an email to mailto://EnterpriseSupport@nvidia.com would be a quick way to create a new ticket.)

Indeed, that device node isn’t present in DGX OS 4.0.x with the 410 series Tesla driver. Upgrading to DGX OS 4.1.x with the 418 series Tesla driver resolves the issue. For example, upgrading from DGX OS 4.0.7 (what you have now) to DGX OS 4.1.0 with the instructions in https://docs.nvidia.com/dgx/pdf/DGX-OS-server-4.1-relnotes-update-guide.pdf yields:

$ ls -l /dev/nvidia*
crw-rw-rw- 1 root root 195,   0 Sep 24 13:09 /dev/nvidia0
crw-rw-rw- 1 root root 195,   1 Sep 24 13:09 /dev/nvidia1
crw-rw-rw- 1 root root 195,   2 Sep 24 13:09 /dev/nvidia2
crw-rw-rw- 1 root root 195,   3 Sep 24 13:09 /dev/nvidia3
crw-rw-rw- 1 root root 195,   4 Sep 24 13:09 /dev/nvidia4
crw-rw-rw- 1 root root 195,   5 Sep 24 13:09 /dev/nvidia5
crw-rw-rw- 1 root root 195,   6 Sep 24 13:09 /dev/nvidia6
crw-rw-rw- 1 root root 195,   7 Sep 24 13:09 /dev/nvidia7
crw-rw-rw- 1 root root 195, 255 Sep 24 13:09 /dev/nvidiactl
crw-rw-rw- 1 root root 195, 254 Sep 24 13:09 /dev/nvidia-modeset
crw-rw-rw- 1 root root 236,   0 Sep 24 13:09 /dev/nvidia-uvm
crw-rw-rw- 1 root root 236,   1 Sep 24 13:09 /dev/nvidia-uvm-tools

(Realistically, you might also try “sudo mknod /dev/nvidia-modeset c 195 254”, but a better option is to upgrade to the newer DGX OS version.)

If upgrading the DGX OS release is not an option for you, I’d encourage you to create a support ticket with NVIDIA Enterprise Support.