Bug 526777 - Guest PXE booting doesn't work when using ne2k_pci NIC model
Guest PXE booting doesn't work when using ne2k_pci NIC model
Product: Fedora
Classification: Fedora
Component: qemu (Show other bugs)
All Linux
high Severity medium
: ---
: ---
Assigned To: Mark McLoughlin
Fedora Extras Quality Assurance
Depends On:
Blocks: F12VirtBlocker
  Show dependency treegraph
Reported: 2009-10-01 14:08 EDT by Mark McLoughlin
Modified: 2009-10-06 11:23 EDT (History)
10 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2009-10-06 11:23:43 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Mark McLoughlin 2009-10-01 14:08:33 EDT
The 'ne' PXE ROM isn't the correct one for qemu's ne2k_pci NIC. We need an update to:

  1) change 'pxe_link ne2k_pci ne' to 'pxe_link ne2k_pci rtl8029'

  2) make qemu-system-x86 require a version of gpxe-roms-qemu which contains
     the rtl8029; perhaps it makes sense to just change to file based
     requires ...

See below for more info

+++ This bug was initially created as a clone of Bug #526243 +++

Created an attachment (id=363003)
screenshot of guest trying to boot via PXE

Description of problem:
If using the ne2k_pci NIC model on the guest, PXE booting doesn't work with the packaged etherboot ROM image.

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
[root@mf11 ~]# cat /tmp/pxe
<domain type='qemu'>
    <type arch='x86_64' machine='pc'>hvm</type>
    <boot dev='network'/>
  <clock offset='utc'/>
    <interface type='bridge'>
      <mac address='54:52:00:29:2c:5b'/>
      <source bridge='breth0'/>
      <model type='ne2k_pci'/>
    <input type='mouse' bus='ps2'/>
    <graphics type='vnc' port='-1' autoport='yes' listen=''/>

[root@mf11 ~]# virsh define /tmp/pxe
Domain pxe defined from /tmp/pxe

[root@mf11 ~]# virsh start pxe
Domain pxe started

Actual results:
The etherboot ROM doesn't find the expected NIC. See screenshot.

Expected results:
PXE booting works.

Additional info:
The pxe-ne2k_pci ROM image for Qemu must point to rtl8029.zrom, not ne.zrom. ne.zrom is for ISA NICs.

--- Additional comment from ehabkost@redhat.com on 2009-09-29 09:06:35 EDT ---

I noticed this on Fedora 11, but it seems to be present on Fedora 12 and Rawhide, unless the gPXE ne.rom image works for ne2k_pci (which I doubt). From Rawhide qemu.spec:

pxe_link() {
  ln -s ../gpxe/$2.rom %{buildroot}%{_datadir}/%{name}/pxe-$1.bin
pxe_link ne2k_pci ne
Comment 1 Mark McLoughlin 2009-10-05 10:29:04 EDT
Building this for f12:

* Mon Oct  5 2009 Mark McLoughlin <markmc@redhat.com> - 2:0.11.0-4
- Use rtl8029 PXE rom for ne2k_pci, not ne (#526777)
- Also, replace the gpxe-roms-qemu pkg requires with file-based requires
Comment 2 Mark McLoughlin 2009-10-06 04:27:34 EDT
tag request: https://fedorahosted.org/rel-eng/ticket/2350
Comment 3 Mark McLoughlin 2009-10-06 11:23:43 EDT
tagged now

Note You need to log in before you can comment on or make changes to this bug.