You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have searched existing issues to check if an issue already exists for the bug I encountered.
Distribution
Ubuntu
Distribution version
24.04.2 LTS
Output of "snap list --all lxd core20 core22 core24 snapd"
Name Version Rev Tracking Publisher Notes
core22 20250210 1802 latest/stable canonical✓ base,disabled
core22 20250315 1908 latest/stable canonical✓ base
core24 20241217 739 latest/stable canonical✓ base
snapd 2.67 23545 latest/stable canonical✓ snapd,disabled
snapd 2.67.1 23771 latest/stable canonical✓ snapd
Output of "lxc info" or system info if it fails
I am tryinf
Issue description
CDI mode doesn't work with multiple GPUs, though with a single GPU everything is working fine. I am getting the following error when I try to start the container after adding a second GPU device:
Error: Failed to start device "gpu1": remove /var/snap/lxd/common/lxd/devices/test/cdi.disk.gpu0.etc-vulkan-icd.d-nvidia_icd.json: device or resource busy
Try `lxc info --show-log test` for more info
The output of lxc info --show-log test:
Name: test
Status: STOPPED
Type: container
Architecture: x86_64
Created: 2025/04/12 16:51 EEST
Last Used: 2025/04/12 16:51 EEST
Log:
Steps to reproduce
sudo lxc init ubuntu:24.04 test
sudo lxc config device add test gpu0 gpu gputype=physical id=nvidia.com/gpu=0
sudo lxc config device add test gpu1 gpu gputype=physical id=nvidia.com/gpu=1
sudo lxc start test
Information to attach
Any relevant kernel output (dmesg)
Instance log (lxc info NAME --show-log)
Instance configuration (lxc config show NAME --expanded)
Main daemon log (at /var/log/lxd/lxd.log or /var/snap/lxd/common/lxd/logs/lxd.log)
Output of the client with --debug
Output of the daemon with --debug (or use lxc monitor while reproducing the issue)
The text was updated successfully, but these errors were encountered:
Please confirm
Distribution
Ubuntu
Distribution version
24.04.2 LTS
Output of "snap list --all lxd core20 core22 core24 snapd"
Output of "lxc info" or system info if it fails
Issue description
CDI mode doesn't work with multiple GPUs, though with a single GPU everything is working fine. I am getting the following error when I try to start the container after adding a second GPU device:
The output of
lxc info --show-log test
:Steps to reproduce
sudo lxc init ubuntu:24.04 test
sudo lxc config device add test gpu0 gpu gputype=physical id=nvidia.com/gpu=0
sudo lxc config device add test gpu1 gpu gputype=physical id=nvidia.com/gpu=1
sudo lxc start test
Information to attach
dmesg
)lxc info NAME --show-log
)lxc config show NAME --expanded
)/var/log/lxd/lxd.log
or/var/snap/lxd/common/lxd/logs/lxd.log
)--debug
--debug
(or uselxc monitor
while reproducing the issue)The text was updated successfully, but these errors were encountered: