Re: [Desktop-packages] [Bug 1246929] Re: alsa bug in KVM virtual machines

2013-11-11 Thread Serge Hallyn
Hi, ok, after some testing: the problem is actually that the libvirt-qemu user is not allowed to access some files. I've not tracked down exactly which ones are the problem, but when I run kvm -hda x.img -cdrom ubuntu_precise-desktop-amd64.iso -m 1G \ -smp 2 -vnc :1 -device AC97

[Desktop-packages] [Bug 1246929] Re: alsa bug in KVM virtual machines

2013-11-08 Thread Raymond
there was no kvm connect in your pulseaudio verbose log , do you get any sound or connection log if you select other backend alsa , pa, sdl, oss using QEMU_AUDIO_DRV ? http://bazaar.launchpad.net/~ubuntu-branches/ubuntu/saucy/qemu- kvm/saucy/view/head:/audio/alsaaudio.c struct audio_driver al

[Desktop-packages] [Bug 1246929] Re: alsa bug in KVM virtual machines

2013-11-08 Thread brian mullan
Raymond ... you asked for: >>post the pulseaudio verbose log in your real machine and check whether kvm is >>accessing through alsa-plugin or pulseaudio native api See attached. Still no audio heard in VM ** Attachment added: "pulseaudio verbose log while KVM VM is running AND w/AC97 enabled

[Desktop-packages] [Bug 1246929] Re: alsa bug in KVM virtual machines

2013-11-08 Thread brian mullan
Serge you asked... >>No, wait. If I specify AC97 audio when setting up the vm in virt-manager (by >>specifying "customize config before install"), I do see >>the >>QEMU_AUDIO_DRV=none in env variable, but kvm is started with -device AC97,... >> >>Can you please re-try specifying AC97 when creatin

[Desktop-packages] [Bug 1246929] Re: alsa bug in KVM virtual machines

2013-11-07 Thread Raymond
use -audio-help to list the available backend if (!found) { dolog ("Unknown audio driver `%s'\n", drvname); dolog ("Run with -audio-help to list available drivers\n"); } } if (!done) { for (i = 0; !done && i < ARRAY_SIZE (drvtab); i++) {

[Desktop-packages] [Bug 1246929] Re: alsa bug in KVM virtual machines

2013-11-07 Thread Raymond
http://bazaar.launchpad.net/~ubuntu-branches/ubuntu/saucy/qemu- kvm/saucy/view/head:/audio/noaudio.c specify none is selectIng noaudio (timer based audio emulation) struct audio_driver no_audio_driver = { .name = "none", .descr = "Timer based audio emulation", .opt

[Desktop-packages] [Bug 1246929] Re: alsa bug in KVM virtual machines

2013-11-07 Thread Raymond
post the pulseaudio verbose log in your real machine and check whether kvm is accessing through alsa-plugin or pulseaudio native api -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to pulseaudio in Ubuntu. https://bugs.launchpad.net/bugs/124

[Desktop-packages] [Bug 1246929] Re: alsa bug in KVM virtual machines

2013-11-07 Thread Raymond
AC97 is the emulated sound card inside KVM, you must configure kvm to use a backend to access your real sound card -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to pulseaudio in Ubuntu. https://bugs.launchpad.net/bugs/1246929 Title: als

[Desktop-packages] [Bug 1246929] Re: alsa bug in KVM virtual machines

2013-11-07 Thread Serge Hallyn
No, wait. If I specify AC97 audio when setting up the vm in virt- manager (by specifying "customize config before install"), I do see the QEMU_AUDIO_DRV=none in env variable, but kvm is started with -device AC97,... Can you please re-try specifying AC97 when creating the VM and see if you get wor

[Desktop-packages] [Bug 1246929] Re: alsa bug in KVM virtual machines

2013-11-07 Thread Serge Hallyn
** No longer affects: qemu-kvm (Ubuntu) ** Also affects: virt-manager (Ubuntu) Importance: Undecided Status: New ** Changed in: virt-manager (Ubuntu) Importance: Undecided => Medium ** Changed in: virt-manager (Ubuntu) Status: New => Confirmed ** Also affects: libvirt (Ubunt

[Desktop-packages] [Bug 1246929] Re: alsa bug in KVM virtual machines

2013-11-04 Thread Raymond
** Package changed: alsa-driver (Ubuntu) => qemu-kvm (Ubuntu) -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to pulseaudio in Ubuntu. https://bugs.launchpad.net/bugs/1246929 Title: alsa bug in KVM virtual machines Status in “pulseaudio”

[Desktop-packages] [Bug 1246929] Re: alsa bug in KVM virtual machines

2013-11-04 Thread Raymond
you have to ask the package maintainer since the default is specifed in CONFIG_AUDIO_DRIVERS during build /* Order of CONFIG_AUDIO_DRIVERS is import. The 1st one is the one used by default, that is the reason that we generate the list. */ static struct audio_driver *drvtab[] = { #ifdef CON

[Desktop-packages] [Bug 1246929] Re: alsa bug in KVM virtual machines

2013-11-04 Thread brian mullan
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 be

[Desktop-packages] [Bug 1246929] Re: alsa bug in KVM virtual machines

2013-11-04 Thread brian mullan
Raymond.. I am using virt-manager not the cli to create/manage my KVM VM's. I did check in case QEMU_AUDIO_DRV is supposed to be an environment variable either in the Host OS or the VM itself so just in case I did check and there is no ENV present (printenv QEMU_AUDIO_DRV) in either. I also chec

[Desktop-packages] [Bug 1246929] Re: alsa bug in KVM virtual machines

2013-11-04 Thread Raymond
what do mean when you say sound not working ? > Title: PCI/internal sound card not detected -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to alsa-driver in Ubuntu. https://bugs.launchpad.net/bugs/1246929 Title: alsa bug in KVM virtual

[Desktop-packages] [Bug 1246929] Re: alsa bug in KVM virtual machines

2013-11-04 Thread Raymond
just want to verify which audio backend you are using ? what is the value of QEMU_AUDIO_DRV ? -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to alsa-driver in Ubuntu. https://bugs.launchpad.net/bugs/1246929 Title: alsa bug in KVM virtua

[Desktop-packages] [Bug 1246929] Re: alsa bug in KVM virtual machines

2013-11-04 Thread Raymond
do you mean audio work with the emulated hda sound card before you upgrade ? or just other emulated sound card work before upgrade since the emulated hda sound card is quite new compared with emulated AC97 sound card ? Since upgrading to Ubuntu 13.10 audio no longer works in KVM. Checking SYSL

[Desktop-packages] [Bug 1246929] Re: alsa bug in KVM virtual machines

2013-11-04 Thread brian mullan
Raymond.. I thought I'd check because I'm not sure if you are waiting on any info from me or not -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to alsa-driver in Ubuntu. https://bugs.launchpad.net/bugs/1246929 Title: alsa bug in KVM virt

[Desktop-packages] [Bug 1246929] Re: alsa bug in KVM virtual machines

2013-11-03 Thread Raymond
http://bazaar.launchpad.net/~ubuntu-branches/ubuntu/saucy/qemu- kvm/saucy/view/head:/audio/audio.c you can select different backend by export QEMU_AUDIO_DRV= there are other options TIMER_PERIOD, LOG_TO_MONITOR, http://bazaar.launchpad.net/~ubuntu-branches/ubuntu/saucy/qemu-kvm/saucy/view/

[Desktop-packages] [Bug 1246929] Re: alsa bug in KVM virtual machines

2013-11-03 Thread Raymond
it is pulseaudio call snd_pcm_start at 37.726| 0.000) I: [alsa-sink-Intel ICH] alsa-sink.c: Starting playback. so you have to find out why pulseaudio did not write any data to alsa-sink ( 37.702| 32.638) I: [pulseaudio] client.c: Created 3 "Native client (UNIX socket client)" ( 37.704|

[Desktop-packages] [Bug 1246929] Re: alsa bug in KVM virtual machines

2013-11-03 Thread Raymond
seem get a poll from the emulated ICH controller just at the time of starting capture 0.052 , there is no data to read of course ( 0.050| 0.000) D: [pulseaudio] alsa-util.c: Hardware PCM card 0 'Intel 82801AA-ICH' device 0 subdevice 0 ( 0.050| 0.000) D: [pulseaudio] alsa-util.c: Its setu

[Desktop-packages] [Bug 1246929] Re: alsa bug in KVM virtual machines

2013-11-03 Thread Raymond
# define QEMU_HDA_ID_OUTPUT ((QEMU_HDA_ID_VENDOR << 16) | 0x11) # define QEMU_HDA_ID_DUPLEX ((QEMU_HDA_ID_VENDOR << 16) | 0x21) # define QEMU_HDA_ID_MICRO ((QEMU_HDA_ID_VENDOR << 16) | 0x31) # define QEMU_HDA_AMP_CAPS QEMU_HDA_AMP_NONE 0x21 mean the emulated codec does not has any amp (volu

[Desktop-packages] [Bug 1246929] Re: alsa bug in KVM virtual machines

2013-11-02 Thread Raymond
http://git.kernel.org/cgit/virt/kvm/qemu-kvm.git/plain/hw/ac97.c the emulated ac97 emulate 82801AA (ICH) static void ac97_class_init (ObjectClass *klass, void *data) { DeviceClass *dc = DEVICE_CLASS (klass); PCIDeviceClass *k = PCI_DEVICE_CLASS (klass); k->init = ac97_initfn; k->

[Desktop-packages] [Bug 1246929] Re: alsa bug in KVM virtual machines

2013-11-02 Thread brian mullan
Raymond... pls keep in mind I'm not a developer. I want to help with this problem but you have to give me end-user understandable questions. >>do you mean the emulated hda sound card (QEMU_HDA_ID_DUPLEX) ? >>http://git.kernel.org/cgit/virt/kvm/qemu-kvm.git/plain/hw/hda-audio.c You also asked:

[Desktop-packages] [Bug 1246929] Re: alsa bug in KVM virtual machines

2013-11-02 Thread brian mullan
All of this is on a 2nd machine of mine with a fresh Ubuntu 13.10 install on a new hard disk. The KVM is the default install. The KVM VM was created using the default Ubuntu 13.10 Desktop ISO image. Note that I started with this 2nd machine because my primary Ubuntu 13.10 machine (which was an up

[Desktop-packages] [Bug 1246929] Re: alsa bug in KVM virtual machines

2013-11-02 Thread Raymond
which backend audio are you using ? http://git.kernel.org/cgit/virt/kvm/qemu-kvm.git/tree/audio alsa , pulseaudio or sdl -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to alsa-driver in Ubuntu. https://bugs.launchpad.net/bugs/1246929 Tit

[Desktop-packages] [Bug 1246929] Re: alsa bug in KVM virtual machines

2013-11-02 Thread Raymond
do you mean the emulated hda sound card (QEMU_HDA_ID_DUPLEX) ? http://git.kernel.org/cgit/virt/kvm/qemu-kvm.git/plain/hw/hda-audio.c -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to alsa-driver in Ubuntu. https://bugs.launchpad.net/bugs/1

[Desktop-packages] [Bug 1246929] Re: alsa bug in KVM virtual machines

2013-11-02 Thread brian mullan
Raymond... Sorry, not sure what you mean by -- which is "alsa source-ID 21 Analog" ? Also... the previous messages are from /var/log/syslog inside the KVM VM Ubuntu 13.10 running image... not from the Host OS. -- You received this bug notification because you are a member of Desktop Packages, w

[Desktop-packages] [Bug 1246929] Re: alsa bug in KVM virtual machines

2013-11-01 Thread Raymond
Oct 31 15:32:31 bmullan-virtual-machine pulseaudio[1814]: [alsa-source-ID 21 Analog] alsa-source.c: ALSA woke us up to read new data from the device, but there was actually nothing to read! Oct 31 15:32:31 bmullan-virtual-machine pulseaudio[1814]: [alsa-source-ID 21 Analog] alsa-source.c: Most

[Desktop-packages] [Bug 1246929] Re: alsa bug in KVM virtual machines

2013-11-01 Thread Raymond
7.726| 0.000) D: [pulseaudio] reserve-wrap.c: Successfully acquired reservation lock on device 'Audio0' ( 37.726| 0.000) I: [alsa-sink-Intel ICH] alsa-sink.c: Trying resume... ( 37.726| 0.000) D: [alsa-sink-Intel ICH] alsa-util.c: Maximum hw buffer size is 371 ms ( 37.726| 0.000) D: [a

[Desktop-packages] [Bug 1246929] Re: alsa bug in KVM virtual machines

2013-11-01 Thread brian mullan
see attached pulseverbose.log In the KVM 13.10 VM ... all I've been doing is using firefox to go to YouTube and then start a YouTube video up. But no sound/audio is presented. ** Attachment added: "pulseverbose.log" https://bugs.launchpad.net/ubuntu/+source/alsa-driver/+bug/1246929/+attach

[Desktop-packages] [Bug 1246929] Re: alsa bug in KVM virtual machines

2013-11-01 Thread Raymond
post the pulseaudio verbose log inside kvm what kind of application can reproduce your case ? https://wiki.ubuntu.com/PulseAudio/Log -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to alsa-driver in Ubuntu. https://bugs.launchpad.net/bugs/

[Desktop-packages] [Bug 1246929] Re: alsa bug in KVM virtual machines

2013-11-01 Thread brian mullan
I've tried: ICH6 - that was the orig default in the VM when created AC97 I cleared syslog - I changed to AC97 (shutdown vm and restarted it & verified it was now set to AC97) and got this in syslog which appears the SAME as with ICH6 despite having switch to AC97: Nov 1 06:27:52 bmullan-virtua

[Desktop-packages] [Bug 1246929] Re: alsa bug in KVM virtual machines

2013-10-31 Thread Raymond
** Changed in: alsa-driver (Ubuntu) Status: New => Incomplete -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to alsa-driver in Ubuntu. https://bugs.launchpad.net/bugs/1246929 Title: alsa bug in KVM virtual machines Status in “als

[Desktop-packages] [Bug 1246929] Re: alsa bug in KVM virtual machines

2013-10-31 Thread Raymond
https://wiki.ubuntu.com/PulseAudio/Log which emulated sound card are you using inside kvm ? -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to alsa-driver in Ubuntu. https://bugs.launchpad.net/bugs/1246929 Title: alsa bug in KVM virtual