Sound doesn't work on VE 2.x

dominique.fournier

Active Member
Jul 25, 2012
26
0
41
Hi,

I just try to allow a VM to play sound on the host. But it doesn't works.

When I start the VM manually, I have :
oss: Could not initialize DAC
oss: Failed to open `/dev/dsp'
oss: Reason: No such file or directory
oss: Could not initialize DAC
oss: Failed to open `/dev/dsp'
oss: Reason: No such file or directory
audio: Failed to create voice `es1370.dac2'
oss: Could not initialize ADC
oss: Failed to open `/dev/dsp'
oss: Reason: No such file or directory
oss: Could not initialize ADC
oss: Failed to open `/dev/dsp'
oss: Reason: No such file or directory
audio: Failed to create voice `es1370.adc'

KVM is compiled only for OSS (and not alsa) :
/usr/bin/kvm -audio-help | grep ^Name
Name: oss
Name: none
Name: wav

And the kernel don't have the OSS support :
grep SND_PCM_OSS /boot/config-2.6.32-13-pve
# CONFIG_SND_PCM_OSS is not set
So I can't have the /dev/dsp device loaded...

So : could you add alsa support to KVM or OSS support to kernel ?

Thanks a lot !!

Dom
 
Of course, I do that with -soundhw es1370 and/or -device intel-hda, but it doesn't works. I have a standard debian on another plateform, and it works because, when I launch the VM, there is no error concerning /dev/dsp...

Thanks a lot
 
Hi

I just try to recompile the package pve-qemu-kvm with the following patch and it works well !! Just ALSA support and no more OSS, and the sound works out of box.

Could you integrate it for the next release ?

Thanks !!

Dom
Code:
--- debian/rules.old    2012-08-14 09:37:19.000000000 +0200
+++ debian/rules    2012-08-14 09:38:07.000000000 +0200
@@ -33,7 +33,7 @@
 config.status: configure
     dh_testdir
     # Add here commands to configure the package.
-    ./configure --prefix=/usr --datadir=/usr/share --docdir=/usr/share/doc/pve-qemu-kvm --sysconfdir=/etc --disable-xen --enable-vnc-tls --enable-sdl --enable-uuid --enable-linux-aio --enable-rbd --enable-libiscsi
+    ./configure --prefix=/usr --datadir=/usr/share --docdir=/usr/share/doc/pve-qemu-kvm --sysconfdir=/etc --disable-xen --enable-vnc-tls --enable-sdl --enable-uuid --enable-linux-aio --enable-rbd --enable-libiscsi --audio-drv-list=alsa
 
 build: patch build-stamp
 
If you can allow all the supports, I should be fine ! Actually, the kernel supports only ALSA, but it is great. I think you will need more libraries to do that.

Thanks a lot !!
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!