[Lxc-users] Network problem on start
Papp Tamas
tompos at martos.bme.hu
Sat Jul 2 14:57:53 UTC 2011
On 2011-07-02 16:50, Stuart Johnson wrote:
>> You forgot to paste your config files.
> thanks, does this help? Its the gateway address that doesn't get set up
> until I do a ifdown eth0&& ifup eth0
>
>
> lxc.network.type = veth
> lxc.network.flags = up
> lxc.network.link = br0
> lxc.network.ipv4 = x.x.x.x
> lxc.utsname = taxibus
>
> lxc.tty = 4
> lxc.pts = 1024
> lxc.rootfs = /var/lib/lxc/test/rootfs
> lxc.mount = /var/lib/lxc/test/fstab
>
> lxc.cgroup.devices.deny = a
> # /dev/null and zero
> lxc.cgroup.devices.allow = c 1:3 rwm
> lxc.cgroup.devices.allow = c 1:5 rwm
> # consoles
> lxc.cgroup.devices.allow = c 5:1 rwm
> lxc.cgroup.devices.allow = c 5:0 rwm
> #lxc.cgroup.devices.allow = c 4:0 rwm
> #lxc.cgroup.devices.allow = c 4:1 rwm
> # /dev/{,u}random
> lxc.cgroup.devices.allow = c 1:9 rwm
> lxc.cgroup.devices.allow = c 1:8 rwm
> lxc.cgroup.devices.allow = c 136:* rwm
> lxc.cgroup.devices.allow = c 5:2 rwm
> # rtc
> lxc.cgroup.devices.allow = c 254:0 rwm
>
>
> /etc/network/interfaces (container)
> # The loopback network interface
> auto lo
> iface lo inet loopback
>
> #The primary network interface
> auto eth0
> iface eth0 inet static
> address x.x.x.x
> gateway x.x.x.x
> netmask 255.255.255.0
Did you modify /etc/init/* scripts? The guest is also Natty?
tamas
More information about the lxc-users
mailing list