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

Sound problem [solved]

6 replies [Last post]
vehn
Offline
Joined: Sep 9 2008
Points: 3

Slackware 12.1, kernel 2.6.25, kvm-74 (manual compiling)

When I try run second guest I get errors (sound does not work):

audio: Failed to create voice `es1370.dac1'
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.dac1'
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'

Sound on guest runed first work properly. How may I fix it?

Thanks and sorry for bad english.

vehn
Offline
Joined: Sep 9 2008
Points: 3
Solved.Need add option

Solved.Need add option --audio-drv-list="alsa oss" to configure.

Anonymous
export QEMU_AUDIO_DRV=alsa

thanks. Did that and then needed to
export QEMU_AUDIO_DRV=alsa
before starting the virtual machine.

Anonymous
It solved my problem too, i

It solved my problem too, i can share my sound to both guest and host now, Thank you.

Anonymous
a warning lol

well finally solved it...

im a noob because i didn't know

export QEMU_AUDIO_DRV=alsa

is only applicable to the current terminal, i thought i was global... so dont use 2 terminals...
just copy paste that then use the SAME terminal lol
omg without sound for 2 weeks because im suche noob but because i believe there are many i leave the warning

also with my kernel and kvm version which i think are the latest

--audio-drv-list="alsa oss"

is no longer a option but i didnt needed it...

nameless noob!

Anonymous
not closed

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

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

vmaxdawg05 (not verified)
KVM Audio

I'm kind of a newb when it comes to KVM. Can you clarify what configuration needs to be modified? The client or the KVM configuration?

Thanks

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.