[Lxc-users] uptodate Ubuntu Lucid guests
Papp Tamás
tompos at martos.bme.hu
Fri Sep 10 16:17:57 UTC 2010
Daniel Lezcano wrote, On 2010. 09. 10. 13:03:
> Yep, sounds the same problem. Let's look at this closely ...
>
> 1) Papp is using a 2.6.32-24-server kernel => kernel crash
> br
> Physical interfaces:
> ===================
05:00.0 Ethernet controller: Intel Corporation 82576 Gigabit Network
Connection (rev 01)
05:00.1 Ethernet controller: Intel Corporation 82576 Gigabit Network
Connection (rev 01)
>
> ??
>
> Interfaces configuration:
> ========================
auto lo
iface lo inet loopback
# The primary network interface
auto eth0
auto br0
iface br0 inet static
address x.x.x.120
netmask 255.255.255.0
gateway x.x.x.x.254
bridge_ports eth0
bridge_stp off
bridge_fd 0
bridge_maxwait 0
auto eth1
auto br1
iface br1 inet static
address 10.1.1.120
netmask 255.0.0.0
bridge_ports eth1
bridge_stp off
bridge_fd 0
bridge_maxwait 0
up route add -net 192.168.1.0/24 gw 10.1.3.254
> Ifconfig:
> ========
br0 Link encap:Ethernet HWaddr 78:e7:d1:60:ed:24
inet addr:x.x.x.120 Bcast:x.x.x.255 Mask:255.255.255.0
inet6 addr: fe80::7ae7:d1ff:fe60:ed24/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1353 errors:0 dropped:0 overruns:0 frame:0
TX packets:142 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:79293 (79.2 KB) TX bytes:12120 (12.1 KB)
br1 Link encap:Ethernet HWaddr 78:e7:d1:60:ed:25
inet addr:10.1.1.120 Bcast:10.255.255.255 Mask:255.0.0.0
inet6 addr: fe80::7ae7:d1ff:fe60:ed25/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:629 errors:0 dropped:0 overruns:0 frame:0
TX packets:276 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:70627 (70.6 KB) TX bytes:58265 (58.2 KB)
eth0 Link encap:Ethernet HWaddr 78:e7:d1:60:ed:24
inet6 addr: fe80::7ae7:d1ff:fe60:ed24/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2183 errors:0 dropped:0 overruns:0 frame:0
TX packets:148 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:492024 (492.0 KB) TX bytes:12588 (12.5 KB)
Memory:fbe60000-fbe80000
eth1 Link encap:Ethernet HWaddr 78:e7:d1:60:ed:25
inet6 addr: fe80::7ae7:d1ff:fe60:ed25/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1672 errors:0 dropped:0 overruns:0 frame:0
TX packets:280 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:420358 (420.3 KB) TX bytes:58361 (58.3 KB)
Memory:fbee0000-fbf00000
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:21 errors:0 dropped:0 overruns:0 frame:0
TX packets:21 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:2063 (2.0 KB) TX bytes:2063 (2.0 KB)
> bridge info:
> ===========
>
>
bridge name bridge id STP enabled interfaces
br0 8000.78e7d160ed24 no eth0
br1 8000.78e7d160ed25 no eth1
>
> Lxc configuration:
> =================
>
> lxc.utsname = test
> lxc.tty = 4
> lxc.network.type = veth
> lxc.network.flags = up
> lxc.network.link = br1
> lxc.network.name = eth1
> lxc.network.mtu = 1500
> lxc.network.ipv4 = 10.1.1.219/16
> lxc.network.hwaddr = AC:DD:22:63:22:22
> lxc.network.veth.pair = veth118
>
> lxc.rootfs = /data/lxc/test/rootfs
> lxc.cgroup.devices.deny = a
> lxc.cgroup.devices.allow = c 1:3 rwm
> lxc.cgroup.devices.allow = c 1:5 rwm
> 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
> 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
> lxc.cgroup.devices.allow = c 254:0 rm
>
> 2) Daniel tried on a 2.6.32-23-server kernel => no problem
>
> Physical interfaces:
> ===================
>
> 05:00.0 Ethernet controller: Intel Corporation 80003ES2LAN Gigabit
> Ethernet Controller (Copper) (rev 01)
> 05:00.1 Ethernet controller: Intel Corporation 80003ES2LAN Gigabit
> Ethernet Controller (Copper) (rev 01)
>
> Interfaces configuration:
> ========================
>
> auto lo
> iface lo inet loopback
>
> auto eth0
> iface eth0 inet dhcp
>
>
>
>
> auto br0
> iface br0 inet static
> address 172.20.0.1
> netmask 255.255.0.0
> bridge_stp off
> bridge_maxwait 5
> pre-up /usr/sbin/brctl addbr br0
> post-up /usr/sbin/brctl setfd br0 0
> post-up /sbin/iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
> post-up echo 1> /proc/sys/net/ipv4/ip_forward
>
> Ifconfig:
> ========
>
> br0 Link encap:Ethernet HWaddr 56:1e:16:49:91:8a
> inet addr:172.20.0.1 Bcast:172.20.255.255 Mask:255.255.0.0
> inet6 addr: fe80::541e:16ff:fe49:918a/64 Scope:Link
> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
> RX packets:59748 errors:0 dropped:0 overruns:0 frame:0
> TX packets:117950 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:0
> RX bytes:3722380 (3.7 MB) TX bytes:170211775 (170.2 MB)
>
> eth0 Link encap:Ethernet HWaddr 00:e0:81:74:bc:fa
> inet addr:192.168.254.103 Bcast:192.168.254.255
> Mask:255.255.255.0
> inet6 addr: fe80::2e0:81ff:fe74:bcfa/64 Scope:Link
> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
> RX packets:2700923 errors:0 dropped:0 overruns:0 frame:0
> TX packets:1786015 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:100
> RX bytes:3651075205 (3.6 GB) TX bytes:147340322 (147.3 MB)
> Memory:d3000000-d3020000
>
> eth1 Link encap:Ethernet HWaddr 00:e0:81:74:bc:fb
> UP BROADCAST MULTICAST MTU:1500 Metric:1
> RX packets:0 errors:0 dropped:0 overruns:0 frame:0
> TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:1000
> RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
> Memory:d3020000-d3040000
>
> vethiCcp1W Link encap:Ethernet HWaddr 56:1e:16:49:91:8a
> inet6 addr: fe80::541e:16ff:fe49:918a/64 Scope:Link
> UP BROADCAST RUNNING PROMISC MULTICAST MTU:1500 Metric:1
> RX packets:9744 errors:0 dropped:0 overruns:0 frame:0
> TX packets:19033 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:1000
> RX bytes:525357 (525.3 KB) TX bytes:28466570 (28.4 MB)
>
>
> bridge info:
> ===========
>
> bridge name bridge id STP enabled interfaces
> br0 8000.561e1649918a no vethiCcp1W
>
> Lxc configuration:
> =================
>
> lxc.network.type=veth
> lxc.network.link=br0
> lxc.network.flags=up
>
> lxc.utsname = ubuntu
> lxc.tty = 4
> lxc.pts = 1024
> lxc.rootfs = /var/lib/lxc/ubuntu/rootfs
> lxc.mount = /var/lib/lxc/ubuntu/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
>
>
> 3) Ferenc used a 2.6.32-22 server kernel => kernel crash
>
> Physical interfaces:
> ===================
>
> 01:00.0 Ethernet controller: Intel Corporation 82575EB Gigabit Network
> Connection (rev 02)
> 01:00.1 Ethernet controller: Intel Corporation 82575EB Gigabit Network
> Connection (rev 02)
> 07:00.0 Ethernet controller: Intel Corporation 82575EB Gigabit Network
> Connection (rev 02)
> 07:00.1 Ethernet controller: Intel Corporation 82575EB Gigabit Network
> Connection (rev 02)
>
> bridge info:
> ===========
>
> ??
>
> Ifconfig:
> ========
>
> ??
>
>
> Interfaces configuration:
> ========================
>
> # The loopback network interface
>
> auto lo
> iface lo inet loopback
>
> # The primary network interface
>
> auto br0
> iface br0 inet static
> address 10.0.0.30
> network 10.0.0.0
> netmask 255.255.255.0
> broadcast 10.0.0.255
> gateway 10.0.0.1
> bridge_ports eth0
> bridge_fd 9
> bridge_hello 2
> bridge_maxage 12
> bridge_stp off
> dns-nameservers 10.0.0.2
> dns-search asd.internal_net.com
>
> auto br1
> iface br1 inet static
> address 192.168.1.30
> network 192.168.1.0
> netmask 255.255.255.0
> broadcast 192.168.1.255
> bridge_ports eth1
> bridge_fd 9
> bridge_hello 2
> bridge_maxage 12
> bridge_stp off
>
> Lxc configuration:
> =================
>
> lxc.utsname = backend1
> lxc.tty = 4
> lxc.network.type = veth
> lxc.network.flags = up
> lxc.network.link = br0
> lxc.network.name = eth0
> lxc.network.mtu = 1500
> lxc.network.ipv4 = 10.0.0.45/24
> lxc.network.type = veth
> lxc.network.flags = up
> lxc.network.link = br1
> lxc.network.name = eth1
> lxc.network.mtu = 1500
> lxc.network.ipv4 = 192.168.1.45/24
> lxc.rootfs = /lxc/backend1/root
> lxc.mount = /lxc/backend1/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
> # /dev/pts/* - pts namespaces are "coming soon"
> lxc.cgroup.devices.allow = c 136:* rwm
> lxc.cgroup.devices.allow = c 5:2 rwm
> # rtc
> lxc.cgroup.devices.allow = c 254:0 rwm
>
>
More information about the lxc-users
mailing list