[lxc-users] reach the outside world

Guillaume VINCENT gvincent at oslab.fr
Thu Mar 12 22:54:19 UTC 2015


Hello list,

I'm learning how to use lxd and play with my container.

For know I can download images, launch some container.

But I can't get my container reaching the outside world.

My host /etc/network/interfaces :

auto lo
iface lo inet loopback

# The primary network interface
auto eth0
iface eth0 inet dhcp

auto lxcbr0
iface lxcbr0 inet static
    address x.x.x.230
    netmask 255.255.255.0
    network x.x.x.0
    broadcast x.x.x.255
    gateway x.x.x.1
    bridge_ports eth0
    bridge_stp off
    bridge_fd 0

brctl show

bridge name	bridge id		STP enabled	interfaces
lxcbr0		8000.e89a8f509087	no		eth0

lxc list

+--------------+---------+-----------+------+
|     NAME     |  STATE  |   IPV4    | IPV6 |
+--------------+---------+-----------+------+
| my_container | RUNNING | 127.0.0.1 | ::1  |
+--------------+---------+-----------+------+


lxc config show my_container

Profiles: default

lxc config profile edit default

name: default
config: {}
devices:
  eth0:
    nictype: bridged
    parent: lxcbr0
    type: nic


lxc exec my_container -- ping 8.8.8.8

connect: Network is unreachable


Any idea ? Any ressource I can read ?

I've read lxc bridge setup post on the mailing list without any success

Thank you


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20150312/d3755b25/attachment.html>


More information about the lxc-users mailing list