Code: Select all
-device AC97
I've tried to pass the audio to pulseaudio, alsa and even tried spice (with spice-gtk), but got no luck. I'm on Void Linux x86_64 with qemu 6.0.0. Here's what I did:
I downloaded the latest RC ISO ReactOS-0.4.14-RC-71-gcfc2431-iso.zip (release-18 iso crashes on startup with ntoskrnl.exe), made a disk image and created a script to run the machine:
Code: Select all
mkdir reactos && cd reactos
#unzipped the zip file
mv ReactOS*.iso reactos.iso
qemu-img create -f qcow2 reactos.hd 4G
touch run.sh
chmod +x run.sh
Code: Select all
#!/usr/bin/env sh
qemu-system-`uname -m` -m 1500M -enable-kvm \
-net nic,model=ne2k_pci -net user \
-audiodev driver=pa,id=snd0,server=`pactl info | grep 'Server String' | awk '{print $3}'` -device AC97,audiodev=snd0 \
-cdrom reactos.iso -hda reactos.hd \
-serial file:/tmp/ros.log
I ran the run.sh and installed with the default options and rebooted when done. Completed the GUI setup with mostly default ones too. When I booted into desktop I went straight to Applications Manager, installed "AC'97 Driver for VirtualBox" in "C:\ReactOS" and rebooted twice. It shows "Avance AC97 Audio" under "Audio & Videocontroller" in My Computer (right click) - Manage - Device Manager.
But when I play the wav file inside C:\ReactOS\media or play any sound in Sound properties (right click sound tray icon - adjust - sounds) it hangs. I've tried Winamp and Qmmp to play the wav and downloaded test mp3s, but same result. Please help!
Log (pulseaudio): https://pastebin.com/7KUTRU5Z
Log (only -device AC97 without -audiodev): https://pastebin.com/E9mTm5ir
Note: When I run the script it shows these:
Code: Select all
pulseaudio: set_sink_input_volume() failed
pulseaudio: Reason: Invalid argument
pulseaudio: set_sink_input_mute() failed
pulseaudio: Reason: Invalid argument
pulseaudio: set_sink_input_volume() failed
pulseaudio: Reason: Invalid argument
pulseaudio: set_sink_input_mute() failed
pulseaudio: Reason: Invalid argument
pulseaudio: set_source_output_volume() failed
pulseaudio: Reason: Invalid argument
pulseaudio: set_source_output_mute() failed
pulseaudio: Reason: Invalid argument
Code: Select all
-audiodev driver=alsa,id=snd0 -device AC97,audiodev=snd0
-device AC97
-device ac97
-audiodev driver=spice,id=snd0 -device AC97,audiodev=snd0 -vga qxl -usbdevice tablet -spice port=5658,disable-ticketing=on -daemonize -pidfile /tmp/rospid # then added at the end of the script to run spice-gtk client: spicy --title 'ReactOS' -h 127.0.0.1 -p 5658 && kill `cat /tmp/rospid`