Nvidia GPU Passthrough to Linux Container using Ubuntu 23.04 and incus 0.6

Hi, I tried to v0.6 but the below errors appeared. How could I to setup GPU passthrough?

me@pc:~$ incus profile create nvidia
Profile nvidia created

me@pc:~$ incus profile set nvidia nvidia.runtime true

me@pc:~$ incus profile device add nvidia gpu gpu
Device gpu added to nvidia

me@pc:~$ incus launch images:ubuntu/23.04 u1 -p default -p nvidia
Creating u1
Starting u1
Error: Failed to run: /opt/incus/bin/incusd forkstart u1 /var/lib/incus/containers /run/incus/u1/lxc.conf: exit status 1
Try `incus info --show-log local:u1` for more info

me@pc:~$ incus info --show-log local:u1
Name: u1
Type: container
Architecture: x86_64
Created: 2024/03/02 22:20 EET
Last Used: 2024/03/02 22:20 EET


lxc u1 20240302202013.865 ERROR    conf - ../src/lxc/conf.c:run_buffer:322 - Script exited with status 1
lxc u1 20240302202013.865 ERROR    conf - ../src/lxc/conf.c:lxc_setup:4437 - Failed to run mount hooks
lxc u1 20240302202013.865 ERROR    start - ../src/lxc/start.c:do_start:1272 - Failed to setup container "u1"
lxc u1 20240302202013.865 ERROR    sync - ../src/lxc/sync.c:sync_wait:34 - An error occurred in another process (expected sequence number 4)
lxc u1 20240302202013.876 WARN     network - ../src/lxc/network.c:lxc_delete_network_priv:3631 - Failed to rename interface with index 0 from "eth0" to its initial name "veth0380407b"
lxc u1 20240302202013.876 ERROR    start - ../src/lxc/start.c:__lxc_start:2107 - Failed to spawn container "u1"
lxc u1 20240302202013.876 ERROR    lxccontainer - ../src/lxc/lxccontainer.c:wait_on_daemonized_start:878 - Received container state "ABORTING" instead of "RUNNING"
lxc u1 20240302202013.876 WARN     start - ../src/lxc/start.c:lxc_abort:1036 - No such process - Failed to send SIGKILL via pidfd 17 for process 14081
lxc 20240302202014.302 ERROR    af_unix - ../src/lxc/af_unix.c:lxc_abstract_unix_recv_fds_iov:218 - Connection reset by peer - Failed to receive response
lxc 20240302202014.303 ERROR    commands - ../src/lxc/commands.c:lxc_cmd_rsp_recv_fds:128 - Failed to receive file descriptors for command "get_init_pid"

How did you install Incus 0.6? Was that using the Zabbly packages?

On the NVIDIA front, do you have the nvidia-compute packages installed?