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

Bug #375937 reported by David Wooldridge
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
kvm (Ubuntu)
Fix Released
Critical
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'>
  <name>DevVM-01</name>
  <uuid>da2cc649-abe7-4606-bb80-329b4f37fb85</uuid>
  <memory>262144</memory>
  <currentMemory>262144</currentMemory>
  <vcpu>1</vcpu>
  <os>
    <type>hvm</type>
    <boot dev='hd'/>
  </os>
  <clock offset='utc'/>
  <on_poweroff>destroy</on_poweroff>
  <on_reboot>restart</on_reboot>
  <on_crash>destroy</on_crash>
  <devices>
    <emulator>/usr/bin/kvm</emulator>
    <disk type='block' device='disk'>
      <source dev='/dev/skx-vg/DevVM-01-disk'/>
      <target dev='hda' bus='scsi'/>
    </disk>
    <disk type='file' device='cdrom'>
      <source file='/root/debian-40r8-amd64-netinst.iso'/>
      <target dev='hdc' bus='scsi'/>
      <readonly/>
    </disk>
    <disk type='block' device='disk'>
      <source dev='/dev/skx-vg/DevVM-01-swap'/>
      <target dev='hdb' bus='scsi'/>
    </disk>
    <interface type='bridge'>
      <mac address='00:16:3e:7b:78:ee'/>
      <source bridge='br0'/>
    </interface>
    <input type='mouse' bus='ps2'/>
    <graphics type='vnc' port='-1' listen='127.0.0.1'/>
  </devices>
</domain>

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

Revision history for this message
John Edwards (john-cornerstonelinux) wrote :

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 127.0.0.1:82
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 127.0.0.1:82 -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.

Revision history for this message
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
Revision history for this message
Soren Hansen (soren) wrote :

This is a kvm bug.

affects: libvirt (Ubuntu) → kvm (Ubuntu)
Revision history for this message
lavicky (tomas-lavicky) wrote :

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

Revision history for this message
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"
      parameter.

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

Changed in kvm (Ubuntu):
status: Confirmed → Fix Released
Revision history for this message
David Wooldridge (zombie) wrote :

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

Cheers David

Revision history for this message
John Edwards (john-cornerstonelinux) wrote :

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

Thanks very much for the speedy fix to the problem.

Revision history for this message
lavicky (tomas-lavicky) wrote :

Everything is OK now, thanks.

Revision history for this message
Tim 'Shaggy' Bielawa (tbielawa) wrote :

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

Revision history for this message
freakalad (freakalad) wrote :
Revision history for this message
freakalad (freakalad) wrote :

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

Revision history for this message
John Edwards (john-cornerstonelinux) wrote :

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  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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