I tried to create a container instead and bindmount the zpool. It takes a lot less resources but messes with permissions.
https://pve.proxmox.com/wiki/Unprivileged_LXC_containers
I followed the instructions but it didn't work or I didn't wait fully for the
chown -R 1005:1005 /mnt/bindmounts/shared
to fully complete.
Has anybody verified this to work properly?
Is this the best method?
The host is PVE
Inside the container
The mount is accessible through the shell on the container but can't be accessed as a datastore.
https://pve.proxmox.com/wiki/Unprivileged_LXC_containers
I followed the instructions but it didn't work or I didn't wait fully for the
chown -R 1005:1005 /mnt/bindmounts/shared
to fully complete.
Has anybody verified this to work properly?
Is this the best method?
The host is PVE
pveversion
pve-manager/8.0.4/d258a813cfa6b390 (running kernel: 6.2.16-15-pve)
pct conf 205 --current
arch: amd64
cores: 4
description: uid map%3A from uid 0 map 1005 uids (in the ct) to the range starting 100000 (on the host), so 0..1004 (ct) %E2%86%92 100000..101004 (host)%0A we map 1 uid starting from uid 1005 onto 1005, so 1005 %E2%86%92 1005%0A we map the rest of 65535 from 1006 upto 101006, so 1006..65535 %E2%86%92 101006..165535%0A
features: nesting=1
hostname: csd-tor-pbs002
memory: 4096
mp0: /usbpool002/dataset021/store021,mp=/store021
net0: name=eth0,bridge=vmbr0,firewall=1,gw=172.16.10.1,hwaddr=0A:72:FC:B6:0E:B4,ip=172.16.10.233/24,type=veth
ostype: debian
rootfs: storage:subvol-205-disk-0,size=100G
swap: 4096
unprivileged: 1
Inside the container
id backup
uid=34(backup) gid=34(backup) groups=34(backup),26(tape)
The mount is accessible through the shell on the container but can't be accessed as a datastore.