SvennD
mount: unknown filesystem type ‘nfs’ (proxmox)
August 13, 2015

mount: unknown filesystem type ‘nfs’ (proxmox)

Posted on August 13, 2015  •  1 minutes  • 213 words  •  Suggest Changes

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

[root@server /]# 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 ?

[root@server/]# 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-

[root@server/]# 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/
Support

If you enjoyed this website, consider buying me a Dr. Pepper

Buy me a Dr PepperBuy me a Dr Pepper