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

Bug #634756 reported by Loïc Minier
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
qemu-kvm (Ubuntu)
Invalid
Medium
Unassigned

Bug Description

Hi

On a standard Ubuntu Server installation which I did around karmic and upgraded to lucid, I'm running lucid vms created with ubuntu-vm-builder.

I've noticed that on startup, /var/log/libvirt/qemu/vm-name.log says:
LC_ALL=C PATH=/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/sbin:/sbin:/bin QEMU_AUDIO_DRV=none /usr/bin/kvm -S -M pc-0.12 -enable-kvm -m 1024 -smp 2 -name vm-name -uuid eb33b11c-xxxx-xxxxxxxxxxxxxxx -chardev socket,id=monitor,path=/var/lib/libvirt/qemu/vm-name.monitor,server,nowait -monitor chardev:monitor -boot c -drive file=/somepath/vms/vm-name/tmpHbobjA.qcow2,if=ide,index=0,boot=on -net nic,macaddr=52:54:xxxxx,vlan=0,model=virtio,name=virtio.0 -net tap,fd=41,vlan=0,name=tap.0 -serial none -parallel none -usb -vnc 127.0.0.1:0 -vga cirrus
pci_add_option_rom: failed to find romfile "pxe-virtio.bin"

the latter warning worries me, it suggests the virtio might not be used by default

I created the vm with:
sudo ubuntu-vm-builder kvm lucid \
        -d vm-name \
        --debug -v \
        -m 1024 --cpus=2 \
        --rootsize=16384 \
        --addpkg=zsh --addpkg=vim --addpkg=openssh-server \
        --hostname=vm-name \
        --mirror http://somemirror/ubuntu \
        --lang=en_US.UTF-8 \
        --timezone=Europe/Paris \
        --user=lool --name 'Loïc Minier' --pass "somepassword" \
        --ssh-key=`echo ~/.ssh/authorized_keys` --ssh-user-key=`echo ~/.ssh/authorized_keys` \
        --libvirt=qemu:///system --network=default

Cheers,

ProblemType: Bug
DistroRelease: Ubuntu 10.04
Package: libvirt-bin 0.7.5-5ubuntu27.3
ProcVersionSignature: Ubuntu 2.6.32-25.43-server 2.6.32.21+drm33.7
Uname: Linux 2.6.32-25-server x86_64
Architecture: amd64
Date: Fri Sep 10 10:24:14 2010
ProcEnviron:
 PATH=(custom, user)
 LANG=en_US.UTF-8
 SHELL=/bin/zsh
SourcePackage: libvirt

Revision history for this message
Loïc Minier (lool) wrote :
Revision history for this message
Chuck Short (zulcss) wrote :

Ive seen this before as well.

chuck

affects: libvirt (Ubuntu) → qemu-kvm (Ubuntu)
Changed in qemu-kvm (Ubuntu):
importance: Undecided → Medium
status: New → Confirmed
Revision history for this message
Serge Hallyn (serge-hallyn) wrote :

You can get rid of this message by doing

  apt-get install kvm-pxe

Changed in qemu-kvm (Ubuntu):
status: Confirmed → Invalid
Revision history for this message
Loïc Minier (lool) wrote :

May I suggest that we make this pulled by some task or by some package? Currently, the only way to get it is via testdrive-common.

or perhaps the vms created by ubuntu-vm-builder should not rely on this by defaut

Either way, this should work OOTB for ubuntu-vm-builder and/or qemu-kvm users

Changed in qemu-kvm (Ubuntu):
status: Invalid → New
Revision history for this message
Loïc Minier (lool) wrote :

Note that kvm-pxe is in universe

Revision history for this message
Serge Hallyn (serge-hallyn) wrote :

The functionality you're not getting OOTB is pxe-booting over virtio
NIC. Is that what you need? If you are only worried about booting from
virtio disk, you're getting that. So the message is annoying, but not
harmful.

If OTOH you think we should be providing pxe-booting over virtio NIC
out of the box with qemu-kvm, then yeah something would need to be done,
and I'm not sure what.

(So please clarify whether pxe-boot over virtio is what you feel should be
supported without a separate package in universe)

Changed in qemu-kvm (Ubuntu):
status: New → Incomplete
Revision history for this message
Dustin Kirkland  (kirkland) wrote :

Right, so the message is a benign warning:
  pci_add_option_rom: failed to find romfile "pxe-virtio.bin"

If you're not trying to boot your VM over pxe-virtio, then you can safely ignore the message.

If you want to boot over pxe-virtio, or you want to silence the error message, simply:
  sudo apt-get install kvm-pxe

This could be solved by either:
 a) MIR'ing kvm-pxe and adding a qemu-kvm-common recommends on kvm-pxe
 b) patch qemu-kvm to silently ignore this condition

I think (a) would be desirable for Natty. Doubt this would make Maverick, though.

Revision history for this message
Loïc Minier (lool) wrote :

Ok; that's fine; I thought the warning was a symptom of either a broken setting in the generated libvirt config or missing dependencies; turns out it's just optional functionality (pxe booting) and be ignored, I'm fine with that

Thanks for checking this through with me!

Changed in qemu-kvm (Ubuntu):
status: Incomplete → Invalid
Revision history for this message
Dustin Kirkland  (kirkland) wrote : Re: [Bug 634756] Re: pci_add_option_rom: failed to find romfile "pxe-virtio.bin"

Sure, no problem, Loic.

I do think an MIR of kvm-pxe would be a good thing, though.

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.