Advertising

In my C++ code, I generate my own domain XML file and I
use virDomainCreateXML or virDomainDefineXML to launch my qemu VM. However,
when I get to check which commands are sent to the qemu commandline, I find
that libvirt has added so many extra parameters to the ones I have already
set. How can I prevent libvirt from adding any extra parameters to the ones
I originally defined in the domain XML?

What problems are you having with those? What specific ones are
problematic for you? Libvirt adds a lot of things so that the domain is
predictable, it can talk to it later on and so on. Some of them are
adding the same things you would have there without -no-defconfig and
similar. Just so we can guarantee some compatibility etc.