I was trying to reinstall the docker and the container-runtime, but I found out that the /etc/nvidia-container-runtime/host-files-for-container.d
was removed during the process, how do I regenerate or get it back without flashing the OS again
Hi,
Please share which container ad which version you are using. Are you using this:
This looked promising nvidia-ctk cdi generate --help
but I didn’t see a way to have it create the *.csv files.
sudo nvidia-ctk config create-default
will create the config.toml if yours is missing.
dpkg -S /etc/nvidia-container-runtime/host-files-for-container.d/
shows that those files are installed by this package
nvidia-l4t-init
dpkg -L nvidia-l4t-init |grep nvidia-container-runtime
emits this information.
/etc/nvidia-container-runtime/host-files-for-container.d
/etc/nvidia-container-runtime/host-files-for-container.d/devices.csv
/etc/nvidia-container-runtime/host-files-for-container.d/drivers.csv
Do not reinstall that deb package because it has every default nvidia-l4t configuration files and that could be a problem.
Do this to safely get the 2 original *.csv files.
mkdir temp
cd temp
apt-get download nvidia-l4t-init
dpkg-deb -x nvidia-l4t-init*.deb . (note the period )
ls etc/nvidia-container-runtime/host-files-for-container.d/
sudo cp -p ./etc/nvidia-container-runtime/host-files-for-container.d/*.csv /etc/nvidia-container-runtime/host-files-for-container.d/
Hi,
As @whitesscott suggested, copying the csv file should be a possible WAR.
Do you manually remove the files?
We try to remove the nvidia-container, which doesn’t remove the files under /etc/nvidia-container-runtime/host-files-for-container.d/
.
Thanks.
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.