LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Virtualization and Cloud (https://www.linuxquestions.org/questions/linux-virtualization-and-cloud-90/)
-   -   Qemu 8.1 how use virtual ac97 soundcard or more information (https://www.linuxquestions.org/questions/linux-virtualization-and-cloud-90/qemu-8-1-how-use-virtual-ac97-soundcard-or-more-information-4175728925/)

rico001 09-13-2023 01:49 PM

Qemu 8.1 how use virtual ac97 soundcard or more information
 
Greetings;

had updated recently to qemu 8.1 and was wondering how to use/emulate an ac97 card like in other versions if available?
qemu 8.1 uses the new -devicedev parameter for sound.
-audio-help may be used to get more info about sound.
8.1.5 manual is here.
https://www.qemu.org/docs/master/sys...roduction.html

jayjwa 09-13-2023 02:04 PM

Did it change from 8.0.x? I briefly had 8.1.0 but the SPARC emulator is broken with regards to the cursor so I changed back. This works under 8.0.4 for Windows ME, bridge networking and PulseAudio backend.

Code:

qemu-system-i386 -m 512m -cdrom windows_me_115_oem_full.iso -cpu pentium3 -boot order=cd,menu=on -rtc base=localtime -device pci-serial-4x -vga cirrus -device ich9-intel-hda -device hda-output,audiodev=snd0 -device AC97,audiodev=snd0 -audiodev pa,id=snd0  -device pcnet,netdev=net0,mac=52:54:00:12:34:57 -netdev tap,ifname=tap7,id=net0,script=no,downscript=no -hda c_harddisk_me_sf.img -serial pty -daemonize
You might do better with 8.0.x for now. 8.0.4 just came out end of August.

rico001 09-13-2023 02:25 PM

Quote:

Originally Posted by jayjwa (Post 6453500)
Did it change from 8.0.x? I briefly had 8.1.0 but the SPARC emulator is broken with regards to the cursor so I changed back. This works under 8.0.4 for Windows ME, bridge networking and PulseAudio backend.

Code:

qemu-system-i386 -m 512m -cdrom windows_me_115_oem_full.iso -cpu pentium3 -boot order=cd,menu=on -rtc base=localtime -device pci-serial-4x -vga cirrus -device ich9-intel-hda -device hda-output,audiodev=snd0 -device AC97,audiodev=snd0 -audiodev pa,id=snd0  -device pcnet,netdev=net0,mac=52:54:00:12:34:57 -netdev tap,ifname=tap7,id=net0,script=no,downscript=no -hda c_harddisk_me_sf.img -serial pty -daemonize
You might do better with 8.0.x for now. 8.0.4 just came out end of August.

Good idea to downgrade if not working but depends on the situation/environment or security requirements. was on windows for the post virtualizing ubuntu, did not know about -device AC97 in your code, worked for me: -device AC97,id=snd0. May try in other systems, before marking as solved. Thank you!Linux technologies now also have kernel vm's and guest vm's etc. virtio, containers, it's crazy. :-)

rico001 09-14-2023 06:02 PM

It worked for me on an old ubuntu vm but not an old fedoracore vm so far
Code:

-device AC97,id=snd0
and did not use -devicedev. Update#1: Better example code for me for Redhat vm:
Code:

-audiodev dsound,id=snd0  -device ac97,id=snd0
example on web address: https://gitlab.com/qemu-project/qemu/-/issues/1076 had some sound skip/crackling but worked.
more info on -audiodev: https://www.qemu.org/docs/master/sys...u-manpage.html
other


All times are GMT -5. The time now is 03:47 AM.