[Lxc-users] Running an NFS server within LXC

David Parks davidparks21 at yahoo.com
Mon Apr 15 10:34:28 UTC 2013


It's really a no-go on LXC huh? That's too bad. Glusterfs seems like
overkill, I just want a remote mount for a small, but critical, backup
process. But it must be mounted, I'd rather not clutter up the host OS, as
the whole point of LXC was to keep configuration specific to various
application-components segregated in their own containers.



-----Original Message-----
From: Papp Tamas [mailto:tompos at martos.bme.hu] 
Sent: Monday, April 15, 2013 5:24 PM
To: lxc-users at lists.sourceforge.net
Subject: Re: [Lxc-users] Running an NFS server within LXC

On 04/15/2013 12:17 PM, David Parks wrote:
> Could this be an LXC specific issue? I'm trying to run an NFS server
within a container.
>
> davidparks21 at hadoop-fsimage-bkup1:~$ sudo service nfs-kernel-server 
> restart
>
> * Stopping NFS kernel daemon
>
>     ...done.
>
> * Unexporting directories for NFS kernel daemon...
>
>     ...done.
>
> *FATAL: Could not load /lib/modules/3.5.0-27-generic/modules.dep: No 
> such file or directory*
>
> ** Not starting NFS kernel daemon: no support in current kernel.*
>
> This is an ubuntu 12.10 container (built from Ubuntu cloud server 
> images) in a vanilla 12.10 host installed from CD.
>
> I'm having a lot of troubles tracking down a solution on google and am 
> wondering if this is LXC-related. I've tried enabling this option in LXC:
>
> lxc.aa_profile = unconfined
>
> Or is this somehow related to my host installation? I am trying to 
> avoid **any** unnecessary configuration in the host, so I haven't tried
installing NFS server to the host OS.


You cannot make it.
Try glusterfs as a workaround.

tamas



----------------------------------------------------------------------------
--
Precog is a next-generation analytics platform capable of advanced analytics
on semi-structured data. The platform includes APIs for building apps and a
phenomenal toolset for data science. Developers can use our toolset for easy
data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter
_______________________________________________
Lxc-users mailing list
Lxc-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lxc-users





More information about the lxc-users mailing list