Hi all,
  I have a problem to run nfs server on lxc guests. There are gentoo on
both host and guest.

On host I have:

> zgrep NFS /proc/config.gz
CONFIG_NFS_FS=y
CONFIG_NFS_V3=y
CONFIG_NFS_V3_ACL=y
CONFIG_NFS_V4=y
CONFIG_NFS_V4_1=y
CONFIG_PNFS_FILE_LAYOUT=y
CONFIG_ROOT_NFS=y
CONFIG_NFS_USE_LEGACY_DNS=y
CONFIG_NFSD=y
CONFIG_NFSD_V2_ACL=y
CONFIG_NFSD_V3=y
CONFIG_NFSD_V3_ACL=y
CONFIG_NFSD_V4=y
CONFIG_NFSD_FAULT_INJECTION=y
CONFIG_NFS_ACL_SUPPORT=y
CONFIG_NFS_COMMON=y

this is guest.conf:

> grep -v ^# /etc/lxc/rigel.conf
lxc.arch = i686

lxc.utsname = rigel

lxc.network.type = veth
lxc.network.flags = up
lxc.network.link = br0
lxc.network.hwaddr = fa:17:9e:ea:6d:d8

lxc.rootfs = /home/lxc/rigel
lxc.mount.entry = /usr/portage /home/lxc/rigel/usr/portage none bind 0 0
lxc.mount.entry = /etc/portage /home/lxc/rigel/etc/portage none bind 0 0

lxc.tty = 1
lxc.pts= 128

lxc.cap.drop = sys_module mknod mac_override sys_boot

lxc.cgroup.devices.deny = a
lxc.cgroup.devices.allow = c 1:3 rw
lxc.cgroup.devices.allow = c 1:5 rw
lxc.cgroup.devices.allow = c 1:9 rw
lxc.cgroup.devices.allow = c 1:8 r
lxc.cgroup.devices.allow = c 136:* rw
lxc.cgroup.devices.allow = c 5:2 rw
lxc.cgroup.devices.allow = c 4:1 rwm
lxc.cgroup.devices.allow = c 4:0 rwm
lxc.cgroup.devices.allow = c 5:0 rwm
lxc.cgroup.devices.allow = c 5:1 rwm
lxc.cgroup.devices.allow = c 10:200 rwm

but when on the guest i start nfs, i get this error:

> /etc/init.d/nfs restart
 * Exporting NFS directories ...
                                                           [ ok ]
 * Starting NFS mountd ...
                                                           [ !! ]
 * Starting NFS daemon ...
rpc.nfsd: writing fd to kernel failed: errno 111 (Connection refused)
rpc.nfsd: unable to set any sockets for nfsd
                                                           [ !! ]
 * Starting NFS smnotify ...
                                                           [ ok ]
 * ERROR: nfs failed to start

can anybody help me about?

thanks,
LP



-- 

http://luca.postregna.name
Luca Postregna
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Lxc-users mailing list
Lxc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lxc-users

Reply via email to