Fix on connecting to NFS server from Proxmox Centos 7/Debian Container Rumi, January 7, 2018November 11, 2019 I hope you already know how to allow NFS from proxmox host server. if not, you may read my earlier post: NFS fix on LXC Host Server The fix works for Proxmox 4.x I was actually receiving a error like below: # mount -t nfsd nfsd /proc/fs/nfsd mount: nfsd is write-protected, mounting read-only mount: cannot mount nfsd read-only My proxmox edition was 5.0-30 and my CentOS was 7. However, this is a bit different rather looking the other one as mentioned above. I was experiencing connecting my Centos 7 LXC container to a NFS server in the network. The regular tweak didn’t work. So, had to spend a while googling the solution. Found the correct one on a forum thread. But eventually it worked. For this you need to edit the file nano /etc/pve/lxc/<your container ID>.conf Add the below line in the conf file: lxc.aa_profile: unconfined Reboot the container. And now try to connect the NFS server. It should work. For Proxmox 5 a little re-worked edition: First run cp /etc/apparmor.d/lxc/lxc-default-cgns /etc/apparmor.d/lxc/lxc-default-with-nfs Then edit the new file /etc/apparmor.d/lxc/lxc-default-with-nfs: replace profile lxc-container-default-cgns by profile lxc-default-with-nfs put the NFS configuration (see below) just before the closing bracket (}) NFS configuration mount fstype=nfs*, mount fstype=rpc_pipefs, or (being more explicit) mount fstype=nfs, mount fstype=nfs4, mount fstype=nfsd, mount fstype=rpc_pipefs, and finally run service apparmor reload Use the new profile (Earlier to PVE 6.x) Edit /etc/pve/lxc/${container_id}.conf and append this line: lxc.apparmor.profile: lxc-container-default-with-nfs Use the new profile (Earlier to PVE 6.x) Edit /etc/pve/lxc/${container_id}.conf and append this line: lxc.apparmor.profile: lxc-default-with-nfs Then stop the container and start it again, e.g. like this: pct stop ${container_id} && pct start ${container_id} Now mounting NFS shares should work. Related Administrations Proxmox CentOSLXCProxmoxProxmox 5
Vesta- How to set up master-slave DNS cluster January 28, 2019January 28, 2019 If you are looking for the options to avoid any DNS-related downtime or the way to manage dns across all server you have, you might consider to set up dns cluster. Create user dns-cluster on a server which will be used as dns slave On the second server (slave) with… Read More
Simple way to tune apache performance using mpm prefork module April 19, 2017 There could be many reasons why your website performance is poor, one of them can possibly be that Apache is not coping with the load. Below you’ll find ready to consume configuration to make Apache performance better using the Apache MPM prefork module. To do this, just include the below… Read More
413 Request Entity Too Large June 9, 2016 If you’re getting 413 Request Entity Too Large errors trying to upload with nginx.net/, you need to increase the size limit in nginx.conf . Add ‘client_max_body_size xxM’ inside the server section, where xx is the size (in megabytes) that you want to allow. http { include mime.types; default_type application/octet-stream; sendfile… Read More