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
Install Softether VPN Client on Linux January 28, 2023January 28, 2023 Download and Install SoftEther VPN Client Download SoftEther VPN Client software from their official website (https://www.softether.org). Navigate to Download — > Download SoftEther VPN Click on Download SoftEther VPN link. Select Component : SoftEther VPN Client Select Platform : Linux Select CPU : Select the appropriate CPU from the Drop… Read More
Installing Proftpd on Suse Linux 11.0 May 24, 2009 It was a really time consuming to make a workable daemon of proftp server. Surprisingly, this daemon is not a easily setup by other linux disto like FC or CentOS or RHL. Anyway, the purpose on installing this is to make it work with Webmin+Virtualmin package. So, this installation will… Read More
Stateful Load Balancer with iptables and NAT October 2, 2018October 2, 2018 Allow IP forwarding (Note: if your testing this on the same box your doing this on it won’t work, you need at least 3 machines to test this out, virtual ones work nicely) First we enable ipv4 forwarding or this will not work: # echo “1” > /proc/sys/net/ipv4/ip_forward XOR #… Read More