<p dir="ltr">enable privileged mode.</p>
<p dir="ltr">Mahesh</p>
<div class="gmail_quote">On 27 Apr 2016 9:51 pm, "Dan Kegel" <<a href="mailto:dank@kegel.com">dank@kegel.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Tycho's tip,<br>
"If you enable nesting in the container, that allows all mounts (for<br>
now) and it should work"<br>
helped here.<br>
<br>
I filed <a href="https://bugs.launchpad.net/ubuntu/+source/lxc/+bug/1575757" rel="noreferrer" target="_blank">https://bugs.launchpad.net/ubuntu/+source/lxc/+bug/1575757</a> to<br>
suggest improving the doc to mention nfs.<br>
<br>
<br>
On Tue, Apr 26, 2016 at 12:21 PM, Dan Kegel <<a href="mailto:dank@kegel.com">dank@kegel.com</a>> wrote:<br>
> Trying to install a package that depends on having an nfs server ran<br>
> into trouble, so I tried a simple test case:<br>
><br>
> $ sudo lxc-create -n nfstest -t download -- -d ubuntu -r xenial -a amd64<br>
> $ sudo lxc-start -n nfstest<br>
> $ sudo lxc-attach -n nfstest apt-get update<br>
> $ sudo lxc-attach -n nfstest apt-get install nfs-kernel-server<br>
> ...<br>
> Creating config file /etc/idmapd.conf with new version<br>
><br>
> Creating config file /etc/default/nfs-common with new version<br>
> Adding system user `statd' (UID 106) ...<br>
> Adding new user `statd' (UID 106) with group `nogroup' ...<br>
> Not creating home directory `/var/lib/nfs'.<br>
> nfs-utils.service is a disabled or a static unit, not starting it.<br>
> Setting up nfs-kernel-server (1:1.2.8-9ubuntu12) ...<br>
> A dependency job for nfs-server.service failed. See 'journalctl -xe'<br>
> for details.<br>
> nfs-server.service couldn't start.<br>
><br>
> Creating config file /etc/exports with new version<br>
><br>
> Creating config file /etc/default/nfs-kernel-server with new version<br>
> A dependency job for nfs-server.service failed. See 'journalctl -xe'<br>
> for details.<br>
> invoke-rc.d: initscript nfs-kernel-server, action "start" failed.<br>
> dpkg: error processing package nfs-kernel-server (--configure):<br>
>  subprocess installed post-installation script returned error exit status 1<br>
> Processing triggers for libc-bin (2.23-0ubuntu3) ...<br>
> Processing triggers for ureadahead (0.100.0-19) ...<br>
> Processing triggers for systemd (229-4ubuntu4) ...<br>
> Errors were encountered while processing:<br>
>  nfs-kernel-server<br>
> E: Sub-process /usr/bin/dpkg returned an error code (1)<br>
><br>
> $ sudo lxc-attach -n nfstest -- journalctl -xe<br>
> Apr 26 19:13:18 nfstest systemd[1]: Failed to reset devices.list on<br>
> /system.slice/dev-lxc-tty4.mount: Operation not permitted<br>
> Apr 26 19:13:18 nfstest systemd[1]: Failed to reset devices.list on<br>
> /system.slice/cron.service: Operation not permitted<br>
> Apr 26 19:13:18 nfstest systemd[1]: Failed to reset devices.list on<br>
> /system.slice/systemd-remount-fs.service: Operation not permitted<br>
> Apr 26 19:13:18 nfstest systemd[1]: Failed to reset devices.list on<br>
> /system.slice/system-container\x2dgetty.slice: Operation not permitted<br>
> Apr 26 19:13:18 nfstest systemd[1]: Failed to reset devices.list on<br>
> /system.slice/dev-lxc-tty2.mount: Operation not permitted<br>
> Apr 26 19:13:18 nfstest systemd[1]: Failed to reset devices.list on<br>
> /system.slice/sys-fs-fuse-connections.mount: Operation not permitted<br>
> Apr 26 19:13:18 nfstest systemd[1]: Failed to reset devices.list on<br>
> /system.slice/proc-sysrq\x2dtrigger.mount: Operation not permitted<br>
> Apr 26 19:13:18 nfstest systemd[1]: Failed to reset devices.list on<br>
> /system.slice/dev-lxc-tty1.mount: Operation not permitted<br>
> Apr 26 19:13:18 nfstest systemd[1]: Failed to reset devices.list on<br>
> /system.slice/dev-hugepages.mount: Operation not permitted<br>
> Apr 26 19:13:18 nfstest systemd[1]: run-rpc_pipefs.mount: Mount<br>
> process exited, code=exited status=32<br>
> Apr 26 19:13:18 nfstest systemd[1]: Failed to mount RPC Pipe File System.<br>
> -- Subject: Unit run-rpc_pipefs.mount has failed<br>
> -- Defined-By: systemd<br>
> -- Support: <a href="http://lists.freedesktop.org/mailman/listinfo/systemd-devel" rel="noreferrer" target="_blank">http://lists.freedesktop.org/mailman/listinfo/systemd-devel</a><br>
> --<br>
> -- Unit run-rpc_pipefs.mount has failed.<br>
> --<br>
> -- The result is failed.<br>
> ...<br>
><br>
> Halp!  :-)   I'm sure it's some cgroups magic, and the answer will be<br>
> "Of course, you need to run lxc-cgroup as follows..."<br>
_______________________________________________<br>
lxc-users mailing list<br>
<a href="mailto:lxc-users@lists.linuxcontainers.org">lxc-users@lists.linuxcontainers.org</a><br>
<a href="http://lists.linuxcontainers.org/listinfo/lxc-users" rel="noreferrer" target="_blank">http://lists.linuxcontainers.org/listinfo/lxc-users</a></blockquote></div>