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"><<a href="mailto:axton.grams@gmail.com" target="_blank">axton.grams@gmail.com</a>></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 '/lib/modules/2.6.32-5-openvz-amd64/kernel/fs/nfsd/nfsd.ko': 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 '/lib/modules/2.6.32-5-openvz-amd64/kernel/fs/nfsd/nfsd.ko': 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="fs01"</div><div>NAMESERVER="10.0.20.250"</div><div>SEARCHDOMAIN="<a href="http://x.org" target="_blank">x.org</a>"</div><div>ONBOOT="yes"</div><div>NAME="fs01"</div>
<div>CONFIG_CUSTOMIZED=yes</div>
<div>AVNUMPROC="180:180"</div><div>CPUUNITS="1000"</div><div>DCACHESIZE="<a href="tel:2147483647" value="+12147483647" target="_blank">2147483647</a>:<a href="tel:2147483647" value="+12147483647" target="_blank">2147483647</a>"</div>
<div>DGRAMRCVBUF="<a href="tel:2147483647" value="+12147483647" target="_blank">2147483647</a>:<a href="tel:2147483647" value="+12147483647" target="_blank">2147483647</a>"</div><div>DISKINODES="<a href="tel:2147483647" value="+12147483647" target="_blank">2147483647</a>:<a href="tel:2147483647" value="+12147483647" target="_blank">2147483647</a>"</div>
<div>DISKSPACE="<a href="tel:2147483647" value="+12147483647" target="_blank">2147483647</a>:<a href="tel:2147483647" value="+12147483647" target="_blank">2147483647</a>"</div><div>KMEMSIZE="<a href="tel:2147483647" value="+12147483647" target="_blank">2147483647</a>:<a href="tel:2147483647" value="+12147483647" target="_blank">2147483647</a>"</div>
<div>LOCKEDPAGES="<a href="tel:2147483647" value="+12147483647" target="_blank">2147483647</a>:<a href="tel:2147483647" value="+12147483647" target="_blank">2147483647</a>"</div><div>NUMFILE="2147483647:2147483647"</div>
<div>NUMFLOCK="2147483647:2147483647"</div>
<div>NUMIPTENT="2147483647:2147483647"</div><div>NUMOTHERSOCK="2147483647:2147483647"</div><div>NUMPROC="2147483647:2147483647"</div><div>NUMPTY="2147483647:2147483647"</div><div>NUMSIGINFO="2147483647:2147483647"</div>
<div>NUMTCPSOCK="2147483647:2147483647"</div><div>OOMGUARPAGES="2147483647:2147483647"</div><div>ORIGIN_SAMPLE="vps.basic"</div><div>OSTEMPLATE=debian-6.0</div><div>OTHERSOCKBUF="2147483647:2147483647"</div>
<div>PHYSPAGES="2147483647:2147483647"</div><div>PRIVVMPAGES="2147483647:2147483647"</div><div>QUOTATIME="0"</div><div>SHMPAGES="2147483647:2147483647"</div><div>TCPRCVBUF="2147483647:2147483647"</div>
<div>TCPSNDBUF="2147483647:2147483647"</div><div>VMGUARPAGES="2147483647:2147483647"</div><div>BOOTORDER="10000"</div><div>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"</div>
<div>CAPABILITY="NET_ADMIN:on SYS_ADMIN:on "</div><div>FEATURES="sysfs:on nfsd:on nfs:on "</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>