hello everyone, I created HVM guest on xen-4.1. Many of the features I want are working except the sound system. I tried available sound driver models (sb16|es1370|ac97,pcspk), no luck. Then I taught may be my sound card is not supported by qemu-dm. How is it possible to know if my sound card is supported by qemu-dm? Here is host sound card information $lspci -v - - - 00:1b.0 Audio device: Intel Corporation Panther Point High Definition Audio Controller (rev 04) Subsystem: Hewlett-Packard Company Device 3398 Flags: bus master, fast devsel, latency 0, IRQ 75 Memory at f7c30000 (64-bit, non-prefetchable) [size=16K] Capabilities: [50] Power Management version 2 Capabilities: [60] MSI: Enable+ Count=1/1 Maskable- 64bit+ Capabilities: [70] Express Root Complex Integrated Endpoint, MSI 00 Capabilities: [100] Virtual Channel Capabilities: [130] Root Complex Link Kernel driver in use: snd_hda_intel Kernel modules: snd-hda-intel - - If it is not supported, what shall I do?? thank you so much. Best, //nas _______________________________________________ Xen-users mailing list Xen-users@lists.xen.org http://lists.xen.org/xen-users
On Tue, 2013-08-13 at 15:55 +0200, nesredin mahmud wrote:> hello everyone, > > > I created HVM guest on xen-4.1. Many of the features I want are > working except the sound system. > > I tried available sound driver models (sb16|es1370|ac97,pcspk), no > luck. Then I taught may be my sound card is not supported by qemu-dm. > How is it possible to know if my sound card is supported by qemu-dm?I don''t think qemu-dm knows/cares about the physical card in your system, which can certainly be different to the emulated device exposed to the guest. I''m not sure exactly what it takes to enable sound for an HVM guest, I suggest you start by examining the build logs, in particular the output of the configure run for qemu-dm. You probably need some libraries available (perhaps ALSA, or maybe some SDL audio related ones?), the output of configure will hopefully tell you what is missing. Ian.
On Tue, Aug 13, 2013 at 8:55 AM, nesredin mahmud <nasmitlinux@gmail.com>wrote:> hello everyone, > > I created HVM guest on xen-4.1. Many of the features I want are working > except the sound system. > I tried available sound driver models (sb16|es1370|ac97,pcspk), no luck. > Then I taught may be my sound card is not supported by qemu-dm. How is it > possible to know if my sound card is supported by qemu-dm? > > Here is host sound card information > $lspci -v > - - - > 00:1b.0 Audio device: Intel Corporation Panther Point High Definition > Audio Controller (rev 04) > Subsystem: Hewlett-Packard Company Device 3398 > Flags: bus master, fast devsel, latency 0, IRQ 75 > Memory at f7c30000 (64-bit, non-prefetchable) [size=16K] > Capabilities: [50] Power Management version 2 > Capabilities: [60] MSI: Enable+ Count=1/1 Maskable- 64bit+ > Capabilities: [70] Express Root Complex Integrated Endpoint, MSI 00 > Capabilities: [100] Virtual Channel > Capabilities: [130] Root Complex Link > Kernel driver in use: snd_hda_intel > Kernel modules: snd-hda-intel > - - > > If it is not supported, what shall I do?? > > thank you so much. > > Best, > > //nas > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xen.org > http://lists.xen.org/xen-users >nas, Which Operating System are you trying to run as the as the HVM Guest? I seem to recall reading that its hard to find working drivers if your guest OS is Windows 7; its something that the newer release avoids because it can support Intel HDA (which has drivers included with the OS, iirc) Regards, David _______________________________________________ Xen-users mailing list Xen-users@lists.xen.org http://lists.xen.org/xen-users
hello, thank you for the correction, lan. On Wed, Aug 14, 2013 at 12:29 AM, Ian Campbell <ian.campbell@citrix.com>wrote:> On Tue, 2013-08-13 at 15:55 +0200, nesredin mahmud wrote: > > hello everyone, > > > > > > I created HVM guest on xen-4.1. Many of the features I want are > > working except the sound system. > > > > I tried available sound driver models (sb16|es1370|ac97,pcspk), no > > luck. Then I taught may be my sound card is not supported by qemu-dm. > > How is it possible to know if my sound card is supported by qemu-dm? > > I don''t think qemu-dm knows/cares about the physical card in your > system, which can certainly be different to the emulated device exposed > to the guest. >I build the latest qemu with ALSA support which went fine. I issued the command for drivers support: $ /usr/local/bin/qemu-system-i386 -soundhw ? Valid sound card names (comma separated): ac97 Intel 82801AA AC97 Audio adlib Yamaha YM3812 (OPL2) cs4231a CS4231A es1370 ENSONIQ AudioPCI ES1370 gus Gravis Ultrasound GF1 hda Intel HD Audio pcspk PC speaker sb16 Creative Sound Blaster 16 -soundhw all will enable all of the above> > I''m not sure exactly what it takes to enable sound for an HVM guest, I > suggest you start by examining the build logs, in particular the output > of the configure run for qemu-dm. You probably need some libraries > available (perhaps ALSA, or maybe some SDL audio related ones?), the > output of configure will hopefully tell you what is missing. > > yes i build qemu like you said with the following configuration settings.And ALSA was emulated instead of the OSS - the default one. --audio-drv-list=alsa set audio drivers list: Available drivers: oss alsa sdl esd pa fmod After building qemu with the new settings, I forced xen to use the new device model with: device_model_override="/path/to/qemu-system-i386" // am using XM, XL has some problem with me. then i set "soundhw=?". I am not sure if I am doing right, but I tried with "soundhw=all" -----> only es1370, ac97 are emulated. and "soundhw=hda" ------> this is definitely my sound card type; however, $xm create xmtest.cfg could not work because of "hda" keyword. Why xen did not implement for HDA support? Or does it make a difference if I use XL instead of XM?> Ian. > > > thank you,Best, //nas _______________________________________________ Xen-users mailing list Xen-users@lists.xen.org http://lists.xen.org/xen-users
On Wed, 2013-08-14 at 09:22 +0200, nesredin mahmud wrote:> "soundhw=hda" ------> this is definitely my sound card type;To reiterate -- the type of soundcard used by the host has no relevance to what qemu emulates for the guest. You should pick an emulated device which is a) part of the list of device which qemu emulates and b) where you have a suitable driver for the guest OS.> however, $xm create xmtest.cfg could not work because of "hda" > keyword. Why xen did not implement for HDA support?Xen uses what qemu implements here. You are using the older qemu-traditional device model which predates the addition of hda support to qemu. newer versions of Xen (4.3 onwards, experimental in 4.2) support using newer upstream versions of qemu, however 4.1 does not so unless you want to upgrade you Xen this isn''t an option for you.> Or does it make a difference if I use XL instead of XM?I wouldn''t expect it would. Ian
hello, thank you for replying David. On Wed, Aug 14, 2013 at 5:28 AM, David Sutton <kantras@gmail.com> wrote:> On Tue, Aug 13, 2013 at 8:55 AM, nesredin mahmud <nasmitlinux@gmail.com>wrote: > >> hello everyone, >> >> I created HVM guest on xen-4.1. Many of the features I want are working >> except the sound system. >> I tried available sound driver models (sb16|es1370|ac97,pcspk), no luck. >> Then I taught may be my sound card is not supported by qemu-dm. How is it >> possible to know if my sound card is supported by qemu-dm? >> >> Here is host sound card information >> $lspci -v >> - - - >> 00:1b.0 Audio device: Intel Corporation Panther Point High Definition >> Audio Controller (rev 04) >> Subsystem: Hewlett-Packard Company Device 3398 >> Flags: bus master, fast devsel, latency 0, IRQ 75 >> Memory at f7c30000 (64-bit, non-prefetchable) [size=16K] >> Capabilities: [50] Power Management version 2 >> Capabilities: [60] MSI: Enable+ Count=1/1 Maskable- 64bit+ >> Capabilities: [70] Express Root Complex Integrated Endpoint, MSI 00 >> Capabilities: [100] Virtual Channel >> Capabilities: [130] Root Complex Link >> Kernel driver in use: snd_hda_intel >> Kernel modules: snd-hda-intel >> - - >> >> If it is not supported, what shall I do?? >> >> thank you so much. >> >> Best, >> >> //nas >> >> _______________________________________________ >> Xen-users mailing list >> Xen-users@lists.xen.org >> http://lists.xen.org/xen-users >> > > nas, > > Which Operating System are you trying to run as the as the HVM Guest? I > seem to recall reading that its hard to find working drivers if your guest > OS is Windows 7; its something that the newer release avoids because it can > support Intel HDA (which has drivers included with the OS, iirc) >I am using Ubuntu-12.04 LTS. 32/64-bit version. As you know ALSA is default Audio platform in Ubuntu and has support for Intel HDA which in fact supports my sound card type: $lspci -k -nn - - - 00:1b.0 Audio device [0403]: Intel Corporation Panther Point High Definition Audio Controller [8086:1e20] (rev 04) Subsystem: Hewlett-Packard Company Device [103c:3398] Kernel driver in use: snd_hda_intel Kernel modules: snd-hda-intel - - - yesterday, i build a new qemu from source and tried to use it with xen. But XM could not validate the keyword "soundhw=hda" (so that i can emulate the HDA sound device only). I tried "soundhw=hda" but only ac97 and es1370 are emulated. I really appreciate any help so that HVM can make sound.> > Regards, > > David >_______________________________________________ Xen-users mailing list Xen-users@lists.xen.org http://lists.xen.org/xen-users
hello lan, thank you once again, lan. On Wed, Aug 14, 2013 at 9:28 AM, Ian Campbell <ian.campbell@citrix.com>wrote:> On Wed, 2013-08-14 at 09:22 +0200, nesredin mahmud wrote: > > > > "soundhw=hda" ------> this is definitely my sound card type; > > To reiterate -- the type of soundcard used by the host has no relevance > to what qemu emulates for the guest. > > You should pick an emulated device which is a) part of the list of > device which qemu emulates and b) where you have a suitable driver for > the guest OS. > > i totally misunderstood you. Now I got it. Sorry. I will try and post theresult.> > however, $xm create xmtest.cfg could not work because of "hda" > > keyword. Why xen did not implement for HDA support? > > Xen uses what qemu implements here. You are using the older > qemu-traditional device model which predates the addition of hda support > to qemu. > > I am using both actually but I will redo with xen-4.3.> newer versions of Xen (4.3 onwards, experimental in 4.2) support using > newer upstream versions of qemu, however 4.1 does not so unless you want > to upgrade you Xen this isn''t an option for you. > > > Or does it make a difference if I use XL instead of XM? > > I wouldn''t expect it would. > > Ian > > > thank you,Best, //nas _______________________________________________ Xen-users mailing list Xen-users@lists.xen.org http://lists.xen.org/xen-users