I have created an LXC container using the Ubuntu Server LTS image and the configuration looks like this:
Following all the below guides I mounted the NFS shared folders within the host and can see and explore the shared content in the host.
Guides:
- https://forum.proxmox.com/threads/unable-to-use-nfs-share-within-lxc-container.58045/#post-267777
- https://pve.proxmox.com/wiki/Linux_Container#_bind_mount_points
If I go inside the container the first thing I see is the `/downloads` folder created as:
And of course, if I try to list/access the content inside the `/downloads` I get a permission denied:
How can I fix this issue? I know one option is to create a privilege container but I don't want to go down that path unless is strictly needed
Code:
arch: amd64
cores: 6
features: nesting=1
hostname: ct-downloads
memory: 4096
mp0: /media/share/downloads,mp=/downloads
nameserver: 192.168.11.1
net0: name=eth0,bridge=vmbr0,firewall=1,gw=192.168.xx.x,hwaddr=BC:24:11:58:25:7F,ip=192.168.xx.xxx/24,type=veth
ostype: ubuntu
rootfs: zfs_disk:subvol-104-disk-0,size=150G
swap: 2048
unprivileged: 1
Following all the below guides I mounted the NFS shared folders within the host and can see and explore the shared content in the host.
Guides:
- https://forum.proxmox.com/threads/unable-to-use-nfs-share-within-lxc-container.58045/#post-267777
- https://pve.proxmox.com/wiki/Linux_Container#_bind_mount_points
If I go inside the container the first thing I see is the `/downloads` folder created as:
Code:
drwxrwxrwx+ 10 nobody nogroup 4096 Jan 26 01:43 downloads
And of course, if I try to list/access the content inside the `/downloads` I get a permission denied:
Code:
root@ct-downloads:~# cd /downloads/
-bash: cd: /downloads/: Permission denied
How can I fix this issue? I know one option is to create a privilege container but I don't want to go down that path unless is strictly needed