KVM - The Linux Kernel-Based Virtual Machine
News, Blogs and Resources on the Linux (KVM) Kernel-Based Virtual Machine

Another Sound Problem - cant have sound on both host and guest.

2 replies [Last post]
fapostolo
Offline
Joined: Aug 17 2009
Points: 1

well if i have sound in guest i dont have in host...

I'm using ubuntu all updated by synaptic.

tested some more google pulse and
for example
declare -x QEMU_ALSA_ADC_DEV="/dev/audio"
declare -x QEMU_ALSA_DAC_DEV="/dev/audio"
declare -x QEMU_AUDIO_DRV="alsa"
declare -x QEMU_OSS_ADC_DEV="/dev/audioOSS"
declare -x QEMU_OSS_DAC_DEV="/dev/audioOSS"

it still say

oss: Could not initialize DAC
oss: Failed to open `/dev/dsp'
oss: Reason: Device or resource busy
oss: Could not initialize DAC
oss: Failed to open `/dev/dsp'
oss: Reason: Device or resource busy
audio: Failed to create voice `es1370.dac2'

not fatal problem but if i caould go over it would be perfect lol, then i would have only to find a way to make my G9 mouse forward and back buttons to work, i try lsusb and host:1234:1234 stuff, worked for other devices but not my logitech logicool products lol

sw2wolf
Offline
Joined: Mar 18 2009
Points: 29
You need to configure KVM as

You need to configure KVM as below before compiling:
%./configure --prefix=/usr/local --audio-drv-list="alsa oss" --enable-mixemu
%make
%sudo make install

After that, the host and guest can share sound device.

fapostolo
Offline
Joined: Aug 17 2009
Points: 1
Ill try!

oh ok tnks, maybe it should be in ubuntu faq on kvm since I installed from synaptic ...guess the kernel update killed something, maybe a simple reinstall would do it, i might test before seeing those beautiful warnings appear in terminal, or with luck some fatal error lol.
I'm quite busy now but ill test it next week, seeing videos in my guest any way now... kvm rulez.
If ok ill mark as solved lol...
thanks again m8.

Post new comment

The content of this field is kept private and will not be shown publicly.
Type the characters you see in this picture. (verify using audio)
Type the characters you see in the picture above; if you can't read them, submit the form and a new image will be generated. Not case sensitive.