<p dir="ltr"><br>
On Sep 14, 2012 8:25 AM, &quot;Axton&quot; &lt;<a href="mailto:axton.grams@gmail.com">axton.grams@gmail.com</a>&gt; wrote:<br>
&gt;<br>
&gt; I read through the page covering NFS server inside a container:<br>
&gt; <a href="http://wiki.openvz.org/NFS_server_inside_container">http://wiki.openvz.org/NFS_server_inside_container</a><br>
&gt;<br>
&gt; I have a host running the following kernel (Debian Squeeze):<br>
&gt;<br>
&gt; root@cluster-02:~# uname -a<br>
&gt; 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">&gt;<br>
&gt; The kernel modules are loaded and I can export filesystems from the host and mount them on remote hosts.<br>
&gt; I am trying to create a VE where I can run the NFS server, but I can not get this to work properly.<br>
&gt;<br>
&gt; Inside the VE, I get the following when I try to start the NFS server:<br>
&gt;<br>
&gt; root@fs01:/# /etc/init.d/nfs-kernel-server start<br>
&gt; FATAL: Could not read &#39;/lib/modules/2.6.32-5-openvz-amd64/kernel/fs/nfsd/nfsd.ko&#39;: No such file or directory<br>
&gt; 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">&gt;<br>
&gt; This is the output when I install nfs-kernel-server:<br>
&gt;<br>
&gt; root@fs01:/# apt-get install nfs-kernel-server<br>
&gt; Reading package lists... Done<br>
&gt; Building dependency tree<br>
&gt; Reading state information... Done<br>
&gt; The following extra packages will be installed:<br>
&gt;   libevent-1.4-2 libgssglue1 libnfsidmap2 librpcsecgss3 nfs-common ucf<br>
&gt; The following NEW packages will be installed:<br>
&gt;   libevent-1.4-2 libgssglue1 libnfsidmap2 librpcsecgss3 nfs-common nfs-kernel-server ucf<br>
&gt; 0 upgraded, 7 newly installed, 0 to remove and 0 not upgraded.<br>
&gt; Need to get 0 B/644 kB of archives.<br>
&gt; After this operation, 1774 kB of additional disk space will be used.<br>
&gt; Do you want to continue [Y/n]? y<br>
&gt; Preconfiguring packages ...<br>
&gt; Selecting previously deselected package libevent-1.4-2.<br>
&gt; (Reading database ... 14406 files and directories currently installed.)<br>
&gt; Unpacking libevent-1.4-2 (from .../libevent-1.4-2_1.4.13-stable-1_amd64.deb) ...<br>
&gt; Selecting previously deselected package libgssglue1.<br>
&gt; Unpacking libgssglue1 (from .../libgssglue1_0.1-4_amd64.deb) ...<br>
&gt; Selecting previously deselected package libnfsidmap2.<br>
&gt; Unpacking libnfsidmap2 (from .../libnfsidmap2_0.23-2_amd64.deb) ...<br>
&gt; Selecting previously deselected package librpcsecgss3.<br>
&gt; Unpacking librpcsecgss3 (from .../librpcsecgss3_0.19-2_amd64.deb) ...<br>
&gt; Selecting previously deselected package ucf.<br>
&gt; Unpacking ucf (from .../ucf_3.0025+nmu1_all.deb) ...<br>
&gt; Moving old data out of the way<br>
&gt; Selecting previously deselected package nfs-common.<br>
&gt; Unpacking nfs-common (from .../nfs-common_1%3a1.2.2-4squeeze2_amd64.deb) ...<br>
&gt; Selecting previously deselected package nfs-kernel-server.<br>
&gt; Unpacking nfs-kernel-server (from .../nfs-kernel-server_1%3a1.2.2-4squeeze2_amd64.deb) ...<br>
&gt; Processing triggers for man-db ...<br>
&gt; Setting up libevent-1.4-2 (1.4.13-stable-1) ...<br>
&gt; Setting up libgssglue1 (0.1-4) ...<br>
&gt; Setting up libnfsidmap2 (0.23-2) ...<br>
&gt; Setting up librpcsecgss3 (0.19-2) ...<br>
&gt; Setting up ucf (3.0025+nmu1) ...<br>
&gt; Setting up nfs-common (1:1.2.2-4squeeze2) ...<br>
&gt;<br>
&gt; Creating config file /etc/idmapd.conf with new version<br>
&gt;<br>
&gt; Creating config file /etc/default/nfs-common with new version<br>
&gt; Starting NFS common utilities: statd.<br>
&gt; Setting up nfs-kernel-server (1:1.2.2-4squeeze2) ...<br>
&gt;<br>
&gt; Creating config file /etc/exports with new version<br>
&gt;<br>
&gt; Creating config file /etc/default/nfs-kernel-server with new version<br>
&gt; Starting NFS common utilities: statd.<br>
&gt; FATAL: Could not read &#39;/lib/modules/2.6.32-5-openvz-amd64/kernel/fs/nfsd/nfsd.ko&#39;: No such file or directory<br>
&gt; Not starting NFS kernel daemon: no support in current kernel. ... (warning).<br>
&gt;<br>
&gt; This is the configuration for the VE:<br>
&gt;<br>
&gt; root@cluster-02:~# cat /etc/vz/conf/5000.conf<br>
&gt; HOSTNAME=&quot;fs01&quot;<br>
&gt; NAMESERVER=&quot;10.0.20.250&quot;<br>
&gt; SEARCHDOMAIN=&quot;<a href="http://x.org">x.org</a>&quot;<br>
&gt; ONBOOT=&quot;yes&quot;<br>
&gt; NAME=&quot;fs01&quot;<br>
&gt; CONFIG_CUSTOMIZED=yes<br>
&gt; AVNUMPROC=&quot;180:180&quot;<br>
&gt; CPUUNITS=&quot;1000&quot;<br>
&gt; DCACHESIZE=&quot;2147483647:2147483647&quot;<br>
&gt; DGRAMRCVBUF=&quot;2147483647:2147483647&quot;<br>
&gt; DISKINODES=&quot;2147483647:2147483647&quot;<br>
&gt; DISKSPACE=&quot;2147483647:2147483647&quot;<br>
&gt; KMEMSIZE=&quot;2147483647:2147483647&quot;<br>
&gt; LOCKEDPAGES=&quot;2147483647:2147483647&quot;<br>
&gt; NUMFILE=&quot;2147483647:2147483647&quot;<br>
&gt; NUMFLOCK=&quot;2147483647:2147483647&quot;<br>
&gt; NUMIPTENT=&quot;2147483647:2147483647&quot;<br>
&gt; NUMOTHERSOCK=&quot;2147483647:2147483647&quot;<br>
&gt; NUMPROC=&quot;2147483647:2147483647&quot;<br>
&gt; NUMPTY=&quot;2147483647:2147483647&quot;<br>
&gt; NUMSIGINFO=&quot;2147483647:2147483647&quot;<br>
&gt; NUMTCPSOCK=&quot;2147483647:2147483647&quot;<br>
&gt; OOMGUARPAGES=&quot;2147483647:2147483647&quot;<br>
&gt; ORIGIN_SAMPLE=&quot;vps.basic&quot;<br>
&gt; OSTEMPLATE=debian-6.0<br>
&gt; OTHERSOCKBUF=&quot;2147483647:2147483647&quot;<br>
&gt; PHYSPAGES=&quot;2147483647:2147483647&quot;<br>
&gt; PRIVVMPAGES=&quot;2147483647:2147483647&quot;<br>
&gt; QUOTATIME=&quot;0&quot;<br>
&gt; SHMPAGES=&quot;2147483647:2147483647&quot;<br>
&gt; TCPRCVBUF=&quot;2147483647:2147483647&quot;<br>
&gt; TCPSNDBUF=&quot;2147483647:2147483647&quot;<br>
&gt; VMGUARPAGES=&quot;2147483647:2147483647&quot;<br>
&gt; BOOTORDER=&quot;10000&quot;<br>
&gt; NETIF=&quot;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&quot;<br>

&gt; CAPABILITY=&quot;NET_ADMIN:on SYS_ADMIN:on &quot;<br>
&gt; FEATURES=&quot;sysfs:on nfsd:on nfs:on &quot;<br>
&gt;<br>
&gt; Any help would be appreciated.<br>
&gt;<br>
&gt; Thanks,<br>
&gt; Axton Grams<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; Users mailing list<br>
&gt; <a href="mailto:Users@openvz.org">Users@openvz.org</a><br>
&gt; <a href="https://openvz.org/mailman/listinfo/users">https://openvz.org/mailman/listinfo/users</a><br>
&gt;<br>
</p>