kvm expect PXE rom to be in /usr/share/qemu

Bug #566832 reported by Bruno Clermont
This bug report is a duplicate of:  Bug #570870: pxe boot doesn't work with kvm. Edit Remove
68
This bug affects 16 people
Affects Status Importance Assigned to Milestone
etherboot (Ubuntu)
Confirmed
High
Unassigned
kvm (Ubuntu)
Invalid
Undecided
Unassigned
qemu-kvm (Ubuntu)
Won't Fix
Medium
Unassigned

Bug Description

Binary package hint: etherboot

in kvm-pxe (tested with version 5.4.4-1ubuntu1)
the rom are located here:

/usr/share/kvm/pxe-e1000.bin
/usr/share/kvm/pxe-ne2k_pci.bin
/usr/share/kvm/pxe-pcnet.bin
/usr/share/kvm/pxe-rtl8139.bin
/usr/share/kvm/pxe-virtio.bin

KVM is looking for those files in /usr/share/qemu:

# cd /
# /usr/bin/kvm -S -M pc-0.12 -cpu qemu32 -enable-kvm -m 256 -smp 1 -name test -uuid 8765045f-966c-64b6-b8ac-eef7890d36fd -chardev socket,id=monitor,path=/var/lib/libvirt/qemu/test.monitor,server,nowait -monitor chardev:monitor -boot nc -drive file=/var/lib/libvirt/images/test.img,if=virtio,index=0,boot=on,format=raw -net nic,macaddr=52:54:00:36:8f:62,vlan=0,model=virtio,name=e1000.0 -net tap,fd=46,vlan=0,name=tap.0 -chardev pty,id=serial0 -serial chardev:serial0 -parallel none -usb -vnc 127.0.0.1:0 -vga cirrus
char device redirected to /dev/pts/2
TUNGETIFF ioctl() failed: Bad file descriptor
TUNSETOFFLOAD ioctl() failed: Bad file descriptor
pci_add_option_rom: failed to find romfile "pxe-virtio.bin"

last line.
if I
# ln -s /usr/share/kvm/pxe-virtio.bin /usr/share/qemu/pxe-virtio.bin
# /usr/bin/kvm -S -M pc-0.12 -cpu qemu32 -enable-kvm -m 256 -smp 1 -name test -uuid 8765045f-966c-64b6-b8ac-eef7890d36fd -chardev socket,id=monitor,path=/var/lib/libvirt/qemu/test.monitor,server,nowait -monitor chardev:monitor -boot nc -drive file=/var/lib/libvirt/images/test.img,if=virtio,index=0,boot=on,format=raw -net nic,macaddr=52:54:00:36:8f:62,vlan=0,model=virtio,name=e1000.0 -net tap,fd=46,vlan=0,name=tap.0 -chardev pty,id=serial0 -serial chardev:serial0 -parallel none -usb -vnc 127.0.0.1:0 -vga cirrus
char device redirected to /dev/pts/2
TUNGETIFF ioctl() failed: Bad file descriptor
TUNSETOFFLOAD ioctl() failed: Bad file descriptor

it work.

Revision history for this message
ubulaunchpad.vi.gandispam@spamgourmet.com (ubulaunchpad-vi-gandispam) wrote :

Same problem :

pci_add_option_rom: failed to find romfile "pxe-rtl8139.bin"

or

pci_add_option_rom: failed to find romfile "pxe-virtio.bin"

Kvm worked with Ubuntu 9.10, but not with 10.04 beta.

Suggestion to make a link doesn't work.

Hi.

Revision history for this message
Bartosz Woronicz (mastier1) wrote :

the same, temporarily you can download the rom and put in the right directory
http://trac.kju-app.org/browser/trunk/qemu/qemu/pc-bios/pxe-rtl8139.bin?rev=106

Revision history for this message
Craig Ringer (ringerc) wrote :

This is arguably a kvm bug, in that kvm should check /usr/share/kvm instead of or as well as /usr/share/qemu , so I've added kvm to the affects list.

I can confirm this issue in Lucid as of five minutes ago:

$ apt-cache policy kvm kvm-pxe
kvm:
  Installed: 1:84+dfsg-0ubuntu16+0.12.3+noroms+0ubuntu9
  Candidate: 1:84+dfsg-0ubuntu16+0.12.3+noroms+0ubuntu9
  Version table:
 *** 1:84+dfsg-0ubuntu16+0.12.3+noroms+0ubuntu9 0
        500 http://ftp.iinet.net.au/pub/ubuntu/ lucid/main Packages
        500 http://au.archive.ubuntu.com/ubuntu/ lucid/main Packages
        100 /var/lib/dpkg/status
kvm-pxe:
  Installed: 5.4.4-1ubuntu1
  Candidate: 5.4.4-1ubuntu1
  Version table:
 *** 5.4.4-1ubuntu1 0
        500 http://ftp.iinet.net.au/pub/ubuntu/ lucid/universe Packages
        500 http://au.archive.ubuntu.com/ubuntu/ lucid/universe Packages
        100 /var/lib/dpkg/status

$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 10.04 LTS
Release: 10.04
Codename: lucid

Revision history for this message
Thierry Carrez (ttx) wrote :

Agreed, this should either be fixed in etherboot or qemu-kvm.

Changed in qemu-kvm (Ubuntu):
importance: Undecided → Medium
status: New → Confirmed
Changed in etherboot (Ubuntu):
importance: Undecided → High
status: New → Confirmed
Changed in kvm (Ubuntu):
status: New → Invalid
Revision history for this message
Dustin Kirkland  (kirkland) wrote :

qemu-kvm already tries to fix this by symlinking /usr/share/kvm -> /usr/share/qemu. However, that doesn't help if kvm-pxe gets installed first.

Personally, I think solving this in kvm-pxe (etherboot) is better. And I'm happy to update my patch to create symlinks instead, if that's preferred.

Changed in qemu-kvm (Ubuntu):
status: Confirmed → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.