I created a new profile to add in X11 mounts. It works when i initially create the container, applying it with the launch -p profile. however, once i stop the container and start it again, the devices are no longer present. i can’t seem to get the devices back either. it shows my profile as being applied, the profile shows the devices should be there, but the container doesn’t have them.
here’s my incus config (after stopping and starting the container)
architecture: x86_64
config:
image.architecture: amd64
image.description: Ubuntu noble amd64 (20250201_07:42)
image.os: Ubuntu
image.release: noble
image.requirements.cgroup: v2
image.serial: "20250201_07:42"
image.type: squashfs
image.variant: default
volatile.base_image: 10443562fa9d988df158a575aec1aa080c0884a052a63b64d55782f7859a263a
volatile.cloud-init.instance-id: 57b28140-7ea1-42b0-aca2-868993cd6680
volatile.eth0.host_name: vethfe4d6525
volatile.eth0.hwaddr: 00:16:3e:43:90:36
volatile.eth0.name: eth0
volatile.idmap.base: "0"
volatile.idmap.current: '[{"Isuid":true,"Isgid":false,"Hostid":1000000,"Nsid":0,"Maprange":1000000000},{"Isuid":false,"Isgid":true,"Hostid":1000000,"Nsid":0,"Maprange":1000000000}]'
volatile.idmap.next: '[{"Isuid":true,"Isgid":false,"Hostid":1000000,"Nsid":0,"Maprange":1000000000},{"Isuid":false,"Isgid":true,"Hostid":1000000,"Nsid":0,"Maprange":1000000000}]'
volatile.last_state.idmap: '[]'
volatile.last_state.power: RUNNING
volatile.last_state.ready: "false"
volatile.uuid: 9f461dc0-226f-4922-981f-2d6fed427462
volatile.uuid.generation: 615161e9-c33d-4650-960b-2574642fd4c6
devices: {}
ephemeral: false
profiles:
- default
- x11-forward
stateful: false
description: ""
Note the x11 profile:
incus profile show x11-forward
config:
environment.DISPLAY: :0
description: Profile to forward host’s X11 socket
devices:
X0:
bind: container
connect: unix:/tmp/.X11-unix/X0
listen: unix:/tmp/.X11-unix/X0
security.gid: "1000"
security.uid: "1000"
type: proxy
gpu:
gid: "44"
type: gpu
name: x11-forward
used_by:
- /1.0/instances/brave
project: default
So we can see, both the container and profile think the profile is applied to the container. However, the container doesn’t show any of the devices from the profile.
incus profile assign brave default,x11-forward – this doesn’t have any affect. the profile is still “applied” but doesn’t add the devices.
To be clear, it DOES work fine when i use incus launch with the profile, but completely fails to re-assign the devices after a stop/start.
incus version
Client version: 6.9
Server version: 6.9