Closed xoss closed 6 years ago
I have the same issue. Anyone with a suggestion?
Same problem here, the error indicates, that the module is already loaded. Therefore checking the dependency module and only loading them if necessary should solve this:
CMD if ! lsmod | grep "ipmi_msghandler" &> /dev/null; then insmod `find /rootfs/usr -iname ipmi_msghandler.ko`; fi && ...
I am gonna check this on our deployment and if it works open a PR.
I opened a PR as a temporary workaround I am currently using a script:
- path: /opt/load-nvidia-driver.sh
filesystem: root
mode: 0755
contents:
inline: |
#!/bin/bash
if ! lsmod | grep "ipmi_msghandler" &> /dev/null; then insmod `find /rootfs/usr -iname ipmi_msghandler.ko`; fi
if ! lsmod | grep "ipmi_devintf" &> /dev/null; then insmod `find /rootfs/usr -iname ipmi_devintf.ko`; fi
insmod ${NVIDIA_MODULES_PATH}/nvidia.ko
insmod ${NVIDIA_MODULES_PATH}/nvidia-uvm.ko
nvidia-mkdevs
And overwrite the entrypoint, e.g. in the systemd unit file:
ExecStartPre=/usr/bin/docker run --rm --privileged --volume /:/rootfs/ srcd/coreos-nvidia:${VERSION} /rootfs/opt/load-nvidia-driver.sh
Based on the recommendation given in issue #3, I was trying to start the container. Before, it failed with the message mentioned in #3, but now I encounter the reported issue and have no idea how to proceed. I was trying it as a normal and as root use. No success. Any advice will be welcome.
Thanks.