* problem with pxe boot off private bridge
@ 2008-10-16 1:26 Stephen Dennis
2008-10-16 15:13 ` Steve Ofsthun
0 siblings, 1 reply; 2+ messages in thread
From: Stephen Dennis @ 2008-10-16 1:26 UTC (permalink / raw)
To: kvm
Hello
My aim is to have a VM with 2 network interfaces, one bridged to the outside
world and the other bridged on a private network. From the private interface
this VM runs DHCP and PXE services to start and install VM's which have one
network interface tapped on the private bridge.
All machines are centos or ubuntu guests.
I confirm that simply starting a linux guest that used the private bridge to
get a dhcp address works fine.
However, using a pxe capable boot rom, dhcp fails. I have confirmed the
dhcp request and offer appear on both tap interfaces and the intervening
bridge interface.
I also confirm that the pxe capable boot rom works if its using the bridge
to the external network.
I have tried all the pxe boot roms available with the exact same result.
This could be a networking configuration problem or perhaps a bug somewhere
in the nic emulation or boot rom.
Any ideas for further diagnostics or solutions appreciated.
More config information below.
Thanks
Stephen
kvm -no-reboot -m 1000 -boot c \
-hda ux-head.img \
-net nic,vlan=0,macaddr=DE:AD:BE:EF:7d:e4 -net
tap,vlan=0,ifname=tap0 \
-net nic,vlan=1,macaddr=DE:AD:BE:EF:7d:e5 -net tap,vlan=1,ifname=tap1
kvm -no-reboot -m 1000 -boot n \
-hda ux-node-1.img \
-net nic,vlan=1,macaddr=DE:AD:BE:EF:7d:e6,model=ne2k_pci \
-net tap,vlan=1,ifname=tap2
QEMU PC emulator version 0.9.1 (kvm-62), Copyright (c) 2003-2008 Fabrice
Bellard
On Ubuntu 8.04
Linux x2 2.6.24-19-generic #1 SMP Wed Aug 20 17:53:40 UTC 2008 x86_64
GNU/Linux
br0 Link encap:Ethernet HWaddr 00:22:15:1e:7d:e4
inet addr:172.16.198.251 Bcast:172.16.198.255 Mask:255.255.255.0
inet6 addr: fe80::222:15ff:fe1e:7de4/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:61406 errors:0 dropped:0 overruns:0 frame:0
TX packets:373150 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:3677008 (3.5 MB) TX bytes:536494463 (511.6 MB)
br1 Link encap:Ethernet HWaddr 00:ff:1e:0d:da:5d
inet6 addr: fe80::2ff:1eff:fe0d:da5d/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:110 errors:0 dropped:0 overruns:0 frame:0
TX packets:493 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:27599 (26.9 KB) TX bytes:119935 (117.1 KB)
br1:avahi Link encap:Ethernet HWaddr 00:ff:1e:0d:da:5d
inet addr:169.254.6.156 Bcast:169.254.255.255 Mask:255.255.0.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
eth0 Link encap:Ethernet HWaddr 00:22:15:1e:7d:e4
inet6 addr: fe80::222:15ff:fe1e:7de4/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:61512 errors:0 dropped:0 overruns:0 frame:0
TX packets:373396 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:4803323 (4.5 MB) TX bytes:538013422 (513.0 MB)
Interrupt:16
eth1 Link encap:Ethernet HWaddr 00:22:15:1e:7e:d4
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)
Interrupt:17
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:39299 errors:0 dropped:0 overruns:0 frame:0
TX packets:39299 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:512377716 (488.6 MB) TX bytes:512377716 (488.6 MB)
tap0 Link encap:Ethernet HWaddr 00:ff:82:b4:0a:dc
inet6 addr: fe80::2ff:82ff:feb4:adc/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:249 errors:0 dropped:0 overruns:0 frame:0
TX packets:223 errors:0 dropped:289 overruns:0 carrier:0
collisions:0 txqueuelen:500
RX bytes:23823 (23.2 KB) TX bytes:33914 (33.1 KB)
tap1 Link encap:Ethernet HWaddr 00:ff:77:d3:db:4b
inet6 addr: fe80::2ff:77ff:fed3:db4b/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:90 errors:0 dropped:0 overruns:0 frame:0
TX packets:80 errors:0 dropped:436 overruns:0 carrier:0
collisions:0 txqueuelen:500
RX bytes:17339 (16.9 KB) TX bytes:23032 (22.4 KB)
tap2 Link encap:Ethernet HWaddr 00:ff:96:5e:22:0f
inet6 addr: fe80::2ff:96ff:fe5e:220f/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:20 errors:0 dropped:0 overruns:0 frame:0
TX packets:88 errors:0 dropped:498 overruns:0 carrier:0
collisions:0 txqueuelen:500
RX bytes:11800 (11.5 KB) TX bytes:18657 (18.2 KB)
tap3 Link encap:Ethernet HWaddr 00:ff:1e:0d:da:5d
inet6 addr: fe80::2ff:1eff:fe0d:da5d/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:606 overruns:0 carrier:0
collisions:0 txqueuelen:500
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
tap4 Link encap:Ethernet HWaddr 00:ff:6b:29:40:c8
inet6 addr: fe80::2ff:6bff:fe29:40c8/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:606 overruns:0 carrier:0
collisions:0 txqueuelen:500
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
tap5 Link encap:Ethernet HWaddr 00:ff:83:d9:3d:11
inet6 addr: fe80::2ff:83ff:fed9:3d11/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:606 overruns:0 carrier:0
collisions:0 txqueuelen:500
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
vnet0 Link encap:Ethernet HWaddr ce:89:a9:0a:f1:c3
inet addr:192.168.122.1 Bcast:192.168.122.255 Mask:255.255.255.0
inet6 addr: fe80::cc89:a9ff:fe0a:f1c3/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:66 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:7454 (7.2 KB)
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: problem with pxe boot off private bridge
2008-10-16 1:26 problem with pxe boot off private bridge Stephen Dennis
@ 2008-10-16 15:13 ` Steve Ofsthun
0 siblings, 0 replies; 2+ messages in thread
From: Steve Ofsthun @ 2008-10-16 15:13 UTC (permalink / raw)
To: sd; +Cc: kvm
Stephen Dennis wrote:
> Hello
>
> My aim is to have a VM with 2 network interfaces, one bridged to the outside
> world and the other bridged on a private network. From the private interface
> this VM runs DHCP and PXE services to start and install VM's which have one
> network interface tapped on the private bridge.
>
> All machines are centos or ubuntu guests.
>
> I confirm that simply starting a linux guest that used the private bridge to
> get a dhcp address works fine.
>
> However, using a pxe capable boot rom, dhcp fails. I have confirmed the
> dhcp request and offer appear on both tap interfaces and the intervening
> bridge interface.
Make sure no checksum offload optimizations are causing trouble. We had a similar problem on Xen where checksums were only generated when packets left through the real NIC. Check the PXE server setup, to make sure the DHCP/PXE packets are being checksummed properly on the private network.
Steve
> I also confirm that the pxe capable boot rom works if its using the bridge
> to the external network.
>
> I have tried all the pxe boot roms available with the exact same result.
>
> This could be a networking configuration problem or perhaps a bug somewhere
> in the nic emulation or boot rom.
>
> Any ideas for further diagnostics or solutions appreciated.
>
> More config information below.
>
> Thanks
> Stephen
>
> kvm -no-reboot -m 1000 -boot c \
> -hda ux-head.img \
> -net nic,vlan=0,macaddr=DE:AD:BE:EF:7d:e4 -net
> tap,vlan=0,ifname=tap0 \
> -net nic,vlan=1,macaddr=DE:AD:BE:EF:7d:e5 -net tap,vlan=1,ifname=tap1
>
> kvm -no-reboot -m 1000 -boot n \
> -hda ux-node-1.img \
> -net nic,vlan=1,macaddr=DE:AD:BE:EF:7d:e6,model=ne2k_pci \
> -net tap,vlan=1,ifname=tap2
>
> QEMU PC emulator version 0.9.1 (kvm-62), Copyright (c) 2003-2008 Fabrice
> Bellard
> On Ubuntu 8.04
> Linux x2 2.6.24-19-generic #1 SMP Wed Aug 20 17:53:40 UTC 2008 x86_64
> GNU/Linux
>
> br0 Link encap:Ethernet HWaddr 00:22:15:1e:7d:e4
> inet addr:172.16.198.251 Bcast:172.16.198.255 Mask:255.255.255.0
> inet6 addr: fe80::222:15ff:fe1e:7de4/64 Scope:Link
> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
> RX packets:61406 errors:0 dropped:0 overruns:0 frame:0
> TX packets:373150 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:0
> RX bytes:3677008 (3.5 MB) TX bytes:536494463 (511.6 MB)
>
> br1 Link encap:Ethernet HWaddr 00:ff:1e:0d:da:5d
> inet6 addr: fe80::2ff:1eff:fe0d:da5d/64 Scope:Link
> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
> RX packets:110 errors:0 dropped:0 overruns:0 frame:0
> TX packets:493 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:0
> RX bytes:27599 (26.9 KB) TX bytes:119935 (117.1 KB)
>
> br1:avahi Link encap:Ethernet HWaddr 00:ff:1e:0d:da:5d
> inet addr:169.254.6.156 Bcast:169.254.255.255 Mask:255.255.0.0
> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
>
> eth0 Link encap:Ethernet HWaddr 00:22:15:1e:7d:e4
> inet6 addr: fe80::222:15ff:fe1e:7de4/64 Scope:Link
> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
> RX packets:61512 errors:0 dropped:0 overruns:0 frame:0
> TX packets:373396 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:1000
> RX bytes:4803323 (4.5 MB) TX bytes:538013422 (513.0 MB)
> Interrupt:16
>
> eth1 Link encap:Ethernet HWaddr 00:22:15:1e:7e:d4
> 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)
> Interrupt:17
>
> 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:39299 errors:0 dropped:0 overruns:0 frame:0
> TX packets:39299 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:0
> RX bytes:512377716 (488.6 MB) TX bytes:512377716 (488.6 MB)
>
> tap0 Link encap:Ethernet HWaddr 00:ff:82:b4:0a:dc
> inet6 addr: fe80::2ff:82ff:feb4:adc/64 Scope:Link
> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
> RX packets:249 errors:0 dropped:0 overruns:0 frame:0
> TX packets:223 errors:0 dropped:289 overruns:0 carrier:0
> collisions:0 txqueuelen:500
> RX bytes:23823 (23.2 KB) TX bytes:33914 (33.1 KB)
>
> tap1 Link encap:Ethernet HWaddr 00:ff:77:d3:db:4b
> inet6 addr: fe80::2ff:77ff:fed3:db4b/64 Scope:Link
> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
> RX packets:90 errors:0 dropped:0 overruns:0 frame:0
> TX packets:80 errors:0 dropped:436 overruns:0 carrier:0
> collisions:0 txqueuelen:500
> RX bytes:17339 (16.9 KB) TX bytes:23032 (22.4 KB)
>
> tap2 Link encap:Ethernet HWaddr 00:ff:96:5e:22:0f
> inet6 addr: fe80::2ff:96ff:fe5e:220f/64 Scope:Link
> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
> RX packets:20 errors:0 dropped:0 overruns:0 frame:0
> TX packets:88 errors:0 dropped:498 overruns:0 carrier:0
> collisions:0 txqueuelen:500
> RX bytes:11800 (11.5 KB) TX bytes:18657 (18.2 KB)
>
> tap3 Link encap:Ethernet HWaddr 00:ff:1e:0d:da:5d
> inet6 addr: fe80::2ff:1eff:fe0d:da5d/64 Scope:Link
> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
> RX packets:0 errors:0 dropped:0 overruns:0 frame:0
> TX packets:0 errors:0 dropped:606 overruns:0 carrier:0
> collisions:0 txqueuelen:500
> RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
>
> tap4 Link encap:Ethernet HWaddr 00:ff:6b:29:40:c8
> inet6 addr: fe80::2ff:6bff:fe29:40c8/64 Scope:Link
> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
> RX packets:0 errors:0 dropped:0 overruns:0 frame:0
> TX packets:0 errors:0 dropped:606 overruns:0 carrier:0
> collisions:0 txqueuelen:500
> RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
>
> tap5 Link encap:Ethernet HWaddr 00:ff:83:d9:3d:11
> inet6 addr: fe80::2ff:83ff:fed9:3d11/64 Scope:Link
> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
> RX packets:0 errors:0 dropped:0 overruns:0 frame:0
> TX packets:0 errors:0 dropped:606 overruns:0 carrier:0
> collisions:0 txqueuelen:500
> RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
>
> vnet0 Link encap:Ethernet HWaddr ce:89:a9:0a:f1:c3
> inet addr:192.168.122.1 Bcast:192.168.122.255 Mask:255.255.255.0
> inet6 addr: fe80::cc89:a9ff:fe0a:f1c3/64 Scope:Link
> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
> RX packets:0 errors:0 dropped:0 overruns:0 frame:0
> TX packets:66 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:0
> RX bytes:0 (0.0 B) TX bytes:7454 (7.2 KB)
>
>
> --
> To unsubscribe from this list: send the line "unsubscribe kvm" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-10-16 15:28 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-16 1:26 problem with pxe boot off private bridge Stephen Dennis
2008-10-16 15:13 ` Steve Ofsthun
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).