libvirt error: qemu: unknowm parameter 'boot' after kvm security update
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=/
error: Failed to start domain DevVM-01
My DevVM-01.xml is:
<domain type='kvm'>
<name>
<uuid>
<memory>
<currentMemor
<vcpu>1</vcpu>
<os>
<type>
<boot dev='hd'/>
</os>
<clock offset='utc'/>
<on_poweroff>
<on_reboot>
<on_crash>
<devices>
<emulator>
<disk type='block' device='disk'>
<source dev='/dev/
<target dev='hda' bus='scsi'/>
</disk>
<disk type='file' device='cdrom'>
<source file='/
<target dev='hdc' bus='scsi'/>
<readonly/>
</disk>
<disk type='block' device='disk'>
<source dev='/dev/
<target dev='hdb' bus='scsi'/>
</disk>
<interface type='bridge'>
<mac address=
<source bridge='br0'/>
</interface>
<input type='mouse' bus='ps2'/>
<graphics type='vnc' port='-1' listen=
</devices>
</domain>
I created this VM using virt-install. My package versions are:
# dpkg -l | awk '/(virt|
kvm 1:62+dfsg-
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
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: home/VM/ qemu/ubuntu804- wiki/root. qcow2,if= ide,boot= on'
$ virsh start ubuntu804-wiki
Connecting to uri: qemu:///system
libvir: QEMU error : QEMU quit during console startup
qemu: unknowm parameter 'boot' in 'file=/
error: Failed to start domain ubuntu804-wiki
Starting directly using kvm: 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 home/VM/ qemu/ubuntu804- wiki/root. qcow2,if= ide,boot= on'
$ sudo /usr/bin/kvm -M pc -m 256 -smp 1 -monitor pty -drive file=/home/
qemu: unknowm parameter 'boot' in 'file=/
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: 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
$ sudo /usr/bin/kvm -M pc -m 256 -smp 1 -monitor pty -drive file=/home/
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.