That's why I said I forgot about this thread and bumped it upWait a sec... did you not just ask about Proxmox NAS?
For me the easy answer wasn't a bind mount point, but I installed NFS and just setup an internal network and mounted it on the guest.I just set up an instance of NextCloud on Proxmox Container. Set up was a breeze, but I ran into a permissions problems setting it up. .........
Looks like that's a better way to set up everything for me, what does your set up for NFS look like in terms of packages/software and configs ? Also, would the NFS throughput be enough to stream using Plex ?For me the easy answer wasn't a bind mount point, but I installed NFS and just setup an internal network and mounted it on the guest.
Yep! very easy... You need to give your proxmox host an ip address on a bridge device you shared with your guest. It's really not best practice for production systems but for home use it's awesome!!Looks like that's a better way to set up everything for me, what does your set up for NFS look like in terms of packages/software and configs ? Also, would the NFS throughput be enough to stream using Plex ?
auto vmbr2
iface vmbr2 inet static
address 192.168.21.20
netmask 255.255.255.0
bridge_ports bond0.210
bridge_stp off
bridge_fd 0
#vlan 210 (Storage Net)
apt install nfs-common nfs-kernel-server
/mount/location/of/media/you/are/sharing/to/plex/server 192.168.21.0/24(rw,no_root_squash)
exportfs -av
That is awesome, thank you for the detailed instructions ! It did not occur to me that I should make the Proxmox host my NFS server. I wanted to have a separate VM/CT for NFS since that will keep the host clean and cutter-free from any configs.Yep! very easy... You need to give your proxmox host an ip address on a bridge device you shared with your guest. It's really not best practice for production systems but for home use it's awesome!!
so in my example, I used vmbr2. If you're not using a bonded link or vlans then you can ignore/remove the bond0.210 and substitute for your local device (eno... or enp...)
Then you install the NFS server packagesCode:auto vmbr2 iface vmbr2 inet static address 192.168.21.20 netmask 255.255.255.0 bridge_ports bond0.210 bridge_stp off bridge_fd 0 #vlan 210 (Storage Net)
Lastly, you edit /etc/exportsCode:apt install nfs-common nfs-kernel-server
then you'll want to update the running nfs sharesCode:/mount/location/of/media/you/are/sharing/to/plex/server 192.168.21.0/24(rw,no_root_squash)
Let me know if you have any issues or questions!!Code:exportfs -av
# cat /etc/pve/nodes/casper8/lxc/199.conf
arch: amd64
cores: 4
hostname: Kitakami
memory: 49152
mp0: /dev/md11,mp=/pub,backup=0
net0: name=eth0,bridge=vmbr0,gw=172.16.0.1,hwaddr=***,ip=172.16.13.199/16,type=veth
onboot: 1
ostype: debian
rootfs: vg0:vm-199-disk-1,size=2G
swap: 1
As for the 777 permissions, I think they're because of my setup, a few of my drives are NTFS mounted on Proxmox host, and they show up as root:root with 777 perms. The other ext4 shows up as root:root with 755 perms. The perms are carried through the mounts, and are unchangeable for NTFS mounts. They are also readonly when bound to containers. I'm hoping to keep those as-is and remedy the perms and readonly situation with NFS.mount.nfs: access denied by server while mounting 192.168.10.120:/media/TV/TV
UUID=fd53663a-6ddf-4c3c-8b2c-c4c342429dfe /media/Data ext4 defaults 0 0
UUID=1C342BB7342B92B6 /media/TV ntfs-3g defaults,locale=en_US.utf8 0 0
UUID=01CC5D8ED9352620 /media/Movies ntfs-3g defaults,locale=en_US.utf8 0 0
UUID=3CBE0681BE0633C4 /media/Backup-8T ntfs-3g defaults,locale=en_US.utf8 0 0
...
mp0: /media/TV,mp=/media/TV
mp1: /media/Movies,mp=/media/Movies
mp2: /media/Data,mp=/media/Data
rootfs: local-lvm:vm-902-disk-1,size=10G
...
...
/media/TV/TV 192.168.10.0/255.255.255.0(rw,no_root_squash,no_subtree_check)
/media/TV/Videos 192.168.10.0/255.255.255.0(rw,no_root_squash,no_subtree_check)
/media/Movies 192.168.10.0/255.255.255.0(rw,no_root_squash,no_subtree_check)
/media/Data/Photos 192.168.10.0/255.255.255.0(rw,no_root_squash,no_subtree_check)
/media/Data/Songs 192.168.10.0/255.255.255.0(rw,no_root_squash,no_subtree_check)
/media/Data/Software 192.168.10.0/255.255.255.0(rw,no_root_squash,no_subtree_check)
/media/Data/Transmission-Downloads 192.168.10.0/255.255.255.0(rw,no_root_squash,no_subtree_check)
Feb 25 14:47:02 NFS-CT-Test systemd[1]: run-rpc_pipefs.mount: Failed to reset devices.list: Operation not permitted
Feb 25 14:47:02 NFS-CT-Test systemd[1]: Mounting RPC Pipe File System...
Feb 25 14:47:02 NFS-CT-Test systemd[1]: proc-fs-nfsd.mount: Failed to reset devices.list: Operation not permitted
Feb 25 14:47:02 NFS-CT-Test systemd[1]: Mounting NFSD configuration filesystem...
Feb 25 14:47:02 NFS-CT-Test systemd[1]: nfs-config.service: Failed to reset devices.list: Operation not permitted
Feb 25 14:47:02 NFS-CT-Test systemd[1]: Starting Preprocess NFS configuration...
Feb 25 14:47:02 NFS-CT-Test systemd[1]: Started Preprocess NFS configuration.
Feb 25 14:47:02 NFS-CT-Test systemd[1]: proc-fs-nfsd.mount: Mount process exited, code=exited status=32
Feb 25 14:47:02 NFS-CT-Test systemd[1]: Failed to mount NFSD configuration filesystem.
Feb 25 14:47:02 NFS-CT-Test systemd[1]: Dependency failed for NFS Mount Daemon.
Feb 25 14:47:02 NFS-CT-Test systemd[1]: Dependency failed for NFS server and services.
Feb 25 14:47:02 NFS-CT-Test systemd[1]: Dependency failed for NFSv4 ID-name mapping service.
Feb 25 14:47:02 NFS-CT-Test systemd[1]: nfs-idmapd.service: Job nfs-idmapd.service/start failed with result 'dependency'.
Feb 25 14:47:02 NFS-CT-Test systemd[1]: nfs-server.service: Job nfs-server.service/start failed with result 'dependency'.
Feb 25 14:47:02 NFS-CT-Test systemd[1]: nfs-mountd.service: Job nfs-mountd.service/start failed with result 'dependency'.
Feb 25 14:47:02 NFS-CT-Test systemd[1]: proc-fs-nfsd.mount: Unit entered failed state.
Feb 25 14:47:02 NFS-CT-Test systemd[1]: run-rpc_pipefs.mount: Mount process exited, code=exited status=32
Feb 25 14:47:02 NFS-CT-Test systemd[1]: Failed to mount RPC Pipe File System.
Feb 25 14:47:02 NFS-CT-Test systemd[1]: Dependency failed for RPC security service for NFS client and server.
Feb 25 14:47:02 NFS-CT-Test systemd[1]: rpc-gssd.service: Job rpc-gssd.service/start failed with result 'dependency'.
Feb 25 14:47:02 NFS-CT-Test systemd[1]: Dependency failed for RPC security service for NFS server.
Feb 25 14:47:02 NFS-CT-Test systemd[1]: rpc-svcgssd.service: Job rpc-svcgssd.service/start failed with result 'dependency'.
Feb 25 14:47:02 NFS-CT-Test systemd[1]: run-rpc_pipefs.mount: Unit entered failed state.
...
virtio1: /dev/disk/by-id/ata-WDC_WD10JPLX-00MBPT0_JR1000BN31K76E-part1,size=976761560K
virtio2: /dev/disk/by-id/ata-Hitachi_HDS723015BLA642_MN1120F102JSBD-part1,size=1465136001K
virtio3: /dev/disk/by-id/ata-Hitachi_HUS724030ALE641_P8H80XNR-part2,size=2861459M
virtio4: /dev/disk/by-id/usb-WD_easystore_25FB_3753473950503043-0:0-part1,size=7630883M
UUID=fd53663a-6ddf-4c3c-8b2c-c4c342429dfe /media/Data ext4 defaults 0 0
UUID=1C342BB7342B92B6 /media/TV ntfs-3g defaults,locale=en_US.utf8 0 0
UUID=01CC5D8ED9352620 /media/Movies ntfs-3g defaults,locale=en_US.utf8 0 0
UUID=3CBE0681BE0633C4 /media/Backup-8T ntfs-3g defaults,locale=en_US.utf8 0 0
/media/TV/TV 192.168.10.0/255.255.255.0(rw,no_root_squash,no_subtree_check)
/media/TV/Videos 192.168.10.0/255.255.255.0(rw,no_root_squash,no_subtree_check)
/media/Movies 192.168.10.0/255.255.255.0(rw,no_root_squash,no_subtree_check)
/media/Data/Photos 192.168.10.0/255.255.255.0(rw,no_root_squash,no_subtree_check)
/media/Data/Songs 192.168.10.0/255.255.255.0(rw,no_root_squash,no_subtree_check)
/media/Data/Software 192.168.10.0/255.255.255.0(rw,no_root_squash,no_subtree_check)
/media/Data/Transmission-Downloads 192.168.10.0/255.255.255.0(rw,no_root_squash,no_subtree_check)
/media/Backup-8T/NextCloud 192.168.10.0/255.255.255.0(rw,no_root_squash,no_subtree_check)
/media/Backup-8T/ 192.168.10.0/255.255.255.0(rw,no_root_squash,no_subtree_check)
$ sudo exportfs -av
exporting 192.168.10.0/255.255.255.0:/media/Backup-8T
exporting 192.168.10.0/255.255.255.0:/media/Backup-8T/NextCloud
exporting 192.168.10.0/255.255.255.0:/media/Data/Transmission-Downloads
exporting 192.168.10.0/255.255.255.0:/media/Data/Software
exporting 192.168.10.0/255.255.255.0:/media/Data/Songs
exporting 192.168.10.0/255.255.255.0:/media/Data/Photos
exporting 192.168.10.0/255.255.255.0:/media/Movies
exporting 192.168.10.0/255.255.255.0:/media/TV/Videos
exporting 192.168.10.0/255.255.255.0:/media/TV/TV
$ showmount -e 192.168.10.120
Export list for 192.168.10.120:
/media/Backup-8T 192.168.10.0/255.255.255.0
/media/Backup-8T/NextCloud 192.168.10.0/255.255.255.0
/media/Data/Transmission-Downloads 192.168.10.0/255.255.255.0
/media/Data/Software 192.168.10.0/255.255.255.0
/media/Data/Songs 192.168.10.0/255.255.255.0
/media/Data/Photos 192.168.10.0/255.255.255.0
/media/Movies 192.168.10.0/255.255.255.0
/media/TV/Videos 192.168.10.0/255.255.255.0
/media/TV/TV 192.168.10.0/255.255.255.0
$ sudo mount -t nfs 192.168.10.120:/media/Backup-8T/NextCloud /media/NextCloud
mount.nfs: access denied by server while mounting 192.168.10.120:/media/Backup-8T/NextCloud
$ sudo mount -t nfs 192.168.10.120:/media/Data/Transmission-Downloads /media/NextCloud
mount.nfs: access denied by server while mounting 192.168.10.120:/media/Data/Transmission-Downloads
$ sudo mount -t nfs 192.168.10.120:/media/Movies /media/NextCloud
mount.nfs: access denied by server while mounting 192.168.10.120:/media/Movies
lxc.aa_profile: unconfined
For NFS on CT, that's definitely the root cause, disabling AppArmor on CT clears up the NFS start problem, but I'm running into the same access denied by server when mounting. 10.242 is the NFS on CT, data mounted using bind mounts as mentioned above. showmounts tells me it can see everything, but I cannot mount anything.For NFS try add this line to your lxc config:
Not sure if it's the root cause of this, but I think it worth a try.Code:lxc.aa_profile: unconfined
$ sudo showmount -e 192.168.10.242
Export list for 192.168.10.242:
/media/Backup-8T 192.168.10.0/24
/media/NextCloud 192.168.10.0/24
/media/Transmission-Downloads 192.168.10.0/24
/media/Software 192.168.10.0/24
/media/Music 192.168.10.0/24
/media/Photos 192.168.10.0/24
/media/Movies 192.168.10.0/24
/media/Videos 192.168.10.0/24
/media/TV 192.168.10.0/24
This is the error message I see on the Container when I try to mount -$ sudo mount -t nfs 192.168.10.242:/media/NextCloud /media/NextCloud
mount.nfs: access denied by server while mounting 192.168.10.242:/media/NextCloud
I can understand NFS on CT running into the Apparmor issue, but why do I have it on a regular VM ?Feb 25 16:39:35 NFS-CT-Test kernel: [170765.928539] audit: type=1400 audit(1519594775.801:566): apparmor="DENIED" operation="mount" info="failed type match" error=-13 profile="lxc-container-default-cgns" name="/media/NextCloud/" pid=10324 comm="mount.nfs" fstype="nfs" srcname="192.168.10.242:/media/NextCloud"