I am using the prerequisite version of vzctl:<div><br></div><div><div>root@cluster-02:~# vzctl --version</div><div>vzctl version 3.0.24</div><div><br></div><div>Axton Grams</div><br><div class="gmail_quote">On Thu, Sep 13, 2012 at 11:21 PM, Axton <span dir="ltr">&lt;<a href="mailto:axton.grams@gmail.com" target="_blank">axton.grams@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I read through the page covering NFS server inside a container:<div><a href="http://wiki.openvz.org/NFS_server_inside_container" target="_blank">http://wiki.openvz.org/NFS_server_inside_container</a>
</div><div><br></div><div>I have a host running the following kernel (Debian Squeeze):</div><div><div><br></div><div>root@cluster-02:~# uname -a</div><div>Linux cluster-02 2.6.32-5-openvz-amd64 #1 SMP Sun May 6 05:21:56 UTC 2012 x86_64 GNU/Linux</div>

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

<div><br></div><div>Inside the VE, I get the following when I try to start the NFS server:</div><div><br></div><div><div>root@fs01:/# /etc/init.d/nfs-kernel-server start</div><div>FATAL: Could not read &#39;/lib/modules/2.6.32-5-openvz-amd64/kernel/fs/nfsd/nfsd.ko&#39;: No such file or directory</div>

<div>Not starting NFS kernel daemon: no support in current kernel. ... (warning).</div></div><div><br></div><div>This is the output when I install nfs-kernel-server:</div><div><br></div><div><div>root@fs01:/# apt-get install nfs-kernel-server</div>

<div>Reading package lists... Done</div><div>Building dependency tree</div><div>Reading state information... Done</div><div>The following extra packages will be installed:</div><div>  libevent-1.4-2 libgssglue1 libnfsidmap2 librpcsecgss3 nfs-common ucf</div>

<div>The following NEW packages will be installed:</div><div>  libevent-1.4-2 libgssglue1 libnfsidmap2 librpcsecgss3 nfs-common nfs-kernel-server ucf</div><div>0 upgraded, 7 newly installed, 0 to remove and 0 not upgraded.</div>

<div>Need to get 0 B/644 kB of archives.</div><div>After this operation, 1774 kB of additional disk space will be used.</div><div>Do you want to continue [Y/n]? y</div><div>Preconfiguring packages ...</div><div>Selecting previously deselected package libevent-1.4-2.</div>

<div>(Reading database ... 14406 files and directories currently installed.)</div><div>Unpacking libevent-1.4-2 (from .../libevent-1.4-2_1.4.13-stable-1_amd64.deb) ...</div><div>Selecting previously deselected package libgssglue1.</div>

<div>Unpacking libgssglue1 (from .../libgssglue1_0.1-4_amd64.deb) ...</div><div>Selecting previously deselected package libnfsidmap2.</div><div>Unpacking libnfsidmap2 (from .../libnfsidmap2_0.23-2_amd64.deb) ...</div><div>

Selecting previously deselected package librpcsecgss3.</div><div>Unpacking librpcsecgss3 (from .../librpcsecgss3_0.19-2_amd64.deb) ...</div><div>Selecting previously deselected package ucf.</div><div>Unpacking ucf (from .../ucf_3.0025+nmu1_all.deb) ...</div>

<div>Moving old data out of the way</div><div>Selecting previously deselected package nfs-common.</div><div>Unpacking nfs-common (from .../nfs-common_1%3a1.2.2-4squeeze2_amd64.deb) ...</div><div>Selecting previously deselected package nfs-kernel-server.</div>

<div>Unpacking nfs-kernel-server (from .../nfs-kernel-server_1%3a1.2.2-4squeeze2_amd64.deb) ...</div><div>Processing triggers for man-db ...</div><div>Setting up libevent-1.4-2 (1.4.13-stable-1) ...</div><div>Setting up libgssglue1 (0.1-4) ...</div>

<div>Setting up libnfsidmap2 (0.23-2) ...</div><div>Setting up librpcsecgss3 (0.19-2) ...</div><div>Setting up ucf (3.0025+nmu1) ...</div><div>Setting up nfs-common (1:1.2.2-4squeeze2) ...</div><div><br></div><div>Creating config file /etc/idmapd.conf with new version</div>

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

<div><br></div><div>Creating config file /etc/default/nfs-kernel-server with new version</div><div>Starting NFS common utilities: statd.</div><div>FATAL: Could not read &#39;/lib/modules/2.6.32-5-openvz-amd64/kernel/fs/nfsd/nfsd.ko&#39;: No such file or directory</div>

<div>Not starting NFS kernel daemon: no support in current kernel. ... (warning).</div></div><div><br></div><div>This is the configuration for the VE:</div><div><br></div><div><div>root@cluster-02:~# cat /etc/vz/conf/5000.conf</div>

<div>HOSTNAME=&quot;fs01&quot;</div><div>NAMESERVER=&quot;10.0.20.250&quot;</div><div>SEARCHDOMAIN=&quot;<a href="http://x.org" target="_blank">x.org</a>&quot;</div><div>ONBOOT=&quot;yes&quot;</div><div>NAME=&quot;fs01&quot;</div>
<div>CONFIG_CUSTOMIZED=yes</div>
<div>AVNUMPROC=&quot;180:180&quot;</div><div>CPUUNITS=&quot;1000&quot;</div><div>DCACHESIZE=&quot;<a href="tel:2147483647" value="+12147483647" target="_blank">2147483647</a>:<a href="tel:2147483647" value="+12147483647" target="_blank">2147483647</a>&quot;</div>
<div>DGRAMRCVBUF=&quot;<a href="tel:2147483647" value="+12147483647" target="_blank">2147483647</a>:<a href="tel:2147483647" value="+12147483647" target="_blank">2147483647</a>&quot;</div><div>DISKINODES=&quot;<a href="tel:2147483647" value="+12147483647" target="_blank">2147483647</a>:<a href="tel:2147483647" value="+12147483647" target="_blank">2147483647</a>&quot;</div>

<div>DISKSPACE=&quot;<a href="tel:2147483647" value="+12147483647" target="_blank">2147483647</a>:<a href="tel:2147483647" value="+12147483647" target="_blank">2147483647</a>&quot;</div><div>KMEMSIZE=&quot;<a href="tel:2147483647" value="+12147483647" target="_blank">2147483647</a>:<a href="tel:2147483647" value="+12147483647" target="_blank">2147483647</a>&quot;</div>
<div>LOCKEDPAGES=&quot;<a href="tel:2147483647" value="+12147483647" target="_blank">2147483647</a>:<a href="tel:2147483647" value="+12147483647" target="_blank">2147483647</a>&quot;</div><div>NUMFILE=&quot;2147483647:2147483647&quot;</div>
<div>NUMFLOCK=&quot;2147483647:2147483647&quot;</div>
<div>NUMIPTENT=&quot;2147483647:2147483647&quot;</div><div>NUMOTHERSOCK=&quot;2147483647:2147483647&quot;</div><div>NUMPROC=&quot;2147483647:2147483647&quot;</div><div>NUMPTY=&quot;2147483647:2147483647&quot;</div><div>NUMSIGINFO=&quot;2147483647:2147483647&quot;</div>

<div>NUMTCPSOCK=&quot;2147483647:2147483647&quot;</div><div>OOMGUARPAGES=&quot;2147483647:2147483647&quot;</div><div>ORIGIN_SAMPLE=&quot;vps.basic&quot;</div><div>OSTEMPLATE=debian-6.0</div><div>OTHERSOCKBUF=&quot;2147483647:2147483647&quot;</div>

<div>PHYSPAGES=&quot;2147483647:2147483647&quot;</div><div>PRIVVMPAGES=&quot;2147483647:2147483647&quot;</div><div>QUOTATIME=&quot;0&quot;</div><div>SHMPAGES=&quot;2147483647:2147483647&quot;</div><div>TCPRCVBUF=&quot;2147483647:2147483647&quot;</div>

<div>TCPSNDBUF=&quot;2147483647:2147483647&quot;</div><div>VMGUARPAGES=&quot;2147483647:2147483647&quot;</div><div>BOOTORDER=&quot;10000&quot;</div><div>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;</div>

<div>CAPABILITY=&quot;NET_ADMIN:on SYS_ADMIN:on &quot;</div><div>FEATURES=&quot;sysfs:on nfsd:on nfs:on &quot;</div></div><div><br></div><div>Any help would be appreciated.</div><div><br></div><div>Thanks,</div><div>Axton Grams</div>

</blockquote></div><br></div>