On Wed, Mar 30, 2011 at 10:00 PM, Ramez Hanna <span dir="ltr"><<a href="mailto:rhanna@informatiq.org">rhanna@informatiq.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">On Wed, Mar 30, 2011 at 7:58 PM, Serge E. Hallyn <span dir="ltr"><<a href="mailto:serge.hallyn@ubuntu.com" target="_blank">serge.hallyn@ubuntu.com</a>></span> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">
<div>Quoting Justin Cormack (<a href="mailto:justin@specialbusservice.com" target="_blank">justin@specialbusservice.com</a>):<br>
> On Wed, 2011-03-30 at 10:32 -0500, Serge E. Hallyn wrote:<br>
> > Quoting Justin Cormack (<a href="mailto:justin@specialbusservice.com" target="_blank">justin@specialbusservice.com</a>):<br>
</div><div>> > > This one didnt work...<br>
> > ><br>
> > > lxc.utsname = vm1<br>
> > > lxc.tty = 4<br>
> > > lxc.network.type = veth<br>
> > > lxc.network.flags = up<br>
> > > lxc.network.link = virbr0<br>
> > > lxc.network.hwaddr = 08:00:27:83:C4:82<br>
> > > lxc.network.ipv4 = 192.168.122.2<br>
> > > <a href="http://lxc.network.name" target="_blank">lxc.network.name</a> = eth0<br>
> > > lxc.mount = /usr/lib/lxc/vm1/fstab<br>
> > > lxc.rootfs = /usr/lib/lxc/vm1/rootfs<br>
> ><br>
> > Odd. Did you start this as root?<br>
><br>
> Yes, just retested and behaving the same. If I get lxc-start to<br>
> run /bin/bash instead of init (and then mount proc manually) it has<br>
> brought up eth0 in the container on the right IP, and I can ping the<br>
> other end, which suggests that it has got network namespaces. And<br>
> netstat does not list anything. Which is rather confusing as it suggests<br>
> everything is as expected.<br>
<br>
</div>And exactly what distro/release/version are the container and host?<br>
<br></div>-----BEGIN PGP SIGNATURE-----<br>
Version: GnuPG v1.4.10 (GNU/Linux)<br>
<br>
iQEcBAEBAgAGBQJNk2E5AAoJEHmllQITXQdF9mMIAJuBq8nQt6lSO7kBYo5KMsDt<br>
GNyQ0qtZwt1uzkEkzAVM9TGYGxBfMlVPZxnh20DO5O5ErpWWfB/n8mBwTqwh4//5<br>
ngLPMbuWI60Godei/OCiR51f4V9tbd7S0gpL1Uty6uEEph01Qm81H9nPrHYEV9kc<br>
YORmVl+KlU0yFV58hOmU0WOmerydCgMiIPIXWW8WLIc8dg7X+h35UMAsg8lmAapr<br>
2qVXfO7ocu980OZzJ8TunhV9oyKumaZ8aogK7dsSjhBCB7VDGCHZAnvs0Bz9YbNB<br>
jO4y7Lv1hK3x9SeChIvPwljywB2MA77GESWsS8G53af4sYG06sFQ34W+1laj4xU=<br>
=jw0k<br>
-----END PGP SIGNATURE-----<div class="im"><br>
<br>------------------------------------------------------------------------------<br>
Create and publish websites with WebMatrix<br>
Use the most popular FREE web apps or write code yourself;<br>
WebMatrix provides all the features you need to develop and<br>
publish your website. <a href="http://p.sf.net/sfu/ms-webmatrix-sf" target="_blank">http://p.sf.net/sfu/ms-webmatrix-sf</a><br>
<br>_______________________________________________<br>
Lxc-users mailing list<br>
<a href="mailto:Lxc-users@lists.sourceforge.net" target="_blank">Lxc-users@lists.sourceforge.net</a><br>
<a href="https://lists.sourceforge.net/lists/listinfo/lxc-users" target="_blank">https://lists.sourceforge.net/lists/listinfo/lxc-users</a><br>
<br></div></blockquote><div>man it seems that enabling network in the container was the solution<br></div><div>i wasn't enabling the network and that was getting my host's init affected</div><div>i thought that if i didn't set network the container would not have network at all (soming from a kvm background)</div>
<div>but it seems that if network is not defined at all in the lxc config then it will share the hosts's network, which would really screw things up</div><div><br></div>
</blockquote><div>and here it is the final version<br></div><div>just tested it on host f14 </div><div>created f14 and f13 guests successfully</div><div><br></div><div>shall i send this to Daniel Lezcano <<a href="mailto:daniel.lezcano@free.fr">daniel.lezcano@free.fr</a>> for including it in the next release? or what?</div>
<div><br></div>