mount: unknown filesystem type ‘nfs’ (proxmox)

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/
  • mount, disk
  • 12 Users Found This Useful
Was this answer helpful?

Related Articles

S.M.A.R.T (smartctl) commands and test

Installation of Smartcl in Ubuntu $ sudo apt-get install smartmontools Installation of Smartcl...

How to: Replacing a failed drive in a Linux Software RAID1 configuration (mdraid)

Scenario: A drive has failed in your linux RAID1 configuration and you need to replace it....

Check disk details

lsblk -o name,label,size,fstype,mountpoint,modefdisk -l

How to Increase the size of a Linux LVM by expanding the Disk

This post will cover how to increase the disk space for a VMware virtual machine running Linux...

Setup Flexible Disk Storage with Logical Volume Management (LVM) in Linux – PART 1

Logical Volume Management (LVM) makes it easier to manage disk space. If a file system needs more...

Powered by WHMCompleteSolution