Skip to content

invalid discovery mode: cdi #1376

@Undefined443

Description

@Undefined443

After upgrading to nvidia-container-toolkit v1.18.0-1, I followed the instructions from Generating a CDI specification to generate the CDI specification, but encountered the following problem:

$ sudo systemctl enable --now nvidia-cdi-refresh.service
Job for nvidia-cdi-refresh.service failed because the control process exited with error code.
See "systemctl status nvidia-cdi-refresh.service" and "journalctl -xeu nvidia-cdi-refresh.service" for details.

After checking the log records, I found that the error message was invalid discovery mode: cdi:

$ sudo journalctl -u nvidia-cdi-refresh.service
Oct 23 10:22:21 ubuntu systemd[1]: Starting nvidia-cdi-refresh.service - Refresh NVIDIA CDI specification file...
Oct 23 10:22:21 ubuntu nvidia-ctk[64294]: time="2025-10-23T10:22:21+08:00" level=error msg="invalid discovery mode: cdi"
Oct 23 10:22:21 ubuntu systemd[1]: nvidia-cdi-refresh.service: Main process exited, code=exited, status=1/FAILURE
Oct 23 10:22:21 ubuntu systemd[1]: nvidia-cdi-refresh.service: Failed with result 'exit-code'.
Oct 23 10:22:21 ubuntu systemd[1]: Failed to start nvidia-cdi-refresh.service - Refresh NVIDIA CDI specification file.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions