How to create Host with additional sound card. [Libvirt]

Hi all,

I have a special need of provisioning vm’s with a sound card. I am using libvirt as hypervisior.
When creating hosts via foreman i am not able to add soundcards. I didn’t find any helpful option using hammer, too.

Is there any hidden possibility to solve this problem?

Foreman and Proxy versions: 1.15.1


I don’t think so - we use fog-libvirt which has baked-in XML descriptions of servers, and doesn’t expose much customizability there. I’ve had to hack those XMLs on more than one occasion :slight_smile:

If you know the XML snippet that you need to add to the definition of a VM, then try something like find / -wholename "*fog*server.xml" and see if you can locate where the XML is stored. Be aware that this will get overwritten on upgrade of fog-libvirt.

1 Like

Thank you very much!
I found the xml template in the following path.


I added my xml snippet for the sound card and now foreman creates vm’s as desired.



Glad tohear it’s now solved! Just to be aware, this change isn’t really something we support, so please make sure to update the server.xml.erb every time you update fog-libvirt

1 Like