From 5f4260fcb11b6b7ab5412b00bea282808c349a0c Mon Sep 17 00:00:00 2001 From: Alexander Epaneshnikov Date: Wed, 7 Oct 2020 18:11:13 +0300 Subject: add sound support in run_archiso.sh also included serial output on stdio it helps in debugging without sight. --- scripts/run_archiso.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/scripts/run_archiso.sh b/scripts/run_archiso.sh index 1ce00cf..9f55369 100755 --- a/scripts/run_archiso.sh +++ b/scripts/run_archiso.sh @@ -86,12 +86,16 @@ run_image() { -drive "id=${mediatype}0,if=none,format=raw,media=${mediatype/hd/disk},readonly=on,file=${image}" \ -display sdl \ -vga virtio \ + -audiodev pa,id=snd0 \ + -device ich9-intel-hda \ + -device hda-output,audiodev=snd0 \ -device virtio-net-pci,romfile=,netdev=net0 -netdev user,id=net0 \ - -machine type=q35,smm=on,accel=kvm \ + -machine type=q35,smm=on,accel=kvm,pcspk-audiodev=snd0 \ -global ICH9-LPC.disable_s3=1 \ -enable-kvm \ "${qemu_options[@]}" \ - -no-reboot + -no-reboot \ + -serial stdio } set_image() { -- cgit v1.2.3-70-g09d2