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
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 creating the VM and
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 for
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
** 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
** 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
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
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 Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1246929
Title:
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 Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1246929
Title:
alsa bug in KVM
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,
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++) {
** Package changed: alsa-driver (Ubuntu) = qemu-kvm (Ubuntu)
--
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to qemu-kvm in Ubuntu.
https://bugs.launchpad.net/bugs/1246929
Title:
alsa bug in KVM virtual machines
To manage
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 Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1246929
Title:
alsa bug in KVM virtual machines
To
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 Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1246929
Title:
alsa bug in KVM virtual machines
To manage
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
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 Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1246929
Title:
alsa bug in KVM virtual machines
To
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
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
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
** Package changed: alsa-driver (Ubuntu) = qemu-kvm (Ubuntu)
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1246929
Title:
alsa bug in KVM virtual machines
To manage notifications about this bug go
# 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 (volume
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
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|
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,
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 Ubuntu
Bugs, which
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 Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1246929
Title:
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 Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1246929
Title:
alsa bug in
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
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:
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;
** Changed in: alsa-driver (Ubuntu)
Status: New = Incomplete
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1246929
Title:
alsa bug in KVM virtual machines
To manage notifications about this
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
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 Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1246929
Title:
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
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:
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
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 Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1246929
Title:
alsa bug in KVM virtual machines
To manage
37 matches
Mail list logo