qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: qemu no sound


From: Helge Konetzka
Subject: Re: qemu no sound
Date: Fri, 16 Dec 2022 07:00:11 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.5.0

Hello Andreas,

Am 15.12.22 um 08:36 schrieb andschlick@freenet.de:

Hello dear Qemu community,

I installed qemu under Windows 11 home and downloaded the following file. kali-linux-2022.4-qemu-amd64.qcow2 and started it with the following command. unfortunately without sound what kind of command do I have to add for sound support.

 C:\Users\andsc\Desktop\qemu\qemu-system-x86_64.exe -accel whpx -smp 4 -hda net nic,model=virtio -net user --vga qxl -boot strict=on -usbdevice tablet Thank you for your support


I'm focussing on your sound problem, so I did not test with kali image. This command works for me on Windows 10 22H2 using a Msys2/Mingw64-Bash-Shell with Qemu 7.1.94:

qemu-system-x86_64 \
 -M q35 \
 -accel whpx,kernel-irqchip=off \
 -m 1536 \
 -audiodev id=audio0,driver=dsound \
 -device ich9-intel-hda -device hda-duplex,audiodev=audio0 \
 -cdrom openSUSE-Leap-15.3-GNOME-Live-x86_64-Media.iso

"-audiodev id=audio0,driver=dsound" defines, how the host provides the sound
"-device ich9-intel-hda -device hda-duplex,audiodev=audio0" refers to the sound provider and creates sound devices for the guest.

Maybe the whole command can be a starting point, too.

I did not use "-vga qxl" here, because this implies spice usage which adds more complexity because the spice client needs to communicate with qemu.
"-M q35" defines a more current computer than leaving it out

Regards,
Helge.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]