OpenVZ Forum


Home » Mailing lists » Users » Kernel NFS Server in VE
Kernel NFS Server in VE [message #47834] Fri, 14 September 2012 04:21 Go to previous message
gramsa49 is currently offline  gramsa49
Messages: 17
Registered: February 2007
Junior Member
From: *parallels.com
I read through the page covering NFS server inside a container:
http://wiki.openvz.org/NFS_server_inside_container

I have a host running the following kernel (Debian Squeeze):

root@cluster-02:~# uname -a
Linux cluster-02 2.6.32-5-openvz-amd64 #1 SMP Sun May 6 05:21:56 UTC 2012
x86_64 GNU/Linux

The kernel modules are loaded and I can export filesystems from the host
and mount them on remote hosts.
I am trying to create a VE where I can run the NFS server, but I can not
get this to work properly.

Inside the VE, I get the following when I try to start the NFS server:

root@fs01:/# /etc/init.d/nfs-kernel-server start
FATAL: Could not read
'/lib/modules/2.6.32-5-openvz-amd64/kernel/fs/nfsd/nfsd.ko': No such file
or directory
Not starting NFS kernel daemon: no support in current kernel. ... (warning).

This is the output when I install nfs-kernel-server:

root@fs01:/# apt-get install nfs-kernel-server
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
libevent-1.4-2 libgssglue1 libnfsidmap2 librpcsecgss3 nfs-common ucf
The following NEW packages will be installed:
libevent-1.4-2 libgssglue1 libnfsidmap2 librpcsecgss3 nfs-common
nfs-kernel-server ucf
0 upgraded, 7 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/644 kB of archives.
After this operation, 1774 kB of additional disk space will be used.
Do you want to continue [Y/n]? y
Preconfiguring packages ...
Selecting previously deselected package libevent-1.4-2.
(Reading database ... 14406 files and directories currently installed.)
Unpacking libevent-1.4-2 (from
.../libevent-1.4-2_1.4.13-stable-1_amd64.deb) ...
Selecting previously deselected package libgssglue1.
Unpacking libgssglue1 (from .../libgssglue1_0.1-4_amd64.deb) ...
Selecting previously deselected package libnfsidmap2.
Unpacking libnfsidmap2 (from .../libnfsidmap2_0.23-2_amd64.deb) ...
Selecting previously deselected package librpcsecgss3.
Unpacking librpcsecgss3 (from .../librpcsecgss3_0.19-2_amd64.deb) ...
Selecting previously deselected package ucf.
Unpacking ucf (from .../ucf_3.0025+nmu1_all.deb) ...
Moving old data out of the way
Selecting previously deselected package nfs-common.
Unpacking nfs-common (from .../nfs-common_1%3a1.2.2-4squeeze2_amd64.deb) ...
Selecting previously deselected package nfs-kernel-server.
Unpacking nfs-kernel-server (from
.../nfs-kernel-server_1%3a1.2.2-4squeeze2_amd64.deb) ...
Processing triggers for man-db ...
Setting up libevent-1.4-2 (1.4.13-stable-1) ...
Setting up libgssglue1 (0.1-4) ...
Setting up libnfsidmap2 (0.23-2) ...
Setting up librpcsecgss3 (0.19-2) ...
Setting up ucf (3.0025+nmu1) ...
Setting up nfs-common (1:1.2.2-4squeeze2) ...

Creating config file /etc/idmapd.conf with new version

Creating config file /etc/default/nfs-common with new version
Starting NFS common utilities: statd.
Setting up nfs-kernel-server (1:1.2.2-4squeeze2) ...

Creating config file /etc/exports with new version

Creating config file /etc/default/nfs-kernel-server with new version
Starting NFS common utilities: statd.
FATAL: Could not read
'/lib/modules/2.6.32-5-openvz-amd64/kernel/fs/nfsd/nfsd.ko': No such file
or directory
Not starting NFS kernel daemon: no support in current kernel. ... (warning).

This is the configuration for the VE:

root@cluster-02:~# cat /etc/vz/conf/5000.conf
HOSTNAME="fs01"
NAMESERVER="10.0.20.250"
SEARCHDOMAIN="x.org"
ONBOOT="yes"
NAME="fs01"
CONFIG_CUSTOMIZED=yes
AVNUMPROC="180:180"
CPUUNITS="1000"
DCACHESIZE="2147483647:2147483647"
DGRAMRCVBUF="2147483647:2147483647"
DISKINODES="2147483647:2147483647"
DISKSPACE="2147483647:2147483647"
KMEMSIZE="2147483647:2147483647"
LOCKEDPAGES="2147483647:2147483647"
NUMFILE="2147483647:2147483647"
NUMFLOCK="2147483647:2147483647"
NUMIPTENT="2147483647:2147483647"
NUMOTHERSOCK="2147483647:2147483647"
NUMPROC="2147483647:2147483647"
NUMPTY="2147483647:2147483647"
NUMSIGINFO="2147483647:2147483647"
NUMTCPSOCK="2147483647:2147483647"
OOMGUARPAGES="2147483647:2147483647"
ORIGIN_SAMPLE="vps.basic"
OSTEMPLATE=debian-6.0
OTHERSOCKBUF="2147483647:2147483647"
PHYSPAGES="2147483647:2147483647"
PRIVVMPAGES="2147483647:2147483647"
QUOTATIME="0"
SHMPAGES="2147483647:2147483647"
TCPRCVBUF="2147483647:2147483647"
TCPSNDBUF="2147483647:2147483647"
VMGUARPAGES="2147483647:2147483647"
BOOTORDER="10000"
NETIF=" ifname=eth1,bridge=br10,mac=00:18:51:60:18:34,host_ifname=ve th5000.1,host_mac=00:18:51:FB:2F:10;ifname=eth2,bridge=br20, mac=00:18:51:25:D2:67,host_ifname=veth5000.2,host_mac=00:18: 51:B3:6E:36;ifname=eth3,bridge=br30,mac=00:18:51:11:79:CA,ho st_ifname=veth5000.3,host_mac=00:18:51:52:85:39;ifname=eth4, bridge=br40,mac=00:18:51:5E:11:F8,host_ifname=veth5000.4,hos t_mac=00:18:51:4E:DB:DB "
CAPABILITY="NET_ADMIN:on SYS_ADMIN:on "
FEATURES="sysfs:on nfsd:on nfs:on "

Any help would be appreciated.

Thanks,
Axton Grams
 
Read Message
Read Message
Read Message
Previous Topic: ploop and trim/ discard support
Next Topic: compat-wireless support
Goto Forum:
  


Current Time: Sun Jun 20 19:24:37 GMT 2021