I finally found it with the help of the #lxcontainers irc channel. I have to replace this in lxc.fstab:<div>/dev/shm /dev/shm bind 0 0</div><div>with this:</div><div>/dev/shm /srv/shm none bind 0 0</div><div>and I can access it.<div>
<br><div class="gmail_quote">On Mon, Jan 9, 2012 at 5:13 PM, Fevzi Çakmak <span dir="ltr"><<a href="mailto:reliable61@gmail.com">reliable61@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>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. </div>

<div><br></div><div>My configuration is:</div><div><div>lxc.conf:</div><div>lxc.utsname = mycontainer</div><div>lxc.network.type = empty</div><div>lxc.network.flags = up</div><div>lxc.mount = lxc.fstab</div></div><div><br>

</div><div>lxc.fstab:</div><div>/dev/shm /dev/shm bind 0 0</div>
</blockquote></div><br></div></div>