Gentoo Archives: gentoo-user

From: waltdnes@××××××××.org
To: Gentoo Users List <gentoo-user@l.g.o>
Subject: [gentoo-user] QEMU unable to initialize audio
Date: Thu, 24 Dec 2015 21:03:31
Message-Id: 20151224210311.GA6239@waltdnes.org
1 Any ideas? The error message is...
2
3 sdl: SDL failed to initialize audio subsystem
4 sdl: Reason: No available audio device
5 audio: Could not init `sdl' audio driver
6
7 I get this both with a Gentoo guest...
8
9 #!/bin/bash
10 qemu-system-i386 -enable-kvm \
11 -cpu host -display gtk \
12 -drive file=gentoo32.img,format=raw \
13 -drive file=linuxswap.img,format=raw \
14 -net nic,model=virtio \
15 -rtc base=localtime,clock=host \
16 -net user,hostname=gentoovm,hostfwd=tcp::2022-:22 \
17 -m 3G -name "Gentoo VM" \
18 -soundhw sb16 -parallel none \
19 ${@}
20
21 ...and an OS/2 Warp 4 guest...
22
23 #!/bin/bash
24 qemu-system-i386 -enable-kvm \
25 -cpu coreduo -monitor vc \
26 -drive file=os2.img,format=raw \
27 -net nic,model=pcnet \
28 -m size=64 -name "OS/2 VM" \
29 -soundhw sb16 -vga std \
30 ${@}
31
32 On the host, from "emerge -pv qemu"...
33
34 app-emulation/qemu-2.4.1-r2::gentoo USE="aio alsa curl fdt gtk gtk2 jpeg ncurses opengl pin-upstream-blobs png sdl sdl2 ssh threads usb vhost-net vnc -accessibility -bluetooth -caps -debug -filecaps (-glusterfs) -infiniband -iscsi -lzo -nfs -nls -numa -pulseaudio -python -rbd -sasl -seccomp (-selinux) -smartcard -snappy -spice -static -static-softmmu -static-user -systemtap -tci {-test} -tls -usbredir -uuid -vde -virtfs -vte -xattr -xen -xfs"
35 PYTHON_TARGETS="python2_7"
36 QEMU_SOFTMMU_TARGETS="i386 x86_64"
37 QEMU_USER_TARGETS="i386 x86_64"
38
39 --
40 Walter Dnes <waltdnes@××××××××.org>
41 I don't run "desktop environments"; I run useful applications

Replies

Subject Author
Re: [gentoo-user] QEMU unable to initialize audio Ian Bloss <ianlinkcd@×××××.com>