RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1337510 - Don't try to use a romfile for virtio-net-pci on aarch64
Summary: Don't try to use a romfile for virtio-net-pci on aarch64
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: qemu-kvm-rhev
Version: 7.3
Hardware: aarch64
OS: Linux
medium
medium
Target Milestone: rc
: ---
Assignee: Eric Auger
QA Contact: Chao Yang
URL:
Whiteboard:
: 1460923 (view as bug list)
Depends On:
Blocks: 1173755
TreeView+ depends on / blocked
 
Reported: 2016-05-19 11:13 UTC by Andrea Bolognani
Modified: 2020-03-09 19:09 UTC (History)
20 users (show)

Fixed In Version: qemu-kvm-rhev-2.8.0-5.el7
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-03-09 19:09:59 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Andrea Bolognani 2016-05-19 11:13:27 UTC
When using PCI addresses for the network device on aarch64, the
guest is not able to start with the following error:

  internal error: early end of file from monitor, possible
  problem: 2016-05-11T16:42:28.837452Z abologna-qemu-kvm: -device
  virtio-net-pci,netdev=hostnet0,id=net0,mac=52:54:00:10:e9:80,bus=pci.2,addr=0x1:
  failed to find romfile "efi-virtio.rom"

It's been confirmed upstream[1][2] that the relevant ROM is
missing on purpose, so virt-manager should take care to add

  <rom bar='off'/>

to any interface using PCI addresses when creating aarch64
guests, so that they can boot.


[1] http://lists.nongnu.org/archive/html/qemu-devel/2016-05/msg01659.html
[2] http://lists.nongnu.org/archive/html/qemu-devel/2016-05/msg02083.html

Comment 4 Alex Williamson 2016-05-23 14:54:21 UTC
(In reply to Andrea Bolognani from comment #0)
> When using PCI addresses for the network device on aarch64, the
> guest is not able to start with the following error:
> 
>   internal error: early end of file from monitor, possible
>   problem: 2016-05-11T16:42:28.837452Z abologna-qemu-kvm: -device
>  
> virtio-net-pci,netdev=hostnet0,id=net0,mac=52:54:00:10:e9:80,bus=pci.2,
> addr=0x1:
>   failed to find romfile "efi-virtio.rom"
> 
> It's been confirmed upstream[1][2] that the relevant ROM is
> missing on purpose, so virt-manager should take care to add
> 
>   <rom bar='off'/>
> 
> to any interface using PCI addresses when creating aarch64
> guests, so that they can boot.

Is that necessarily the right solution?  Does virt-manager/libvirt then need a table of implicit ROMs per device so that it can test whether the ROM is present and disable the PCI BAR if not?  It seems much easier to put that logic in QEMU, ie. do not make failure to load an implicit romfile fatal.

Comment 13 Andrea Bolognani 2017-01-10 08:03:47 UTC
Since this is now assigned to qemu-kvm-rhev, a better bug title
is in order. I've taken a stab at it, but feel free to improve
upon it :)

Comment 14 Andrea Bolognani 2017-01-13 14:59:26 UTC
Please note that libvirt 3.0.0, releasing upstream early next
week, will use virtio-pci by default for aarch64/virt guests.

That works seamlessly with upstream packages, but due to this
bug installation will fail on RHEL with:

  ERROR    internal error: qemu unexpectedly closed the
  monitor: 2017-01-13T14:45:56.610081Z qemu-kvm: -device
  virtio-net-pci,netdev=hostnet0,id=net0,mac=52:54:00:63:70:4d,bus=pci.1,addr=0x0:
  failed to find romfile "pxe-virtio.rom"

Until the bug has been fixed, it can be worked around
by adding:

  rom_bar=off

to virt-install's --network option.

Here's a working virt-install command line for reference:

  virt-install \
    --name $guest \
    --location $URL \
    --arch aarch64 \
    --machine virt \
    --ram 2048 \
    --vcpus 4 \
    --accelerate \
    --graphics none \
    --os-variant fedora22 \
    --disk size=5,bus=scsi \
    --controller scsi,model=virtio-scsi \
    --network network=default,model=virtio,rom_bar=off

Comment 15 Miroslav Rezanina 2017-02-20 10:05:40 UTC
Fix included in qemu-kvm-rhev-2.8.0-5.el7

Comment 17 Richard W.M. Jones 2017-06-13 10:09:32 UTC
*** Bug 1460923 has been marked as a duplicate of this bug. ***

Comment 19 Robert Scheck 2017-06-21 19:55:47 UTC
May I kindly ask if this change in qemu-kvm-rhev-2.8.0-5.el7 is specific to
virtio-net-pci? Currently, when not having ipxe-roms-qemu installed, this
leads (when using a common libvirt client) to a qemu-kvm failure, because the
qemu-kvm expects an existing ROM file by default as it seems (and e.g. the
virt-manager doesn't seem to provide a way to tell "rom_bar=off").

Comment 20 Laszlo Ersek 2017-06-21 20:38:35 UTC
(In reply to Robert Scheck from comment #19)
> May I kindly ask if this change in qemu-kvm-rhev-2.8.0-5.el7 is specific to
> virtio-net-pci?

Yes, it is. In downstream commit 8475d69938a1 ("hw/arm/virt: Disable virtio-net-pci option ROM file loading", 2017-02-15) -- which exists only on our internal 2.8-based development branch and has been squashed with other downstream-only changes, on the to-be-released 2.9-based development branch, in commit d682dec685d0 ("Add RHEL 7 machine types", 2014-12-14) --, we set the

  virtio-net-pci.romfile

property to "", for the "virt-rhel7.4.0" machine type of qemu-system-aarch64.

> Currently, when not having ipxe-roms-qemu installed, this

By "this", do you mean "the issure reported in this BZ"?

> leads (when using a common libvirt client) to a qemu-kvm failure, because the
> qemu-kvm expects an existing ROM file by default as it seems (and e.g. the
> virt-manager doesn't seem to provide a way to tell "rom_bar=off").

Can you provide more details please? Normally, "ipxe-roms-qemu" is a runtime / install dependency of "qemu-kvm-rhev". (Well, except on aarch64 (bug 1337496) and s390x (bug 1449939).) Since none of these changes have been released yet, I'm unsure how you run into a situation where qemu-kvm-rhev is installed, ipxe-roms-qemu is not, and then /usr/libexec/qemu-kvm fails to load the iPXE oprom for the NIC. Can you please clarify? Thanks!

Comment 21 Robert Scheck 2017-06-21 21:55:17 UTC
(In reply to Laszlo Ersek from comment #20)
> Can you provide more details please? Normally, "ipxe-roms-qemu" is a runtime
> / install dependency of "qemu-kvm-rhev". (Well, except on aarch64 (bug
> 1337496) and s390x (bug 1449939).) Since none of these changes have been
> released yet, I'm unsure how you run into a situation where qemu-kvm-rhev is
> installed, ipxe-roms-qemu is not, and then /usr/libexec/qemu-kvm fails to
> load the iPXE oprom for the NIC. Can you please clarify? Thanks!

I am working with libvirt upstream outside of the RHEL scope - and I tried
to get rid of the iPXE related ROM files (= ipxe-roms-qemu dependency). When
searching regarding libvirt and rom_bar=off, I found this bug report and had
the hope that it's maybe addressed in a more generic way in libvirt. But I
don't want to hijack this bug report with an issue that's outside of scope.

Comment 22 Laszlo Ersek 2017-06-21 22:26:47 UTC
I understand, thank you.

You might find bug 1425058 relevant. As far as I understand, said bug is exactly about your use case, and it still requires an upstream libvirt patch (i.e., it's not just a backport BZ for RHEL).

Comment 23 Robert Scheck 2017-06-21 22:54:49 UTC
(In reply to Laszlo Ersek from comment #22)
> You might find bug 1425058 relevant.

Wow, thank you very much! And yes, that's exactly what I am looking for;
sorry for the wrong noise on this bug report.

Comment 24 Luiz Capitulino 2020-03-09 19:09:59 UTC
This BZ is being closed as CURRENTRELEASE because it falls
into the following criteria:

o It's an aarch64 virt BZ for RHEL7
o It's on ON_QA or VERIFIED state
o Resolution seems to be in place for some years

If you have objections, please add a comment or re-open the BZ.


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