Hi all,<div> I have a problem to run nfs server on lxc guests. There are gentoo on both host and guest.</div><div><br></div><div>On host I have:</div><div><br></div><div><div>> zgrep NFS /proc/config.gz </div><div>CONFIG_NFS_FS=y</div>
<div>CONFIG_NFS_V3=y</div><div>CONFIG_NFS_V3_ACL=y</div><div>CONFIG_NFS_V4=y</div><div>CONFIG_NFS_V4_1=y</div><div>CONFIG_PNFS_FILE_LAYOUT=y</div><div>CONFIG_ROOT_NFS=y</div><div>CONFIG_NFS_USE_LEGACY_DNS=y</div><div>CONFIG_NFSD=y</div>
<div>CONFIG_NFSD_V2_ACL=y</div><div>CONFIG_NFSD_V3=y</div><div>CONFIG_NFSD_V3_ACL=y</div><div>CONFIG_NFSD_V4=y</div><div>CONFIG_NFSD_FAULT_INJECTION=y</div><div>CONFIG_NFS_ACL_SUPPORT=y</div><div>CONFIG_NFS_COMMON=y</div>
<div><br></div><div>this is guest.conf:</div><div><br></div><div><div>> grep -v ^# /etc/lxc/rigel.conf </div><div>lxc.arch = i686</div><div><br></div><div>lxc.utsname = rigel</div><div><br></div><div>lxc.network.type = veth</div>
<div>lxc.network.flags = up</div><div>lxc.network.link = br0</div><div>lxc.network.hwaddr = fa:17:9e:ea:6d:d8</div><div><br></div><div>lxc.rootfs = /home/lxc/rigel</div><div>lxc.mount.entry = /usr/portage /home/lxc/rigel/usr/portage none bind 0 0</div>
<div>lxc.mount.entry = /etc/portage /home/lxc/rigel/etc/portage none bind 0 0</div><div><br></div><div>lxc.tty = 1</div><div>lxc.pts= 128</div><div><br></div><div>lxc.cap.drop = sys_module mknod mac_override sys_boot</div>
<div><br></div><div>lxc.cgroup.devices.deny = a</div><div>lxc.cgroup.devices.allow = c 1:3 rw</div><div>lxc.cgroup.devices.allow = c 1:5 rw</div><div>lxc.cgroup.devices.allow = c 1:9 rw</div><div>lxc.cgroup.devices.allow = c 1:8 r</div>
<div>lxc.cgroup.devices.allow = c 136:* rw</div><div>lxc.cgroup.devices.allow = c 5:2 rw</div><div>lxc.cgroup.devices.allow = c 4:1 rwm</div><div>lxc.cgroup.devices.allow = c 4:0 rwm</div><div>lxc.cgroup.devices.allow = c 5:0 rwm</div>
<div>lxc.cgroup.devices.allow = c 5:1 rwm</div><div>lxc.cgroup.devices.allow = c 10:200 rwm</div></div><div><br></div><div>but when on the guest i start nfs, i get this error:</div><div><br></div><div><div>> /etc/init.d/nfs restart</div>
<div> * Exporting NFS directories ... [ ok ]</div><div> * Starting NFS mountd ... [ !! ]</div>
<div> * Starting NFS daemon ...</div><div>rpc.nfsd: writing fd to kernel failed: errno 111 (Connection refused)</div><div>rpc.nfsd: unable to set any sockets for nfsd [ !! ]</div>
<div> * Starting NFS smnotify ... [ ok ]</div><div> * ERROR: nfs failed to start</div></div><div><br></div><div>can anybody help me about?</div>
<div><br></div><div>thanks,</div><div>LP</div><div><br></div><div><br></div><div><br></div>-- <br><div><br></div><a href="http://luca.postregna.name" target="_blank">http://luca.postregna.name</a><br>Luca Postregna<br><br>
</div>