Help Cannot Mount NFS on LXC

chaiyuttochai

Member
Apr 13, 2017
21
0
6
38
Thailand
tomato-ideas.com
I have read many Post about NFS Mount Problem on previous version.

I have already follow those comment but still cannot mount NFS in lxc.
It's always appear "mount.nfs: access denied by server while mounting ......"

How i gonna solve this case ??!

Current my Proxmox version is 5.2-5 ( lasted )
i already follow this comment
https://www.reddit.com/r/homelab/comments/53hmpr/proxmox_and_nfs_shares/
and
https://forum.proxmox.com/threads/enable-nfs-mount-on-lxc-container.26868/
seem didn't help (may be it's a different version.)

I try on
#add config on proxmox host

mount fstype=nfs,
#to /etc/apparmor.d/lxc/lxc-default-with-mounting

mount fstype=nfs*,
#to /etc/apparmor.d/lxc/lxc-default

#Then reload apparmor
apparmor_parser -r /etc/apparmor.d/lxc-containers
service apparmor reload

After than i have ssh on lxc then command with
mount -t nfs xxx.xxx.xxx.xxx:/mnt/KetStorage/vestacpX /usr/local/path

it still error "mount.nfs: access denied by server while mounting xxx.xxx.xxx.xxx:/mnt/KetStorage/vestacpX"

Any Proxmox Staff Member
Help me Please !!!!!!
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!