NFS and Proxmox containers don’t mix

NFS and Proxmox containers don’t mix

I spent several hours last night trying to test out a few NFS shares from my TrueNAS box in Linux. I didn’t really want them on that particular Linux box. I wanted to configure an NFS storage type in my Kubernetes cluster, but I thought it best to test the shares before dealing with Kubernetes once I knew NFS was working.

However, no matter what I did, I couldn’t get the Linux container to mount the share.

I started with a basic Ubuntu server in the container. You have to then install a common NFS package to be able to create a mount – I did this with the following command: –

apt install nfs-common

To mount an NFS share, you issue this command: –

mkdir /mnt/kubernetesa

mount -t nfs 192.168.1.95:/mnt/HDDPool2/kubernetesa /mnt/kubernetesa

Without the nfs-common package, I was getting some weird errors. After, it just said ‘mount.nfs: Operation not permitted. Eventually, I found a forum post on https://forum.proxmox.com that said it was by design. There are a few different ways to enable it, but as I was only testing things out, I just jumped on a Ubuntu VM, and everything worked as it should.

One to remember, though – a Proxmox container with Ubuntu is NOT the same as a VM!

Stephen

Hi, my name is Stephen Finchett. I have been a software engineer for over 30 years and worked on complex, business critical, multi-user systems for all of my career. For the last 15 years, I have been concentrating on web based solutions using the Microsoft Stack including ASP.Net, C#, TypeScript, SQL Server and running everything at scale within Kubernetes.

Finchett.com
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.