Theo Cabrerizo Diem
2007-Jun-29 16:46 UTC
[Xen-users] Setting enviroment variables for qemu, when calling xm for a hvm guest
Hi all, I have a working xen setup (3.0.4 hypervisor, 2.6.18 debian kernel), which I can create my hvm hosts with no problem at all ... But I decided do enable soundcard support .. and enabling the soundhw=''es1370'' config I have a soundcard listed ... but (at least in my debian box) it uses the OSS emulation (yes, I have alsa modules, and it loads the ALSA oss emulation) .. and that locks the sound device once the hvm guest is running :( . In QEmu docs, there''s an option, by running "export QEMU_AUDIO_DRV=alsa" should switch it''s driver to use alsa instead of OSS ... but .. how can this be done on Xen ? How can I set enviroment variables to qemu backend ? :( .. Thanks, Theo Diem _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Petersson, Mats
2007-Jul-02 09:54 UTC
RE: [Xen-users] Setting enviroment variables for qemu, when calling xm for a hvm guest
> -----Original Message----- > From: xen-users-bounces@lists.xensource.com > [mailto:xen-users-bounces@lists.xensource.com] On Behalf Of > Theo Cabrerizo Diem > Sent: 29 June 2007 17:46 > To: xen-users@lists.xensource.com > Subject: [Xen-users] Setting enviroment variables for qemu, > when calling xm for a hvm guest > > Hi all, > > I have a working xen setup (3.0.4 hypervisor, 2.6.18 debian kernel), > which I can create my hvm hosts with no problem at all ... > > But I decided do enable soundcard support .. and enabling the > soundhw=''es1370'' config I have a soundcard listed ... but (at least in > my debian box) it uses the OSS emulation (yes, I have alsa > modules, and > it loads the ALSA oss emulation) .. and that locks the sound > device once > the hvm guest is running :( . > > In QEmu docs, there''s an option, by running "export > QEMU_AUDIO_DRV=alsa" > should switch it''s driver to use alsa instead of OSS ... but > .. how can > this be done on Xen ? How can I set enviroment variables to qemu > backend ? :( ..You can replace the qemu-dm module with a script that calls qemu-dm. There is a "qemu-dm.debug" next to qemu-dm that demonstrates how this can be done. So in simple terms, take the qemu-dm.debug (you may need to point it at the right /usr/lib or /usr/lib64 depending on architecture, unless someone has fixed that lately) - either way, modify it to have the "export" line in it, and if you feel like that, remove the dump of the command-line args. -- Mats> > Thanks, > > Theo Diem > > > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users > > >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users