Comment 23 for bug 1246929

Revision history for this message
brian mullan (bmullan) wrote : Re: alsa bug in KVM virtual machines

Raymond...
Here is some more info. I created a 2nd KVM VM using the same ubuntu 13.10 desktop .ISO and all default virt-manager settings

once the new VM (called test) was created again there was no Audio.

So I checked:

/var/log/libvirt/qemu/test.log file and found: QEMU_AUDIO_DRV=none as being logged. see below

LC_ALL=C PATH=/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/sbin:/sbin:/bin QEMU_AUDIO_DRV=none /usr/bin/kvm-spice -name test -S -machine pc-i440fx-1.5,accel=kvm,usb=off -m 2048 -r
ealtime mlock=off -smp 3,sockets=3,cores=1,threads=1 -uuid 52ecab3b-b786-4474-e9e8-bbf3cc9c7410 -no-user-config -nodefaults -chardev socket,id=charmonitor,path=/var/lib/libvirt/qe
mu/test.monitor,server,nowait -mon chardev=charmonitor,id=monitor,mode=control -rtc base=utc -no-reboot -device piix3-usb-uhci,id=usb,bus=pci.0,addr=0x1.0x2 -drive file=/var/lib/l
ibvirt/images/test.img,if=none,id=drive-virtio-disk0,format=raw -device virtio-blk-pci,scsi=off,bus=pci.0,addr=0x5,drive=drive-virtio-disk0,id=virtio-disk0,bootindex=2 -drive file
=/home/bmullan/Downloads/ubuntu-13.10-desktop-amd64.iso,if=none,id=drive-ide0-1-0,readonly=on,format=raw -device ide-cd,bus=ide.1,unit=0,drive=drive-ide0-1-0,id=ide0-1-0,bootindex
=1 -netdev tap,fd=24,id=hostnet0,vhost=on,vhostfd=25 -device virtio-net-pci,netdev=hostnet0,id=net0,mac=52:54:00:af:a1:2d,bus=pci.0,addr=0x3 -chardev pty,id=charserial0 -device is
a-serial,chardev=charserial0,id=serial0 -vnc 127.0.0.1:0 -vga vmware -device intel-hda,id=sound0,bus=pci.0,addr=0x4 -device hda-duplex,id=sound0-codec0,bus=sound0.0,cad=0 -device
virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x6
W: kvm binary is deprecated, please use qemu-system-x86_64 instead

I found that the setting of QEMU_AUDIO_DRV=none

This seems like the same problem that was reported as a bug in 2010 in bug ID:
TITLE: No sound in virt-manager (QEMU_AUDIO_DRV set to none by libvirtd)
https://bugs.launchpad.net/ubuntu/+source/libvirt/+bug/591489