[Lxc-users] Using VMware as a test-bed for hosting lxc containers. [SOLVED]
Peter-Frank Spierenburg
spierepf at hotmail.com
Fri Sep 7 08:57:32 UTC 2012
Greetings,
Apologies for being a bonehead. the routing table in the container was problem #1, plus it turns out that I also forgot to turn on ip routing inside the vm. DOH!
Anyway, thanks so much for your help.
Have a good day.
> Date: Fri, 7 Sep 2012 11:35:06 +0700
> Subject: Re: [Lxc-users] Using VMware as a test-bed for hosting lxc containers.
> From: list at fajar.net
> To: spierepf at hotmail.com
> CC: lxc-users at lists.sourceforge.net
>
> On Fri, Sep 7, 2012 at 11:29 AM, Peter-Frank Spierenburg
> <spierepf at hotmail.com> wrote:
> > Anyway, I am having trouble convincing the lxc guests to talk to the network
> > outside the box hosting the vm hosting the container.
>
> If you use latest ubuntu it'll work out of the box.
>
> > I've also got iptables configured to do the masquerading for the br0 device:
>
> I usually just let lxc or libvirt create lxcbr0/virbr0, with the
> necessary rules. Much simpler that way.
>
>
> > Finally, one of the lxc containers:
> >
> > eth0 Link encap:Ethernet HWaddr 00:16:3e:38:88:bb
> > inet addr:192.168.2.1 Bcast:192.168.2.255 Mask:255.255.255.0
>
>
> > Kernel IP routing table
> > Destination Gateway Genmask Flags Metric Ref Use
> > Iface
> > 0.0.0.0 192.168.2.1 0.0.0.0 UG 0 0 0 eth0
>
>
> And you're wondering why it DOESN't work? seriusly?
> Hint: check the ip address on eth0 and the gateway.
>
> --
> Fajar
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20120907/46804aa8/attachment.html>
More information about the lxc-users
mailing list