-
-
Notifications
You must be signed in to change notification settings - Fork 244
Open
Labels
bugSomething isn't workingSomething isn't workingdxDeveloper Experience Image specificDeveloper Experience Image specific
Description
Describe the bug
distrobox unable to generate new container when using "--nvidia" flag
> uname -a
Linux bluefin 6.16.10-200.fc42.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Oct 2 19:23:55 UTC 2025 x86_64 GNU/Linux
> distrobox version
distrobox: 1.8.2.0
> distrobox create --nvidia --image docker.io/nvidia/cuda:13.0.2-cudnn-runtime-ubuntu24.04 --name ubuntu2404cudar1302
Creating 'ubuntu2404cudar1302' using image docker.io/nvidia/cuda:13.0.2-cudnn-runtime-ubuntu24.04 /usr/sbin/distrobox-create: eval: line 1072: syntax error near unexpected token `('
/usr/sbin/distrobox-create: eval: line 1072: `========== == CUDA == ========== CUDA Version 13.0.2 Container image Copyright (c) 2016-2023, NVIDIA CORPORATION & AFFILIATES. All rights reserved. This container image and its contents are governed by the NVIDIA Deep Learning Container License. By pulling and using the container, you accept the terms and conditions of this license: https://developer.nvidia.com/ngc/nvidia-deep-learning-container-license A copy of this license is made available in this container at /NGC-DL-CONTAINER-LICENSE for your convenience. WARNING: The NVIDIA Driver was not detected. GPU functionality will not be available. Use the NVIDIA Container Toolkit to start this container with GPU support; see https://docs.nvidia.com/datacenter/cloud-native/ . podman create --hostname "bluefin" --name "ubuntu2404cudar1302" --privileged --security-opt label=disable --security-opt apparmor=unconfined --pids-limit=-1 --user root:root --ipc host --network host --pid host --label "manager=distrobox" --label "distrobox.unshare_groups=0" --env "SHELL=bash" --env "HOME=/var/home/dragon" --env "container=podman" --env "TERMINFO_DIRS=/usr/share/terminfo:/run/host/usr/share/terminfo" --env "CONTAINER_ID=ubuntu2404cudar1302" --volume /tmp:/tmp:rslave --volume "/usr/sbin/distrobox-init":/usr/bin/entrypoint:ro --volume "/usr/sbin/distrobox-export":/usr/bin/distrobox-export:ro --volume "/usr/sbin/distrobox-host-exec":/usr/bin/distrobox-host-exec:ro --volume "/var/home/dragon":"/var/home/dragon":rslave --volume /:/run/host/:rslave --volume /dev:/dev:rslave --volume /sys:/sys:rslave --volume /dev/pts --volume /dev/null:/dev/ptmx --volume /sys/fs/selinux --volume /var/log/journal --volume /run/user/1000:/run/user/1000:rslave --volume /etc/hosts:/etc/hosts:ro --volume /etc/resolv.conf:/etc/resolv.conf:ro --volume /etc/hostname:/etc/hostname:ro --runtime=crun --annotation run.oci.keep_original_groups=1 --ulimit host --userns keep-id:size=65536 --entrypoint /usr/bin/entrypoint docker.io/nvidia/cuda:13.0.2-cudnn-runtime-ubuntu24.04 --verbose --name "dragon" --user 1000 --group 1000 --home "/var/home/dragon" --init "0" --nvidia "1" --pre-init-hooks "" --additional-packages "" -- '''
What did you expect to happen?
distrobox will generate a new container with the access of Nvidia gpu
Output of bootc status
● Booted image: ghcr.io/ublue-os/bluefin-dx-nvidia-open:stable
Digest: sha256:cb96de268dde76c7cd440274254e3be4ed44c52fa0bb5ce8f19c3b26c4675bf6 (amd64)
Version: 42.20251111 (2025-11-11T01:45:56Z)
Rollback image: ghcr.io/ublue-os/bluefin-dx-nvidia-open:stable
Digest: sha256:7ef185fa97a82f34508c4be7f4dfc1b78888fbe6d3316992ad597a4e4b0d5f72 (amd64)
Version: 42.20251029.1 (2025-10-29T05:35:33Z)Output of groups
dragon wheel dialout docker incus-admin libvirtExtra information or context
> nvidia-smi
Wed Nov 12 16:28:11 2025
+-----------------------------------------------------------------------------------------+
| NVIDIA-SMI 580.105.08 Driver Version: 580.105.08 CUDA Version: 13.0 |
+-----------------------------------------+------------------------+----------------------+
| GPU Name Persistence-M | Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap | Memory-Usage | GPU-Util Compute M. |
| | | MIG M. |
|=========================================+========================+======================|
| 0 NVIDIA GeForce RTX 4060 Off | 00000000:01:00.0 On | N/A |
| 0% 41C P8 4W / 165W | 666MiB / 8188MiB | 0% Default |
| | | N/A |
+-----------------------------------------+------------------------+----------------------+
+-----------------------------------------------------------------------------------------+
| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|=========================================================================================|
| 0 N/A N/A 3574 G /usr/bin/gnome-shell 252MiB |
| 0 N/A N/A 4097 G /usr/bin/Xwayland 2MiB |
| 0 N/A N/A 4739 G /app/zen/zen 198MiB |
| 0 N/A N/A 9474 G /usr/share/code/code 65MiB |
| 0 N/A N/A 27515 C+G /usr/bin/ptyxis 44MiB |
+-----------------------------------------------------------------------------------------+
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingdxDeveloper Experience Image specificDeveloper Experience Image specific