Forwarded over to netbsd-users@, in case you can help. ---------- Forwarded message --------- From: Ottavio Caruso <ottavio2006-usenet2...@yahoo.com> Date: Thu, 17 Mar 2022 at 14:35 Subject: Can't get audio, host Debian, guest NetBSD, help! To: qemu-discuss <qemu-disc...@nongnu.org>
I am playing with audio and I know that the syntax has changed. I have a NetBSD 9.2/amd64 guest that I have tried launching like this: #!/bin/sh /home/oc/git/qemu/build/qemu-system-x86_64 \ -drive if=virtio,file=/home/oc/VM/img/netbsd.image,index=0,media=disk \ -drive if=virtio,file=/home/oc/VM/img/netbsd.image.old,index=1,media=disk \ -M q35,accel=kvm -m 500M -cpu host -smp $(nproc) \ -nic user,hostfwd=tcp:127.0.0.1:5555-:22,model=virtio-net-pci,ipv6=off \ -device intel-hda -device hda-duplex \ -serial mon:telnet:127.0.0.1:6665,server,nowait \ -pidfile /home/oc/VM/pid/netbsd-pid See the " -device intel-hda -device hda-duplex " line? I am not sure if this is enough, but I can see the audio device in the guest: dmesg|grep -i audio [ 1.040426] audio0 at eap0: playback, capture, full duplex [ 1.040426] audio0: slinear_le:16 2ch 48000Hz, blk 1920 bytes (10ms) for playback [ 1.040426] audio0: slinear_le:16 2ch 48000Hz, blk 1920 bytes (10ms) for recording [ 1.040426] spkr0 at audio0: PC Speaker (synthesized) [ 1.040426] hdaudio0 at pci0 dev 5 function 0: HD Audio Controller [ 1.040426] hdaudio0: interrupting at msi0 vec 0 [ 1.040426] hdafg0 at hdaudio0: vendor 1af4 product 0022 [ 1.040426] audio1 at hdafg0: playback, capture, full duplex, independent [ 1.040426] audio1: slinear_le:16 2ch 48000Hz, blk 1920 bytes (10ms) for playback [ 1.040426] audio1: slinear_le:16 2ch 48000Hz, blk 1920 bytes (10ms) for recording [ 1.040426] spkr1 at audio1: PC Speaker (synthesized) [ 2.227379] audio2 at auich0: playback, capture, full duplex, independent [ 2.227379] audio2: slinear_le:16 2ch 48000Hz, blk 1920 bytes (10ms) for playback [ 2.227379] audio2: slinear_le:16 2ch 48000Hz, blk 1920 bytes (10ms) for recording [ 2.244061] spkr3 at audio2: PC Speaker (synthesized) I have also tried the old syntax: -soundhw all With similar output in dmesg but no audio forwarded to host. Any help will be appreciated. -- Ottavio Caruso