[Lxc-users] fedora template
Ramez Hanna
rhanna at informatiq.org
Wed Mar 30 19:00:48 UTC 2011
On Wed, Mar 30, 2011 at 7:58 PM, Serge E. Hallyn <serge.hallyn at ubuntu.com>wrote:
> Quoting Justin Cormack (justin at specialbusservice.com):
> > On Wed, 2011-03-30 at 10:32 -0500, Serge E. Hallyn wrote:
> > > Quoting Justin Cormack (justin at specialbusservice.com):
> > > > This one didnt work...
> > > >
> > > > lxc.utsname = vm1
> > > > lxc.tty = 4
> > > > lxc.network.type = veth
> > > > lxc.network.flags = up
> > > > lxc.network.link = virbr0
> > > > lxc.network.hwaddr = 08:00:27:83:C4:82
> > > > lxc.network.ipv4 = 192.168.122.2
> > > > lxc.network.name = eth0
> > > > lxc.mount = /usr/lib/lxc/vm1/fstab
> > > > lxc.rootfs = /usr/lib/lxc/vm1/rootfs
> > >
> > > Odd. Did you start this as root?
> >
> > Yes, just retested and behaving the same. If I get lxc-start to
> > run /bin/bash instead of init (and then mount proc manually) it has
> > brought up eth0 in the container on the right IP, and I can ping the
> > other end, which suggests that it has got network namespaces. And
> > netstat does not list anything. Which is rather confusing as it suggests
> > everything is as expected.
>
> And exactly what distro/release/version are the container and host?
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.10 (GNU/Linux)
>
> iQEcBAEBAgAGBQJNk2E5AAoJEHmllQITXQdF9mMIAJuBq8nQt6lSO7kBYo5KMsDt
> GNyQ0qtZwt1uzkEkzAVM9TGYGxBfMlVPZxnh20DO5O5ErpWWfB/n8mBwTqwh4//5
> ngLPMbuWI60Godei/OCiR51f4V9tbd7S0gpL1Uty6uEEph01Qm81H9nPrHYEV9kc
> YORmVl+KlU0yFV58hOmU0WOmerydCgMiIPIXWW8WLIc8dg7X+h35UMAsg8lmAapr
> 2qVXfO7ocu980OZzJ8TunhV9oyKumaZ8aogK7dsSjhBCB7VDGCHZAnvs0Bz9YbNB
> jO4y7Lv1hK3x9SeChIvPwljywB2MA77GESWsS8G53af4sYG06sFQ34W+1laj4xU=
> =jw0k
> -----END PGP SIGNATURE-----
>
>
> ------------------------------------------------------------------------------
> Create and publish websites with WebMatrix
> Use the most popular FREE web apps or write code yourself;
> WebMatrix provides all the features you need to develop and
> publish your website. http://p.sf.net/sfu/ms-webmatrix-sf
>
> _______________________________________________
> Lxc-users mailing list
> Lxc-users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/lxc-users
>
> man it seems that enabling network in the container was the solution
i wasn't enabling the network and that was getting my host's init affected
i thought that if i didn't set network the container would not have network
at all (soming from a kvm background)
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20110330/18ad8393/attachment.html>
More information about the lxc-users
mailing list