mount: unknown filesystem type ‘nfs’ (proxmox)

Posted 13 August, 2015

Awww cute little proxmox container doesn’t know nfs. (CentOS release 6.7 (Final))

[[email protected] /]# mount -o ro -t nfs server:/data /media/
mount: unknown filesystem type 'nfs'

Well its new its young, lets give it some experience with nfs :

yum install nfs-utils

So are we ready yet ?

[[email protected]/]# mount -o ro -t nfs  server:/data /media/
mount.nfs: No such device

Wut ? Ah, since this is not “our” kernel, we can’t access the kernel modules and load the nfs module : –no reason to panic

[[email protected]/]# modprobe nfs
Fatal: module nfs not found

This is done using :  

vzctl set OPEN_VZ_ID --feature nfs:on --save

note : The openVZ manual suggests to add nfsd as a feature, I’m not sure why, since “d” mostly is used to indicate its a deamon; perhaps its a typo, or on other systems its like that, but I did not found that to be working; 

note 2 : if you don’t like the command, just add it directly to the config file, for my proxmox installation that is in /etc/pve/openvz/xxx.conf add : FEATURES="nfs:on"

after this, you need to restart the container vzctl restart OPEN_VZ_ID after that you can enter again and mounting the nfs share should work.

mount -o ro -t nfs server:/data media/

Show Comments (2)
© SvennD