Netboot happens twice (first fail) when using etherboot ROMs
I wonder why with etherboot ROMs, the network boot happens two times (0.12.x), like this:
-----
Starting SeaBIOS (version 0.5.1-20100801_125707-gandalf)
Booting from virtio-net.zrom 5.4.4 (GPL) ether...
ROM segment 0xc900 length 0x8000 reloc 0x00000000 Etherboot 5.4.4 (GPL) http://etherboot.org
Drivers: VIRTIO-NET Images: NBI ELF PXE Exports: PXE
Protocols: DHCP TFTP
Relocating _text from: [00087780,0009f310) to [07ee8470,07f00000) Boot from (N)etwork or (Q)uit?
Probing pci nic...
Probing isa nic...
<sleep>
Boot from (N)etwork or (Q)uit?
Probing pci nic...
[virtio-net]I/O address 0x0000c020, IRQ #11
MAC address 52:54:00:12:34:56
Searching for server (DHCP)....
-----
The boot ROMs supplied with the source works as expected.
What's the difference? Is gpxe behaves differently, or is that a difference in build options?
(This applies to both qemu and qemu-kvm).
Thanks!
/mjt
Quoted 25 lines · Michael Tokarev
I wonder why with etherboot ROMs, the network boot happens two times (0.12.x), like this:
-----
Starting SeaBIOS (version 0.5.1-20100801_125707-gandalf)Booting from virtio-net.zrom 5.4.4 (GPL) ether...
ROM segment0xc900length0x8000reloc0x00000000Etherboot 5.4.4 (GPL) http://etherboot.org
Drivers: VIRTIO-NET Images: NBI ELF PXE Exports: PXE
Protocols: DHCP TFTP
Relocating_textfrom: [00087780,0009f310) to [07ee8470,07f00000) Boot from (N)etwork or (Q)uit?Probing pci nic...
Probing isa nic...
<sleep>
Boot from (N)etwork or (Q)uit?Probing pci nic...
[virtio-net]I/O address0x0000c020, IRQ #11
MAC address 52:54:00:12:34:56
Searching for server (DHCP)....
-----
Quoted 4 lines
The boot ROMs supplied with the source works as expected.
What's the difference? Is gpxe behaves differently, or is that a difference in build options?
Etherboot and gPXE are different codebases. gPXE was forked from Etherboot around 2005 and is now very different. The Etherboot and gPXE behavior cannot always be compared, they are not meant to work the same.
CCed gPXE mailing list.
Stefan
Quoted 7 lines
(This applies to both qemu and qemu-kvm).
Thanks!
/mjt
Quoted 28 lines · Stefan Hajnoczi
Quoted 27 lines · Michael Tokarev
I wonder why with etherboot ROMs, the network boot happens two times (0.12.x), like this:
-----
Starting SeaBIOS (version 0.5.1-20100801_125707-gandalf)Booting from virtio-net.zrom 5.4.4 (GPL) ether...
ROM segment0xc900length0x8000reloc0x00000000Etherboot 5.4.4 (GPL) http://etherboot.org
Drivers: VIRTIO-NET Images: NBI ELF PXE Exports: PXE
Protocols: DHCP TFTP
Relocating_textfrom: [00087780,0009f310) to [07ee8470,07f00000) Boot from (N)etwork or (Q)uit?Probing pci nic...
Probing isa nic...
<sleep>
Boot from (N)etwork or (Q)uit?Probing pci nic...
[virtio-net]I/O address0x0000c020, IRQ #11
MAC address 52:54:00:12:34:56
Searching for server (DHCP)....
-----The boot ROMs supplied with the source works as expected.
Quoted 7 lines
Quoted 2 lines
What's the difference? Is gpxe behaves differently, or is that a difference in build options?
Etherboot and gPXE are different codebases. gPXE was forked from Etherboot around 2005 and is now very different. The Etherboot and gPXE behavior cannot always be compared, they are not meant to work the same.
The BIOS boot protocol allows to continue from next device if an earlier boot method doesn't work. In the real hardware the ROM typically only supports one type of card. Therefore a ROM ought to be loaded and tried from each NIC until one of the attempts successfully boots or there are no more to try.
Anyway, you will need to post more info on your setup: what and how many NIC's, where the ROM binaries came from...
Gianni Tedesco
Quoted 29 lines · Gianni Tedesco
Quoted 28 lines · Stefan Hajnoczi
Quoted 27 lines · Michael Tokarev
I wonder why with etherboot ROMs, the network boot happens two times (0.12.x), like this:
-----
Starting SeaBIOS (version 0.5.1-20100801_125707-gandalf)Booting from virtio-net.zrom 5.4.4 (GPL) ether...
ROM segment0xc900length0x8000reloc0x00000000Etherboot 5.4.4 (GPL) http://etherboot.org
Drivers: VIRTIO-NET Images: NBI ELF PXE Exports: PXE
Protocols: DHCP TFTP
Relocating_textfrom: [00087780,0009f310) to [07ee8470,07f00000) Boot from (N)etwork or (Q)uit?Probing pci nic...
Probing isa nic...
<sleep>
Boot from (N)etwork or (Q)uit?Probing pci nic...
[virtio-net]I/O address0x0000c020, IRQ #11
MAC address 52:54:00:12:34:56
Searching for server (DHCP)....
-----The boot ROMs supplied with the source works as expected.
Quoted 7 lines
Quoted 7 lines
Quoted 2 lines
What's the difference? Is gpxe behaves differently, or is that a difference in build options?
Etherboot and gPXE are different codebases. gPXE was forked from Etherboot around 2005 and is now very different. The Etherboot and gPXE behavior cannot always be compared, they are not meant to work the same.
I never supposed it should work the same. I wondered why etherboot shows somewhat weird behavour.
Quoted 5 lines
The BIOS boot protocol allows to continue from next device if an earlier boot method doesn't work. In the real hardware the ROM typically only supports one type of card. Therefore a ROM ought to be loaded and tried from each NIC until one of the attempts successfully boots or there are no more to try.
That's quite understandable. But I _guess_ it's a bit more than that, like, just from the wild, different paths or busses to the _same_ device (say, PCI and ISA).
Quoted 2 lines
Anyway, you will need to post more info on your setup: what and how many NIC's, where the ROM binaries came from...
There's no info to post.
Standard qemu-kvm (or qemu) 0.12.[45], and standard etherboot boot rom (from rom-o-matic will do too), without any extra options. Only one NIC in a virtual machine, like this:
kvm -net nic,model=rtl8139 -net tap -boot n
(no other options; model does not matter as long as the right pxe ROM can be found).
The boot ROMs are searched in, depending on the qemu/kvm configuration, /usr/share/kvm/. If I put gpxe ones in there, I see only one, successful, attempt to boot. If I put etherboot rom, there will be two attempts, first unsuccessful.
Not that it is a big issue, just... weird, and annoying -- in Debian for example we (re)build boot ROMs during package build instead of using the ones supplied in the source tarball, and currently gpxe isn't packages in debian, but etherboot behaves somewhat erratically (but works in the end), so I wondered what the issue is.
Thanks!
/mjt
Quoted 6 lines · Michael Tokarev
Not that it is a big issue, just... weird, and annoying -- in Debian for example we (re)build boot ROMs during package build instead of using the ones supplied in the source tarball, and currently gpxe isn't packages in debian, but etherboot behaves somewhat erratically (but works in the end), so I wondered what the issue is.
The issue holding back gPXE from Debian is licensing clarification AFAIK. There is nothing there that can't be tackled but the process has stalled unfortunately. It would be great to have gPXE in Debian.
Stefan
Quoted 8 lines · Stefan Hajnoczi
Quoted 6 lines · Michael Tokarev
Not that it is a big issue, just... weird, and annoying -- in Debian for example we (re)build boot ROMs during package build instead of using the ones supplied in the source tarball, and currently gpxe isn't packages in debian, but etherboot behaves somewhat erratically (but works in the end), so I wondered what the issue is.
Quoted 5 lines
The issue holding back gPXE from Debian is licensing clarification AFAIK. There is nothing there that can't be tackled but the process has stalled unfortunately. It would be great to have gPXE in Debian.
Stefan
We definitely have not forgotten about Debian licensing issues, and in a few weeks after Google Summer of Code is over we'll go through http://support.etherboot.org/ and deal with licensing as well as some other issues we haven't gotten to yet.
Thanks for reminding us about this.
/ Marty /