<span style="font-size:13px;line-height:17px;background-color:rgb(255,255,255)">Davide,</span><div style="font-size:13px;line-height:17px;background-color:rgb(255,255,255)"><br></div><div style="font-size:13px;line-height:17px;background-color:rgb(255,255,255)">
If you use KVM, it"s possible to enable audio.</div><div style="font-size:13px;line-height:17px;background-color:rgb(255,255,255)">Please refer  <a href="http://libvirt.org/formatdomain.html#elementsSound" target="_blank" style="text-decoration:initial">http://libvirt.org/formatdomain.html#elementsSound</a></div>
<div style="font-size:13px;line-height:17px;background-color:rgb(255,255,255)"><br></div><div style="font-size:13px;line-height:17px;background-color:rgb(255,255,255)">Here is some infomation about how to enable it in nova:</div>
<div style="font-size:13px;line-height:17px;background-color:rgb(255,255,255)"> <a href="http://www.gossamer-threads.com/lists/openstack/operators/21302" target="_blank" style="text-decoration:initial">http://www.gossamer-threads.com/lists/openstack/operators/21302</a></div>
<div style="font-size:13px;line-height:17px;background-color:rgb(255,255,255)"><br></div><div style="font-size:13px;line-height:17px;background-color:rgb(255,255,255)">Haven't test it, I think the steps should be:</div>
<div style="font-size:13px;line-height:17px;background-color:rgb(255,255,255)">1. cp <span style="font-size:small;font-family:Verdana,Arial,Helvetica">/usr/lib/python2.7/dist-packages/</span><b style="font-family:Verdana,Arial,Helvetica;font-size:small;background-color:rgb(255,255,128)">nova</b><span style="font-size:small;font-family:Verdana,Arial,Helvetica">/virt/libvirt.xml.template  </span><span style="font-size:small;font-family:Verdana,Arial,Helvetica">/etc/</span><b style="font-family:Verdana,Arial,Helvetica;font-size:small;background-color:rgb(255,255,128)">nova/</b></div>
<div style="font-size:13px;line-height:17px;background-color:rgb(255,255,255)"><span style="font-size:small;font-family:Verdana,Arial,Helvetica">2. add next line to </span><b style="font-family:Verdana,Arial,Helvetica;font-size:small;background-color:rgb(255,255,128)">nova</b><span style="font-size:small;font-family:Verdana,Arial,Helvetica">.conf </span></div>
<div style="font-size:13px;line-height:17px;background-color:rgb(255,255,255)"><span style="font-size:small;font-family:Verdana,Arial,Helvetica">--</span><b style="font-family:Verdana,Arial,Helvetica;font-size:small;background-color:rgb(170,170,255)">libvirt_xml_template</b><span style="font-size:small;font-family:Verdana,Arial,Helvetica">=/etc/</span><b style="font-family:Verdana,Arial,Helvetica;font-size:small;background-color:rgb(255,255,128)">nova</b><span style="font-size:small;font-family:Verdana,Arial,Helvetica">/libvirt.xml.template </span></div>
<div style="font-size:13px;line-height:17px;background-color:rgb(255,255,255)"><span style="font-size:small;font-family:Verdana,Arial,Helvetica">3. Edit </span><span style="font-size:small;font-family:Verdana,Arial,Helvetica">/etc/</span><b style="font-family:Verdana,Arial,Helvetica;font-size:small;background-color:rgb(255,255,128)">nova</b><span style="font-size:small;font-family:Verdana,Arial,Helvetica">/libvirt.xml.template, add the following lines:</span></div>
<div style="font-size:13px;line-height:17px;background-color:rgb(255,255,255)"><pre style="border:1px solid rgb(153,153,153);background-color:rgb(238,238,238);padding:1em"> <devices>
    <sound model='ich6'>
      <codec type='micro'/>
    <sound/>
  </devices></pre></div><div style="font-size:13px;line-height:17px;background-color:rgb(255,255,255)">Hope this is helpful.</div><div style="font-size:13px;line-height:17px;background-color:rgb(255,255,255)"><br></div>
<div style="font-size:13px;line-height:17px;background-color:rgb(255,255,255)">Joey.</div><div><br></div><br>在 2013年1月11日星期五,Davide Guerri  写道:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Daniel,<br>
let me explain what I'm trying to do.<br>
I'm trying to setup a simple virtual desktop infrastructure on the top of OpenStack using both Windows (7 only atm) and Linux guests.<br>
<br>
On Linux the missing audio board wouldn't be a problem since I'm planning to use freeNX or x2go that in turn use an esound remote tcp connection through ssh.<br>
For windows guests (which I'm not an expert on) without an audio card installed I'm facing the following problem: for some remote desktop clients (CORD on OsX and Mocha RDP on iOS, for instance) seems there is no way to enable sound if the guest isn't configured with an audio card. Other rdp solutions (like the Microsoft RDC on OsX) use a "remote audio" device that make audio output work but there is no way to "enable" audio recording.<br>

A sound board like ich6 makes audio works as expected.<br>
<br>
In order to have a working simple VD solution I'll try to hack the code of nova to add a sound card.<br>
<br>
Thanks again,<br>
 Davide.<br>
<br>
<br>
<br>
<br>
On 11/gen/2013, at 12:59, Daniel P. Berrange <<a href="javascript:;" onclick="_e(event, 'cvml', 'berrange@redhat.com')">berrange@redhat.com</a>> wrote:<br>
<br>
> On Fri, Jan 11, 2013 at 12:29:35PM +0100, Davide Guerri wrote:<br>
>> Hi all,<br>
>> it's possible to add an audio card to the domain definition when using libvirt/kvm?<br>
>> If yes, how it can be done?<br>
>><br>
>> I'm using the Folsom release.<br>
><br>
> No, there isn't any support for audio devices in Nova / libvirt at this<br>
> time. How were you anticipating using it. Outputting via the host sound<br>
> card doesn't make sense, and I don't believe noVNC supports the VNC<br>
> audio extension. AFAIK, gtk-vnc is the only common VNC client supporting<br>
> audo, and that doesn't support the websockets tunnelling.<br>
><br>
> So even if we allowed audio devices, I'm not clear how you'd make use of it ?<br>
> If you can show how it'd be useful, adding audio devices is an easy RFE to<br>
> take care of<br>
><br>
> Daniel<br>
> --<br>
> |: <a href="http://berrange.com" target="_blank">http://berrange.com</a>      -o-    <a href="http://www.flickr.com/photos/dberrange/" target="_blank">http://www.flickr.com/photos/dberrange/</a> :|<br>
> |: <a href="http://libvirt.org" target="_blank">http://libvirt.org</a>              -o-             <a href="http://virt-manager.org" target="_blank">http://virt-manager.org</a> :|<br>
> |: <a href="http://autobuild.org" target="_blank">http://autobuild.org</a>       -o-         <a href="http://search.cpan.org/~danberr/" target="_blank">http://search.cpan.org/~danberr/</a> :|<br>
> |: <a href="http://entangle-photo.org" target="_blank">http://entangle-photo.org</a>       -o-       <a href="http://live.gnome.org/gtk-vnc" target="_blank">http://live.gnome.org/gtk-vnc</a> :|<br>
<br>
<br>
_______________________________________________<br>
Mailing list: <a href="https://launchpad.net/~openstack" target="_blank">https://launchpad.net/~openstack</a><br>
Post to     : <a href="javascript:;" onclick="_e(event, 'cvml', 'openstack@lists.launchpad.net')">openstack@lists.launchpad.net</a><br>
Unsubscribe : <a href="https://launchpad.net/~openstack" target="_blank">https://launchpad.net/~openstack</a><br>
More help   : <a href="https://help.launchpad.net/ListHelp" target="_blank">https://help.launchpad.net/ListHelp</a><br>
</blockquote>