[Lxc-users] LXC Container inside of a Virtual Machine + problem networking
Matt Franz
mdfranz at gmail.com
Wed Feb 22 00:13:04 UTC 2012
Use tcpdump (or wireshark if necessary) on all interfaces to see where the packets/frames are being dropped. Look at the Ethernet source addresses and for ARPs that are not being replied to. The network never lies ;)
Mdf
On Feb 21, 2012, at 5:52 PM, Martin Konečný <martin.konecny at sourcefabric.org> wrote:
> Hi,
>
> I have experience successfully creating an LXC container in many system configurations except for when it is inside of a Virtual Machine (Oracle VirtualBox).
>
> More specifically, I have problems with networking.
>
> Here is my config:
>
> lxc.network.type = veth
> lxc.network.flags = up
> lxc.network.link = br0
> lxc.network.ipv4 = 0.0.0.0/24
>
>
> My problem is, that if the container is inside a virtual machine which has its network interface bridged to its hosts network bridge, then when I'm inside the LXC container I cannot ping any computer on the internet or local network EXCEPT for the virtual machines IP.
>
> So I have a Computer hosting a Virtual Machine hosting a LXC Container. The LXC container can only access the Virtual Machine.
>
> If I change the Virtual Machine to use NAT instead of Bridge for its network adapter, then the container can access the internet no problem.
>
> Any ideas?
>
> --
> Open source radio in the cloud. Get yours now! ---> http://airtime.pro
>
>
>
> Martin Konecny
> Software Developer, Sourcefabric
> martin.konecny at sourcefabric.org
>
> 720 Bathurst St. Suite 203
> M5S 2R4, Toronto, ON, Canada
> +1 (416) 892-8420 (Cell)
> Skype: martin.konecny15
>
> http://www.sourcefabric.org
> http://www.twitter.com/Sourcefabric
>
> ------------------------------------------------------------------------------
> Keep Your Developer Skills Current with LearnDevNow!
> The most comprehensive online learning library for Microsoft developers
> is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
> Metro Style Apps, more. Free future releases when you subscribe now!
> http://p.sf.net/sfu/learndevnow-d2d
> _______________________________________________
> Lxc-users mailing list
> Lxc-users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/lxc-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20120221/f6ce1bc7/attachment.html>
More information about the lxc-users
mailing list