Provide a way to disable ROM loading completely for a device

Solution Verified - Updated -

Issue

  • libvirt: Provide a way to disable ROM loading completely for a device
  • Currently it's not possible to use virsh attach-interface on rombar-less installations. QEMU errors out with, e.g.
 error: Failed to attach interface
 error: internal error: unable to execute QEMU command 'device_add': failed to find romfile "pxe-virtio.rom"
  • Attempting virsh attach-device instead with the following xml
 <interface type='bridge'>
   <source bridge='br0'/>
   <model type='virtio'/>
   <rom bar='off'/>
 </interface>
  • fails with
 error: Failed to attach device from interface.xml
 error: internal error: unable to execute QEMU command 'device_add': Hot-plugged device without ROM bar can't have an option ROM

Environment

  • Red Hat Enterprise Linux 7.3

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content