<html><head><style>body{font-family:Helvetica,Arial;font-size:13px}</style></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;">On December 8, 2015 at 06:24:29, Feadurn (<a href="mailto:feadurn@gmail.com">feadurn@gmail.com</a>) wrote:</div> <div><blockquote type="cite" class="clean_bq" style="font-family: Helvetica, Arial; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;"><span><div><div></div><div>I am still a little bit lost on the way to activate the "export<span class="Apple-converted-space"> </span><br>QEMU_AUDIO_DRV=alsa" when using libvirtd. There is an option in<span class="Apple-converted-space"> </span><br>libvirt/qemu.conf : nographics_allow_host_audio=1. Do I just need to<span class="Apple-converted-space"> </span><br>uncomment that line?<span class="Apple-converted-space"> </span><br><br>Thank you very much<span class="Apple-converted-space"> </span></div></div></span></blockquote></div><p>Hi Feadurn,</p><p>That was one of my reasons I haven’t migrate all my QEMU script to libvirt. I had issues enabling the host audio like I use in my plain QEMU script. If you’re using Alex’ wrapper script way [1], probably you can regex replace it with ALSA. I never tried myself though.</p><p>Reading the description,</p><p><span style="font-family: 'dejavu sans mono', monaco, 'lucida console', 'courier new', monospace; font-size: x-small; white-space: nowrap; background-color: rgb(238, 238, 255);"># By default, if no graphical front end is configured, libvirt will disable</span><br style="font-family: 'dejavu sans mono', monaco, 'lucida console', 'courier new', monospace; white-space: nowrap; background-color: rgb(238, 238, 255);"><span style="font-family: 'dejavu sans mono', monaco, 'lucida console', 'courier new', monospace; font-size: x-small; white-space: nowrap; background-color: rgb(238, 238, 255);"># QEMU audio output since directly talking to alsa/pulseaudio may not work</span><br style="font-family: 'dejavu sans mono', monaco, 'lucida console', 'courier new', monospace; white-space: nowrap; background-color: rgb(238, 238, 255);"><span style="font-family: 'dejavu sans mono', monaco, 'lucida console', 'courier new', monospace; font-size: x-small; white-space: nowrap; background-color: rgb(238, 238, 255);"># with various security settings. If you know what you're doing, enable</span><br style="font-family: 'dejavu sans mono', monaco, 'lucida console', 'courier new', monospace; white-space: nowrap; background-color: rgb(238, 238, 255);"><span style="font-family: 'dejavu sans mono', monaco, 'lucida console', 'courier new', monospace; font-size: x-small; white-space: nowrap; background-color: rgb(238, 238, 255);"># the setting below and libvirt will passthrough the QEMU_AUDIO_DRV</span><br style="font-family: 'dejavu sans mono', monaco, 'lucida console', 'courier new', monospace; white-space: nowrap; background-color: rgb(238, 238, 255);"><span style="font-family: 'dejavu sans mono', monaco, 'lucida console', 'courier new', monospace; font-size: x-small; white-space: nowrap; background-color: rgb(238, 238, 255);"># environment variable when using nographics.</span></p><p>I think that option is worth to try. Thanks for pointing this.</p><p><br></p><p>[1] http://vfio.blogspot.com/2015/05/vfio-gpu-how-to-series-part-5-vga-mode.html</p><p><font face="helvetica, arial">-- </font><br><span data-mce-style="orphans: 2; text-align: -webkit-auto; widows: 2; background-color: #ffffff; color: #020103; font-family: 'Times New Roman', serif;" style="color: rgb(2, 1, 3);"><font face="Calibri"><b>Okky Hendriansyah</b></font></span></p></body></html>