Hi Brian,
so the first steps in fixing this are as follows:
1. in /etc/libvirt/qemu.conf add the lines
vnc_allow_host_audio = 1
user=bmullan
group=bmullan
2. in /etc/init/libvirt-bin.conf, add the line
export QEMU_AUDIO_DRV=pa
right before the final exec, so 'script' block at the bottom of the file
becomes:
script
[ -r /etc/default/libvirt-bin ] && . /etc/default/libvirt-bin
export QEMU_AUDIO_DRV=pa
exec /usr/sbin/libvirtd $libvirtd_opts
end script
3. Add the following lines to /etc/apparmor.d/abstractions/libvirt-qemu
:
@{HOME}/.config/pulse/cookie rwk,
@{HOME}/.config/pulse/** rwkl,
@{HOME}/.config/ r,
@{HOME}/.config/pulse/ rw,
owner /run/shm/pulse-* rw,
/usr/bin/pulseaudio PUx,
/etc/pulse/daemon.conf r,
/tmp/pulse*/*.lock rwk,
/proc/* r,
/proc/*/fd/ r,
With all this, though I still do *not* have working sound. There may be a
pulseaudio server setting I haven't found, or there may be a silent apparmor
denial.
If we get this working then we can put most of the apparmor lines in the
policy, and to put hints in the config files for the rest.
--
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to pulseaudio in Ubuntu.
https://bugs.launchpad.net/bugs/1246929
Title:
no audio in KVM virtual machines : cannot select alsa or pa
Status in “libvirt” package in Ubuntu:
Incomplete
Status in “pulseaudio” package in Ubuntu:
Incomplete
Status in “virt-manager” package in Ubuntu:
Incomplete
Bug description:
I am on Ubuntu 13.10 desktop
16GB ram
asus sabertooth 990fx r2.0 motherboard
amd 8346 cpu
nvidia gtx650 video card
Since upgrading to Ubuntu 13.10 audio no longer works in KVM.
Checking SYSLOG I found this error being logged:
Oct 31 15:32:31 bmullan-virtual-machine pulseaudio[1814]: [alsa-source-ID 21
Analog] alsa-source.c: ALSA woke us up to read new data from the device, but
there was actually nothing to read!
Oct 31 15:32:31 bmullan-virtual-machine pulseaudio[1814]: [alsa-source-ID 21
Analog] alsa-source.c: Most likely this is a bug in the ALSA driver
'snd_hda_intel'. Please report this issue to the ALSA developers.
Oct 31 15:32:31 bmullan-virtual-machine pulseaudio[1814]: [alsa-source-ID 21
Analog] alsa-source.c: We were woken up with POLLIN set -- however a subsequent
snd_pcm_avail() returned 0 or another value < min_avail.
brian
ProblemType: Bug
DistroRelease: Ubuntu 13.10
Package: alsa-base 1.0.25+dfsg-0ubuntu4
ProcVersionSignature: Ubuntu 3.11.0-11.17-generic 3.11.3
Uname: Linux 3.11.0-11-generic x86_64
ApportVersion: 2.12.5-0ubuntu2.1
Architecture: amd64
Date: Thu Oct 31 19:45:53 2013
InstallationDate: Installed on 2013-10-31 (0 days ago)
InstallationMedia: Ubuntu 13.10 "Saucy Salamander" - Beta amd64 (20131003)
MarkForUpload: True
PackageArchitecture: all
SourcePackage: alsa-driver
Symptom: audio
Title: PCI/internal sound card not detected
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 04/09/2013
dmi.bios.vendor: American Megatrends Inc.
dmi.bios.version: 1708
dmi.board.asset.tag: To be filled by O.E.M.
dmi.board.name: SABERTOOTH 990FX R2.0
dmi.board.vendor: ASUSTeK COMPUTER INC.
dmi.board.version: Rev 1.xx
dmi.chassis.asset.tag: To Be Filled By O.E.M.
dmi.chassis.type: 3
dmi.chassis.vendor: To Be Filled By O.E.M.
dmi.chassis.version: To Be Filled By O.E.M.
dmi.modalias:
dmi:bvnAmericanMegatrendsInc.:bvr1708:bd04/09/2013:svnTobefilledbyO.E.M.:pnTobefilledbyO.E.M.:pvrTobefilledbyO.E.M.:rvnASUSTeKCOMPUTERINC.:rnSABERTOOTH990FXR2.0:rvrRev1.xx:cvnToBeFilledByO.E.M.:ct3:cvrToBeFilledByO.E.M.:
dmi.product.name: To be filled by O.E.M.
dmi.product.version: To be filled by O.E.M.
dmi.sys.vendor: To be filled by O.E.M.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/libvirt/+bug/1246929/+subscriptions
--
Mailing list: https://launchpad.net/~desktop-packages
Post to : [email protected]
Unsubscribe : https://launchpad.net/~desktop-packages
More help : https://help.launchpad.net/ListHelp