I am trying to mount a directory from Proxmox host to an unprivileged LXC (Proxmox 7)
From this page - Unprivileged LXC containers it seems like all I need to do is to add
To the LXC configuration file.
I did this:
102.conf
On Proxmox host:
Inside LXC I see:
But when I am trying to write I don't have permission
I would be grateful if someone could help me with this
From this page - Unprivileged LXC containers it seems like all I need to do is to add
pct set 100 -mp0 /mnt/bindmounts/shared,mp=/shared
To the LXC configuration file.
I did this:
102.conf
Code:
arch: amd64
cores: 8
features: keyctl=1,nesting=1
hostname: docker
memory: 8224
mp0: /mnt/bindmounts/shared,mp=/shared
net0: name=eth0,bridge=vmbr0,firewall=1,hwaddr=F2:5F:0C:03:19:CC,ip=dhcp,type=veth
onboot: 1
ostype: debian
rootfs: proxthin:vm-102-disk-0,size=1000G
startup: order=1,up=600
swap: 512
unprivileged: 1
On Proxmox host:
Code:
root@pve:~# ls -l /mnt/bindmounts/
total 4
drwxr-xr-x 2 root root 4096 Oct 24 20:52 shared
Inside LXC I see:
drwxr-xr-x 2 nobody nogroup 4096 Oct 24 20:52 shared
But when I am trying to write I don't have permission
Code:
root@docker /# touch shared/a.txt
touch: cannot touch 'shared/a.txt': Permission denied
I would be grateful if someone could help me with this