[Lxc-users] LXC Container inside of a Virtual Machine + problem networking

Martin Konečný martin.konecny at sourcefabric.org
Tue Feb 21 22:52:50 UTC 2012


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20120221/ffa0e9a4/attachment.html>


More information about the lxc-users mailing list