cannot kill kvm process that uses 'tap'
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
linux (Ubuntu) |
Fix Released
|
High
|
Unassigned | ||
qemu-kvm (Ubuntu) |
Invalid
|
High
|
Serge Hallyn |
Bug Description
Binary package hint: qemu-kvm
On up to date Natty and kernel 2.6.37-7.19-generic I cannot kill kvm processes when they are started with 'tap', even with 'kill -9'. This has been true for at least the last several Natty kernels. If I reboot into a maverick kernel, all is well. I first noticed this when I tried to stop a VM in libvirt. The qemu-kvm command line:
/usr/bin/kvm -S -M pc-0.12 -enable-kvm -m 384 -smp 1,sockets=
Trying to shutdown the VM results in the following in dmesg:
[39656.368496] unregister_
Trying to find a reduced test case, I tried:
$ /usr/bin/kvm -M pc -m 256 -no-acpi -drive file=./disk0.qcow2 -net nic,vlan=0 -net tap,vlan=
This resulted in a VM that would not start (it uses /etc/qemu-ifup since I did not specify a 'script=' parameter). This kvm process is unkillable with kill -9, but nothing in dmesg.
Then I tried the following:
/usr/bin/kvm -M pc -m 256 -no-acpi -drive file=./disk0.qcow2 -net nic,vlan=0 -net tap,vlan=
This resulted in a VM that would start, but the kvm process is unkillable with kill -9, but nothing in dmesg.
ProblemType: Bug
DistroRelease: Ubuntu 11.04
Package: qemu-kvm 0.13.0+
ProcVersionSign
Uname: Linux 2.6.37-7-generic x86_64
Architecture: amd64
Date: Mon Dec 6 08:30:39 2010
EcryptfsInUse: Yes
InstallationMedia: Ubuntu 10.04 LTS "Lucid Lynx" - Release amd64 (20100427.1)
KvmCmdLine:
UID PID PPID C SZ RSS PSR STIME TTY TIME CMD
root 4536 1 0 29363 3340 2 08:18 ? 00:00:00 /usr/bin/kvm -M pc -m 256 -no-acpi -drive file=./disk0.qcow2 -net nic,vlan=0 -net tap,vlan=
root 4633 1 7 108952 253696 1 08:19 ? 00:00:51 /usr/bin/kvm -M pc -m 256 -no-acpi -drive file=./disk0.qcow2 -net nic,vlan=0 -net tap,vlan=
MachineType: LENOVO 5129CTO
ProcEnviron:
PATH=(custom, user)
LANG=en_US.utf8
SHELL=/bin/bash
ProcKernelCmdLine: BOOT_IMAGE=
SourcePackage: qemu-kvm
dmi.bios.date: 04/20/2010
dmi.bios.vendor: LENOVO
dmi.bios.version: 6QET44WW (1.14 )
dmi.board.name: 5129CTO
dmi.board.vendor: LENOVO
dmi.board.version: Not Available
dmi.chassis.
dmi.chassis.type: 10
dmi.chassis.vendor: LENOVO
dmi.chassis.
dmi.modalias: dmi:bvnLENOVO:
dmi.product.name: 5129CTO
dmi.product.
dmi.sys.vendor: LENOVO
tags: | added: kernel-series-unknown |
Adding a linux task since this seems like a kernel problem. Please invalidate qemu-kvm or linux as necessary.