<div dir="ltr">Hi Stephen, <div><br></div><div>Many thanks for your response! I figured that it wasn't a simple task to add sound support to Nova. The reason for having sound support is quite simple though: we'd like to provide sound to VDI instances, which is trivial without Nova.</div><div><br></div><div>/Z</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, 3 Jan 2023 at 16:58, Stephen Finucane <<a href="mailto:stephenfin@redhat.com">stephenfin@redhat.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Tue, 2022-12-27 at 17:40 +0200, Zakhar Kirpichenko wrote:<br>
> Hi! <br>
> <br>
> I'd like to have the following configuration added to every guest on a<br>
> specific host managed by Nova and libvirt/kvm: <br>
> <br>
>     <sound model='bla'><br>
>       <address type='pci' domain='0x0000' bus='0x00' slot='0x1b'<br>
> function='0x0'/><br>
>     </sound><br>
> <br>
> When I add the device manually to instance xml, it works as intended but the<br>
> instance configuration gets overwritten on instance stop/start or hard reboot<br>
> via Nova.<br>
<br>
Modifying libvirt's XML behind nova's back is a big no-no. You break the<br>
contract between the two. If you wanted audio support, you'd need to add this<br>
support to nova itself. This would require a spec, quite a bit of coding, and<br>
would not be backported. tbh, it's also hard to see this being prioritized since<br>
audio support for cloud-based VMs is a rather unusual request. If you wanted to<br>
persue this approach though, feel free to reach out on IRC (#openstack-nova on<br>
OFTC) and we can guide you.<br>
<br>
Stephen<br>
<br>
> <br>
> What is the currently supported / proper way to add a virtual sound device<br>
> without having to modify libvirt or Nova code? I would appreciate any advice. <br>
> <br>
> Best regards, <br>
> Zakhar<br>
<br>
</blockquote></div>