1. Home
  2. Docs
  3. Proxmox
  4. LXC Container
  5. Mounting NFS Share di LXC Container Proxmox

Mounting NFS Share di LXC Container Proxmox

Pernah mounting NFS Share di LXC Container Proxmox selalu “Operation not permitted” ? padahal konfigurasi di NFS Server kita sudah benar se-bagaimana mestinya.

Install NFS Client

Seperti biasa standart nya langkah-langkah kalau kita mau mounting NFS Share di linux :

apt update
apt install nfs-common
mkdir /mnt/Downloads
mount -vvv -t nfs 192.168.99.4:/export/Downloads /mnt/Downloads

Kemudian malah muncul error “Operation not permitted” saat kita melakukan mounting nfs share di lxc proxmox.

root@modalsemangat:~# mount -vvv -t nfs 192.168.99.4:/export/Downloads /mnt/Downloads
mount.nfs: timeout set for Sat Sep  2 15:58:07 2023
mount.nfs: trying text-based options 'vers=4.2,addr=192.168.99.4,clientaddr=192.168.99.99'
mount.nfs: mount(2): Operation not permitted
mount.nfs: trying text-based options 'addr=192.168.99.4'
mount.nfs: prog 100003, trying vers=3, prot=6
mount.nfs: trying 192.168.99.4 prog 100003 vers 3 prot TCP port 2049
mount.nfs: prog 100005, trying vers=3, prot=17
mount.nfs: trying 192.168.99.4 prog 100005 vers 3 prot UDP port 38322
mount.nfs: mount(2): Operation not permitted
mount.nfs: Operation not permitted

Buat Privileged LXC Container Proxmox

Sebelum Anda membuat LXC Container Proxmox Anda sebagai NFS Client, jangan lupa lakukan ini :

Uncheck Unprivileged container: saat anda membuat LXC Container, karena Anda membutuhkan Privileged Container untuk dapat menggunakan NFS, SAMBA & CIFS.

Privileged LXC Container Proxmox

Aktifkan Fitur NFS SAMBA CIFS

Selanjutnya pada menu Option LXC Anda, aktifkan feature NFS :

Enabling NFS Feature LXC Container Proxmox

Baru kemudian Anda coba lakukan mounting network folder share kembali.

Lah bang, kan ini ngga disaranin. Gimana bang caranya kalo di Unprivileged LXC? Bisa coba pakai trik di dokumentasi saya Mount NFS Samba Share di Unprivileged LXC Proxmox.

Tags ,

Tinggalkan Balasan

Alamat email Anda tidak akan dipublikasikan. Ruas yang wajib ditandai *