I finally found it with the help of the #lxcontainers irc channel. I have
to replace this in lxc.fstab:
/dev/shm /dev/shm bind 0 0
with this:
/dev/shm /srv/shm none bind 0 0
and I can access it.

On Mon, Jan 9, 2012 at 5:13 PM, Fevzi Çakmak <reliabl...@gmail.com> wrote:

> I am trying to use the /dev/shm tmpfs folder of the host inside of the
> container but I am getting a new and empty /dev/shm when I create the
> container. I only want to execute a command which should have no networking
> at all.
>
> My configuration is:
> lxc.conf:
> lxc.utsname = mycontainer
> lxc.network.type = empty
> lxc.network.flags = up
> lxc.mount = lxc.fstab
>
> lxc.fstab:
> /dev/shm /dev/shm bind 0 0
>
------------------------------------------------------------------------------
Write once. Port to many.
Get the SDK and tools to simplify cross-platform app development. Create 
new or port existing apps to sell to consumers worldwide. Explore the 
Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join
http://p.sf.net/sfu/intel-appdev
_______________________________________________
Lxc-users mailing list
Lxc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lxc-users

Reply via email to