[Bug 1971978] Re: Driver binaries fail to load on arm64 through LXD

2022-05-18 Thread Simon Fels
The same problem can be reproduced with the sbsa 510 driver from the NVIDIA CUDA repository (see https://developer.nvidia.com/cuda- downloads?target_os=Linux_arch=arm64-sbsa=Native=Ubuntu_version=22.04_type=deb_network) -- You received this bug notification because you are a member of Ubuntu

[Bug 1971978] Re: Driver binaries fail to load on arm64 through LXD

2022-05-09 Thread Simon Fels
> Separately i'm failing to get even as far as the bug description gets > as i get failures on missing newuidmap binary and what not: The log looks exactly like what you should see. The error about missing newuidmap/newgidmap is expected as LXD writes the uidmap for the container directly and

[Bug 1971978] Re: Driver binaries fail to load on arm64 through LXD

2022-05-09 Thread Stéphane Graber
For nvidia.runtime=true to work, you need an NVIDIA driver as well as the CUDA library on the host. The libnvidia-container part is identical on both architectures and has been used by Anbox before, so we're pretty confident it works. Just not on 22.04 hosts. -- You received this bug

[Bug 1971978] Re: Driver binaries fail to load on arm64 through LXD

2022-05-09 Thread Dimitri John Ledkov
Separately i'm failing to get even as far as the bug description gets, as i get failures on missing newuidmap binary and what not: $ lxc info --show-log local:evident-oyster Name: evident-oyster Status: STOPPED Type: container Architecture: aarch64 Created: 2022/05/09 15:41 UTC Last Used:

[Bug 1971978] Re: Driver binaries fail to load on arm64 through LXD

2022-05-06 Thread Stéphane Graber
Right, nvidia-container-cli is specifically designed to use files from the host (outside of snap environment) as the files it loads (through dlopen) cannot be bundled (cuda, driver files, ...). nvidia-container-cli has logic to effectively chroot prior to processing any of the dlopen. It's then

[Bug 1971978] Re: Driver binaries fail to load on arm64 through LXD

2022-05-06 Thread Simon Fels
The LXD snap itself isn't the problem. It only includes the nvidia- container-cli utility (see https://github.com/NVIDIA/libnvidia- container) which works as expected but fails to map to the driver binaries from the host into the container environment due to the incompatible symbols. This way you

[Bug 1971978] Re: Driver binaries fail to load on arm64 through LXD

2022-05-06 Thread Dimitri John Ledkov
It would be worth checking with lxd team if the lxd snap is building compatible container nvidia bits on arm64. Cause it looks like maybe one needs lxd based on core22 base to have this all work. or like wait for us to provide 510 nvidia drivers on arm64 on focal; and use that with focal based