libvirt sometimes hangs when using pulseaudio
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
apparmor (Ubuntu) |
Invalid
|
Undecided
|
Unassigned | ||
Karmic |
Invalid
|
Undecided
|
Unassigned | ||
Lucid |
Invalid
|
Undecided
|
Unassigned | ||
libvirt (Ubuntu) |
Fix Released
|
Medium
|
Unassigned | ||
Karmic |
Won't Fix
|
Medium
|
Unassigned | ||
Lucid |
Fix Released
|
Medium
|
Unassigned | ||
pulseaudio (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Karmic |
Won't Fix
|
High
|
Unassigned | ||
Lucid |
Fix Released
|
Undecided
|
Unassigned | ||
qemu-kvm (Ubuntu) |
Invalid
|
High
|
Unassigned | ||
Karmic |
Won't Fix
|
High
|
Unassigned | ||
Lucid |
Invalid
|
High
|
Unassigned | ||
virt-manager (Ubuntu) |
Fix Released
|
High
|
Unassigned | ||
Karmic |
Won't Fix
|
High
|
Unassigned | ||
Lucid |
Fix Released
|
High
|
Unassigned |
Bug Description
Occasionally, a virtual machine will hang during boot when started from virt-manager. This seems to be racy or related to some interaction with pulseaudio. I saw this when using an 8.10 and 9.10 desktop livecd. During the boot process, the VM would hang and all of libvirt would be unresponsive (ie 'virsh list' would also hang). This happens here maybe 1 out of 10 times.
Until bug #453329 is fixed, you will have to disable apparmor for libvirt with:
$ sudo apparmor_parser -R /etc/apparmor.
$ sudo /etc/init.
This is because that bug masks the problem by denying access to pulseaudio, and therefore audio is not available in the guest and the boot proceeds like normal. I will try to obtain an 'strace -p' of the kvm process when I see another hang. I have witnessed 4 hangs in maybe 20 boots (3 in a row, a couple successful boots and 1 outlier).
ProblemType: Bug
Architecture: amd64
Date: Fri Oct 16 15:07:59 2009
DistroRelease: Ubuntu 9.10
LiveMediaBuild: Ubuntu 9.04 "Jaunty Jackalope" - Release amd64 (20090420.1)
Package: libvirt-bin 0.7.0-1ubuntu11
ProcEnviron:
PATH=(custom, user)
LANG=en_US.UTF-8
SHELL=/bin/bash
ProcVersionSign
SourcePackage: libvirt
Uname: Linux 2.6.31-14-generic x86_64
tags: | added: regression-potential |
Changed in libvirt (Ubuntu Karmic): | |
status: | Confirmed → Triaged |
Changed in libvirt (Ubuntu): | |
importance: | Critical → Medium |
Changed in qemu-kvm (Ubuntu Karmic): | |
importance: | Critical → High |
Changed in virt-manager (Ubuntu Karmic): | |
importance: | Critical → High |
tags: |
added: regression-release removed: regression-potential |
Changed in pulseaudio (Ubuntu Karmic): | |
importance: | Undecided → High |
status: | New → Triaged |
Changed in pulseaudio (Ubuntu Karmic): | |
status: | Triaged → Won't Fix |
This has nothing to do with the apparmor plugin. If you disable apparmor it will still hang.