libvirt error: qemu: unknowm parameter 'boot' after kvm security update

Bug #375937 reported by David Wooldridge on 2009-05-13
This bug affects 3 people
Affects Status Importance Assigned to Milestone
kvm (Ubuntu)
Marc Deslauriers

Bug Description

I have been running KVM on hardy for a few weeks with no problems, but after today's security update of KVM ([USN-776-1]) I cannot start any VM's:

# virsh start DevVM-01
Connecting to uri: qemu:///system
libvir: QEMU error : QEMU quit during console startup
qemu: unknowm parameter 'boot' in 'file=/dev/skx-vg/DevVM-01-disk,if=scsi,boot=on'
error: Failed to start domain DevVM-01

My DevVM-01.xml is:

<domain type='kvm'>
    <boot dev='hd'/>
  <clock offset='utc'/>
    <disk type='block' device='disk'>
      <source dev='/dev/skx-vg/DevVM-01-disk'/>
      <target dev='hda' bus='scsi'/>
    <disk type='file' device='cdrom'>
      <source file='/root/debian-40r8-amd64-netinst.iso'/>
      <target dev='hdc' bus='scsi'/>
    <disk type='block' device='disk'>
      <source dev='/dev/skx-vg/DevVM-01-swap'/>
      <target dev='hdb' bus='scsi'/>
    <interface type='bridge'>
      <mac address='00:16:3e:7b:78:ee'/>
      <source bridge='br0'/>
    <input type='mouse' bus='ps2'/>
    <graphics type='vnc' port='-1' listen=''/>

I created this VM using virt-install. My package versions are:

# dpkg -l | awk '/(virt|qemu|kvm)/{print $2,$3}'
kvm 1:62+dfsg-0ubuntu8.1
libvirt-bin 0.4.0-2ubuntu8.1
libvirt0 0.4.0-2ubuntu8.1
python-libvirt 0.4.0-2ubuntu8.1
python-virtinst 0.300.2-0ubuntu6
qemu 0.9.1-1ubuntu1

Running on Hardy:

# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 8.04.2
Release: 8.04
Codename: hardy

Cheers David

Related branches

CVE References

Also a problem for me on both AMD X2 and Intel Core2 CPU machines after I upgraded kvm to 1:62+dfsg-0ubuntu8.1

Starting via libvirt:
$ virsh start ubuntu804-wiki
Connecting to uri: qemu:///system
libvir: QEMU error : QEMU quit during console startup
qemu: unknowm parameter 'boot' in 'file=/home/VM/qemu/ubuntu804-wiki/root.qcow2,if=ide,boot=on'
error: Failed to start domain ubuntu804-wiki

Starting directly using kvm:
$ sudo /usr/bin/kvm -M pc -m 256 -smp 1 -monitor pty -drive file=/home/VM/qemu/ubuntu804-wiki/root.qcow2,if=ide,boot=on -net nic,macaddr=00:16:36:1a:ee:82,vlan=0 -net tap,fd=7,script=,vlan=0 -usb -vnc
qemu: unknowm parameter 'boot' in 'file=/home/VM/qemu/ubuntu804-wiki/root.qcow2,if=ide,boot=on'

I also tried removing and reloading the kvm and kvm_intel module.

After reading the kvm and kvm-qemu manpages I noticed that there was a new "-boot" option.

So I removed the "boot=on" option and added "-boot c" to boot from the virtual hard drive:
$ sudo /usr/bin/kvm -M pc -m 256 -smp 1 -monitor pty -drive file=/home/VM/qemu/ubuntu804-wiki/root.qcow2,if=ide -net nic,macaddr=00:16:36:1a:ee:82,vlan=0 -net tap,fd=7,script=,vlan=0 -usb -vnc -boot c
char device redirected to /dev/pts/0

The machine starts up, and is available via VNC but not the network. May be the networking options have changed as well?

The "--help" output from kvm still lists "boot=on" as a valid option, which is no longer true.

Marc Deslauriers (mdeslaur) wrote :

An update to fix this regression is now being built and will come out later today.

Changed in libvirt (Ubuntu):
assignee: nobody → Marc Deslauriers (mdeslaur)
importance: Undecided → Critical
status: New → Confirmed
Soren Hansen (soren) wrote :

This is a kvm bug.

affects: libvirt (Ubuntu) → kvm (Ubuntu)
lavicky (tomas-lavicky) wrote :

Same problem after kvm update. I'm not able to start any guest since I rebooted my host server.

Launchpad Janitor (janitor) wrote :

This bug was fixed in the package kvm - 1:62+dfsg-0ubuntu8.2

kvm (1:62+dfsg-0ubuntu8.2) hardy-security; urgency=low

  * REGRESSION: "boot" parameter was removed by security update (LP: #375937)
    - debian/patches/CVE-2008-2004.patch: updated to reintroduce "boot"

 -- Marc Deslauriers <email address hidden> Wed, 13 May 2009 08:54:17 -0400

Changed in kvm (Ubuntu):
status: Confirmed → Fix Released
David Wooldridge (zombie) wrote :

Thanks very much for the quick response. This update has resolved the problem.

Cheers David

I can confirm the new build works on AMD X2 and Intel Core2.

Thanks very much for the speedy fix to the problem.

lavicky (tomas-lavicky) wrote :

Everything is OK now, thanks.

Tim 'Shaggy' Bielawa (tbielawa) wrote :

I've also confirmed this on hardy heron. Thanks!

freakalad (freakalad) wrote :

KVM/libvirt update is still an issue (see other posts)

freakalad, bug 375825 is a different bug about problems with update-rc.d.

It is not related to this problem with the "boot" parameter.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers