LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud
User Name
Password
Linux - Virtualization and Cloud This forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.

Notices


Reply
  Search this Thread
Old 09-13-2023, 01:49 PM   #1
rico001
Member
 
Registered: Aug 2007
Distribution: TwisterOS lite, Linux in a VM
Posts: 96
Blog Entries: 3

Rep: Reputation: 3
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
 
Old 09-13-2023, 02:04 PM   #2
jayjwa
Member
 
Registered: Jul 2003
Location: NY
Distribution: Slackware, Termux
Posts: 786

Rep: Reputation: 250Reputation: 250Reputation: 250
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.
 
1 members found this post helpful.
Old 09-13-2023, 02:25 PM   #3
rico001
Member
 
Registered: Aug 2007
Distribution: TwisterOS lite, Linux in a VM
Posts: 96

Original Poster
Blog Entries: 3

Rep: Reputation: 3
Quote:
Originally Posted by jayjwa View Post
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. :-)

Last edited by rico001; 09-13-2023 at 04:38 PM.
 
Old 09-14-2023, 06:02 PM   #4
rico001
Member
 
Registered: Aug 2007
Distribution: TwisterOS lite, Linux in a VM
Posts: 96

Original Poster
Blog Entries: 3

Rep: Reputation: 3
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

Last edited by rico001; 09-16-2023 at 10:15 AM. Reason: clarity, more info on audiodev variable
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Set up qemu-kvm-1.0+noroms as spice enabled qemu server vs qemu-kvm-spice on Ubuntu Precise LXer Syndicated Linux News 0 05-26-2012 07:41 AM
soundcard is not working in slack11 kernel 2.6(test26)..i use AC97 jataayu Slackware 1 04-11-2008 02:29 AM
RedHat 9.0 and AC97 based soundcard martinzul Linux - Hardware 1 08-01-2003 03:16 AM
AC97 onboard soundcard Aphix Linux - Newbie 11 10-03-2002 04:49 PM
SoundCard AC97 under RedHat 7.1 stoni111 Linux - Newbie 4 03-15-2002 12:22 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud

All times are GMT -5. The time now is 11:34 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration