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
Nvidia integrations on WSL2 ubuntu Host fails, with error message filesystem was mounted, but any subsequent operation failed: Unknown error 5005. But I am not sure about whether it is related to WSL2 or not, since I did not use --nvidia in my previous uses of distrobox. The problem seems to be related to ro mount of the libraries (containers/toolbox#1084 (comment) has the same error message).
To Reproduce
Steps to reproduce the behavior:
In a WSL2 ubuntu, install distrobox and create a image with --nvidia flag
$ distrobox create --name test --image ubuntu:22.04 --init --nvidia
Creating 'test' using image ubuntu:22.04 [ OK ]
Distrobox 'test' successfully created.
To enter, run:
distrobox enter test
$ distrobox enter test
Starting container... [ OK ]
printf distrobox: Installing basic packages...
Installing basic packages... [ OK ]
Setting up devpts mounts... [ OK ]
printfdistrobox: Setting up read-only mounts... [ OK ]
distrobox: Setting up read-write mounts... [ OK ]
Setting up host's sockets integration... [ OK ]Setting up host's nvidia integration...
Warning: failed to bind mount /run/host/usr/lib/wsl/drivers/nvhm.inf_amd64_ef9786a6f396f598/libnvidia-encode.so.1 to /usr/lib/wsl/drivers/nvhm.inf_amd64_ef9786a6f396f598/libnvidia-encode.so.1 Error: An error occurred
Expected behavior
Nvidia integration to succeed without any problem
distrobox enter test --verbose has the following additional information
+ mount --rbind -o ro /run/host/usr/lib/wsl/drivers/nvhm.inf_amd64_ef9786a6f396f598/libnvidia-encode.so.1 /usr/lib/wsl/drivers/nvhm.inf_amd64_ef9786a6f396f598/libnvidia-encode.so.1
mount: /usr/lib/wsl/drivers/nvhm.inf_amd64_ef9786a6f396f598/libnvidia-encode.so.1: filesystem was mounted, but any subsequent operation failed: Unknown error 5005.
Warning: failed to bind mount /run/host/usr/lib/wsl/drivers/nvhm.inf_amd64_ef9786a6f396f598/libnvidia-encode.so.1 to /usr/lib/wsl/drivers/nvhm.inf_amd64_ef9786a6f396f598/libnvidia-encode.so.1
The text was updated successfully, but these errors were encountered:
Describe the bug
Nvidia integrations on WSL2 ubuntu Host fails, with error message
filesystem was mounted, but any subsequent operation failed: Unknown error 5005.
But I am not sure about whether it is related to WSL2 or not, since I did not use --nvidia in my previous uses of distrobox. The problem seems to be related to ro mount of the libraries (containers/toolbox#1084 (comment) has the same error message).To Reproduce
Steps to reproduce the behavior:
In a WSL2 ubuntu, install distrobox and create a image with
--nvidia
flagExpected behavior
Nvidia integration to succeed without any problem
Logs
Run the commands with
--verbose
and post the log here as a file uploaddistrobox_enter_verbose.txt
Desktop (please complete the following information):
Additional context
--nvidia
flag, then entering to the container succeeds.libnvidia-encode.so.1
has the following permissions string-r-xr-xr-x
,/etc/localtime
failed to bind mount during distrobox-init #1029distrobox enter test --verbose
has the following additional informationThe text was updated successfully, but these errors were encountered: