<p dir="ltr"><br>
On Sep 14, 2012 8:25 AM, "Axton" <<a href="mailto:axton.grams@gmail.com">axton.grams@gmail.com</a>> wrote:<br>
><br>
> I read through the page covering NFS server inside a container:<br>
> <a href="http://wiki.openvz.org/NFS_server_inside_container">http://wiki.openvz.org/NFS_server_inside_container</a><br>
><br>
> I have a host running the following kernel (Debian Squeeze):<br>
><br>
> root@cluster-02:~# uname -a<br>
> Linux cluster-02 2.6.32-5-openvz-amd64 #1 SMP Sun May 6 05:21:56 UTC 2012 x86_64 GNU/Linux</p>
<p dir="ltr">Only RHEL5 and 6 based kernels support nfsd in CT. See <a href="http://wiki.openvz.org/Install_kernel_from_RPM_on_Debian_6.0">http://wiki.openvz.org/Install_kernel_from_RPM_on_Debian_6.0</a></p>
<p dir="ltr">><br>
> The kernel modules are loaded and I can export filesystems from the host and mount them on remote hosts.<br>
> I am trying to create a VE where I can run the NFS server, but I can not get this to work properly.<br>
><br>
> Inside the VE, I get the following when I try to start the NFS server:<br>
><br>
> root@fs01:/# /etc/init.d/nfs-kernel-server start<br>
> FATAL: Could not read '/lib/modules/2.6.32-5-openvz-amd64/kernel/fs/nfsd/nfsd.ko': No such file or directory<br>
> Not starting NFS kernel daemon: no support in current kernel. ... (warning).</p>
<p dir="ltr">Apparently it tries to load kernel module. Kernel module is already loaded (on the host system). Plus, there are no kernel modules files inside CT.</p>
<p dir="ltr">I guess you have to modify the script to skip trying to install kernel module.</p>
<p dir="ltr">><br>
> This is the output when I install nfs-kernel-server:<br>
><br>
> root@fs01:/# apt-get install nfs-kernel-server<br>
> Reading package lists... Done<br>
> Building dependency tree<br>
> Reading state information... Done<br>
> The following extra packages will be installed:<br>
> libevent-1.4-2 libgssglue1 libnfsidmap2 librpcsecgss3 nfs-common ucf<br>
> The following NEW packages will be installed:<br>
> libevent-1.4-2 libgssglue1 libnfsidmap2 librpcsecgss3 nfs-common nfs-kernel-server ucf<br>
> 0 upgraded, 7 newly installed, 0 to remove and 0 not upgraded.<br>
> Need to get 0 B/644 kB of archives.<br>
> After this operation, 1774 kB of additional disk space will be used.<br>
> Do you want to continue [Y/n]? y<br>
> Preconfiguring packages ...<br>
> Selecting previously deselected package libevent-1.4-2.<br>
> (Reading database ... 14406 files and directories currently installed.)<br>
> Unpacking libevent-1.4-2 (from .../libevent-1.4-2_1.4.13-stable-1_amd64.deb) ...<br>
> Selecting previously deselected package libgssglue1.<br>
> Unpacking libgssglue1 (from .../libgssglue1_0.1-4_amd64.deb) ...<br>
> Selecting previously deselected package libnfsidmap2.<br>
> Unpacking libnfsidmap2 (from .../libnfsidmap2_0.23-2_amd64.deb) ...<br>
> Selecting previously deselected package librpcsecgss3.<br>
> Unpacking librpcsecgss3 (from .../librpcsecgss3_0.19-2_amd64.deb) ...<br>
> Selecting previously deselected package ucf.<br>
> Unpacking ucf (from .../ucf_3.0025+nmu1_all.deb) ...<br>
> Moving old data out of the way<br>
> Selecting previously deselected package nfs-common.<br>
> Unpacking nfs-common (from .../nfs-common_1%3a1.2.2-4squeeze2_amd64.deb) ...<br>
> Selecting previously deselected package nfs-kernel-server.<br>
> Unpacking nfs-kernel-server (from .../nfs-kernel-server_1%3a1.2.2-4squeeze2_amd64.deb) ...<br>
> Processing triggers for man-db ...<br>
> Setting up libevent-1.4-2 (1.4.13-stable-1) ...<br>
> Setting up libgssglue1 (0.1-4) ...<br>
> Setting up libnfsidmap2 (0.23-2) ...<br>
> Setting up librpcsecgss3 (0.19-2) ...<br>
> Setting up ucf (3.0025+nmu1) ...<br>
> Setting up nfs-common (1:1.2.2-4squeeze2) ...<br>
><br>
> Creating config file /etc/idmapd.conf with new version<br>
><br>
> Creating config file /etc/default/nfs-common with new version<br>
> Starting NFS common utilities: statd.<br>
> Setting up nfs-kernel-server (1:1.2.2-4squeeze2) ...<br>
><br>
> Creating config file /etc/exports with new version<br>
><br>
> Creating config file /etc/default/nfs-kernel-server with new version<br>
> Starting NFS common utilities: statd.<br>
> FATAL: Could not read '/lib/modules/2.6.32-5-openvz-amd64/kernel/fs/nfsd/nfsd.ko': No such file or directory<br>
> Not starting NFS kernel daemon: no support in current kernel. ... (warning).<br>
><br>
> This is the configuration for the VE:<br>
><br>
> root@cluster-02:~# cat /etc/vz/conf/5000.conf<br>
> HOSTNAME="fs01"<br>
> NAMESERVER="10.0.20.250"<br>
> SEARCHDOMAIN="<a href="http://x.org">x.org</a>"<br>
> ONBOOT="yes"<br>
> NAME="fs01"<br>
> CONFIG_CUSTOMIZED=yes<br>
> AVNUMPROC="180:180"<br>
> CPUUNITS="1000"<br>
> DCACHESIZE="2147483647:2147483647"<br>
> DGRAMRCVBUF="2147483647:2147483647"<br>
> DISKINODES="2147483647:2147483647"<br>
> DISKSPACE="2147483647:2147483647"<br>
> KMEMSIZE="2147483647:2147483647"<br>
> LOCKEDPAGES="2147483647:2147483647"<br>
> NUMFILE="2147483647:2147483647"<br>
> NUMFLOCK="2147483647:2147483647"<br>
> NUMIPTENT="2147483647:2147483647"<br>
> NUMOTHERSOCK="2147483647:2147483647"<br>
> NUMPROC="2147483647:2147483647"<br>
> NUMPTY="2147483647:2147483647"<br>
> NUMSIGINFO="2147483647:2147483647"<br>
> NUMTCPSOCK="2147483647:2147483647"<br>
> OOMGUARPAGES="2147483647:2147483647"<br>
> ORIGIN_SAMPLE="vps.basic"<br>
> OSTEMPLATE=debian-6.0<br>
> OTHERSOCKBUF="2147483647:2147483647"<br>
> PHYSPAGES="2147483647:2147483647"<br>
> PRIVVMPAGES="2147483647:2147483647"<br>
> QUOTATIME="0"<br>
> SHMPAGES="2147483647:2147483647"<br>
> TCPRCVBUF="2147483647:2147483647"<br>
> TCPSNDBUF="2147483647:2147483647"<br>
> VMGUARPAGES="2147483647:2147483647"<br>
> BOOTORDER="10000"<br>
> NETIF="ifname=eth1,bridge=br10,mac=00:18:51:60:18:34,host_ifname=veth5000.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,host_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,host_mac=00:18:51:4E:DB:DB"<br>
> CAPABILITY="NET_ADMIN:on SYS_ADMIN:on "<br>
> FEATURES="sysfs:on nfsd:on nfs:on "<br>
><br>
> Any help would be appreciated.<br>
><br>
> Thanks,<br>
> Axton Grams<br>
><br>
> _______________________________________________<br>
> Users mailing list<br>
> <a href="mailto:Users@openvz.org">Users@openvz.org</a><br>
> <a href="https://openvz.org/mailman/listinfo/users">https://openvz.org/mailman/listinfo/users</a><br>
><br>
</p>