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
Reset Vesta CP (vestacp) admin password December 31, 2018 Method 1 Login to your server via SSH. Enter the below command to change the password. $ v-change-user-password admin newpassword Replace the newpassword field with the new password you want to set. Method 2 Login to your server via SSH. Enter command following command. $ passwd admin Enter new UNIX… Read More
Set Hostname in Centos 7 May 11, 2019 CentOS 7 only allows Fully Qualified Domain Names (FQDN’s). Acceptable values include lower-case letters a to z, numbers 0 to 9, the period, and the hyphen, and between 2 and 63 characters. At the console, type: hostnamectl set-hostname my.new-hostname.server NOTE: Replace my.new-hostname.server with your chosen hostname. Check the Hostname hostnamectl Related Read More
Setting up a PPPoE server on Linux CentOS 7 July 8, 2023 Method-1 Build PPPoE, success, I think the TM super simple, in CentOS is about 5 steps can be done 1, install PPPoE, after the installation is complete, there will be pppoe-server command Yum Install Rp-pppoe 2, after the installation is completed, will be in the/ETC/PPP directory generated pppoe-server-options files, the… Read More