<div dir="ltr">Sorry for not including lxc version. I am running lxc on Red Hat 6.4:<div><div># rpm -qa | grep lxc</div><div>lxc-libs-0.9.0-2.el6.x86_64</div><div>lxc-0.9.0-2.el6.x86_64</div></div><div><br></div><div>When I used none for network type I got the following error:</div>
<div><div>lxc-start: invalid network type none</div><div>lxc-start: failed to read configuration file</div></div><div><br></div><div>So I presume I should just remove all lxc.network statements from my config file to get it working.</div>
<div><br></div><div>Thanks,</div><div><br></div><div>Piotr</div><div><br></div><div><br></div></div><div class="gmail_extra"><br clear="all"><div><br>Piotr<br></div>
<br><br><div class="gmail_quote">On Wed, Jan 15, 2014 at 12:11 PM, Serge Hallyn <span dir="ltr"><<a href="mailto:serge.hallyn@ubuntu.com" target="_blank">serge.hallyn@ubuntu.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="HOEnZb"><div class="h5">Quoting Piotr R (<a href="mailto:tytus64@gmail.com">tytus64@gmail.com</a>):<br>
> I seem to remember reading somewhere that I can expose all the host network<br>
> devices to a container by removing all network configuration in my lxc<br>
> config file. Is this correct?<br>
<br>
</div></div>that depends now on your lxc version. That used to be the case until<br>
pretty recently, but it is a dangerous default because your container's<br>
init is then talking in the same abstract unix socket ns as the host.<br>
Which means 'halt' in the container (at least in rhel or ubuntu) can halt<br>
your host.<br>
<br>
With new enough lxc you may have to have a<br>
<br>
lxc.network.type = none<br>
<br>
entry in lxc.conf.<br>
<br>
This incidentally requires an update to lxc.conf manpage... Adding that<br>
now.<br>
<br>
-serge<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" target="_blank">http://lists.linuxcontainers.org/listinfo/lxc-users</a><br>
</blockquote></div><br></div>