Hey all, migrated from lxd and finally on team incus!
Unfortunately an issue I have is still present also with incus: I’d like to make a fuse mount from within the container available on the host. I think representative would be a test with tmpfs:
root@host:~# mkdir -p /mnt/fuse
root@host:~# incus launch images:debian/trixie container
Launching container
root@host:~# incus config device add container fuse disk propagation=rshared path=/mnt/fuse source=/mnt/fuse
Device fuse added to container
root@host:~# incus exec container -- mount -t tmpfs tmpfs /mnt/fuse
root@host:~# incus exec container -- cat /proc/mounts | grep /mnt/fuse
/dev/mapper/ubuntu--vg-ubuntu--lv /mnt/fuse ext4 rw,relatime 0 0
tmpfs /mnt/fuse tmpfs rw,relatime,uid=1000000,gid=1000000,inode64 0 0
root@host:~# incus exec container -- touch /mnt/fuse/foo
root@host:~# incus exec container -- ls -l /mnt/fuse
total 0
-rw-r--r-- 1 root root 0 Nov 8 22:58 foo
root@host:~# ls -l /mnt/fuse
total 0
root@host:~# ls -l /var/lib/incus/storage-pools/local_enc/containers/container/rootfs/mnt/fuse/
total 0
I’ve reported this back then also to canonicals forum and issue and there’s been a post a few years back here on linuxcontainers but no resolution yet (more info in those links).
Peeking through proc as Stéphane has suggested works on the host, but doesn’t seem intuitive to me:
root@host:~# ls -l /proc/809035/root/mnt/fuse/
total 0
-rw-r--r-- 1 1000000 1000000 0 Nov 8 23:29 foo
I was expecting it to work similar like propagation in docker and was hoping somebody has an idea.
root@host:~# lsb_release -s -d
Ubuntu 22.04.5 LTS
root@host:~# uname -a
Linux host 6.8.0-87-generic #88~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Tue Oct 14 14:03:14 UTC 2 x86_64 x86_64 x86_64 GNU/Linux
root@host:~# incus version
Client version: 6.0.5
Server version: 6.0.5
root@host:~# apt-cache policy incus
incus:
Installed: 1:6.0.5-ubuntu22.04-202508290259
Candidate: 1:6.0.5-ubuntu22.04-202508290259
Version table:
*** 1:6.0.5-ubuntu22.04-202508290259 500
500 https://pkgs.zabbly.com/incus/lts-6.0 jammy/main amd64 Packages
100 /var/lib/dpkg/status
1:6.0.5-ubuntu22.04-202508170331 500
500 https://pkgs.zabbly.com/incus/lts-6.0 jammy/main amd64 Packages