I have a non-privileged 150 container on a Proxmox 7.4.
On the host I have a directory from another server mounted via sshfs on /mnt/server2, so it is fuse.
Now in container 150 I have the following configuration
Everything seems to be fine when i do
but when doing inside the container
I get
And if I try to enter /mnt/web I get permission denied.
Of course in the host can access /mnt/server2/web without problem
And if the directory in the host is not a FUSE mount, all work as is expected.
The problem seem to be some kind of permissions error in the FUSE mount .
Some clues?
On the host I have a directory from another server mounted via sshfs on /mnt/server2, so it is fuse.
Code:
sshfs -o reconnect -C server2.domain.net:/disk /mnt/server2
Now in container 150 I have the following configuration
Code:
arch: amd64
cores: 2
memory: 5000
cpulimit: 2
features: nesting=1
mp0: /mnt/server2/web,mp=/mnt/web
net0: name=eth0,....(not relevant)
unprivileged: 1
ostype: debian
protection: 1
rootfs: local-zfs:subvol-150-disk-1,size=200G
lxc.cgroup2.devices.allow: c 108:0 rwm
lxc.mount.entry: /dev/ppp dev/ppp none bind,create=file
lxc.mount.entry: /var/spool/postfix/dev/urandom var/spool/postfix/dev/urandom none bind,ro 0 0
lxc.mount.entry: /var/spool/postfix/dev/random var/spool/postfix/dev/random none bind,ro 0 0 0
lxc.mount.entry: /lib/udev/devices/simfs lib/udev/devices/simfs none bind,ro 0 0 0
lxc.mount.entry: /lib/udev/devices/fuse lib/udev/devices/fuse none bind,ro 0 0 0
lxc.mount.entry: /var/lib/docker/vfs/backingFsBlockDev var/lib/docker/vfs/backingFsBlockDev none bind,ro 0 0 0
Everything seems to be fine when i do
Code:
pct start 150
Code:
ls -la /mnt
I get
Code:
d????????? ? ? ? ? ? web
And if I try to enter /mnt/web I get permission denied.
Of course in the host can access /mnt/server2/web without problem
And if the directory in the host is not a FUSE mount, all work as is expected.
The problem seem to be some kind of permissions error in the FUSE mount .
Some clues?