On 05/28/2017 04:27 AM, Leroy Tennison wrote:
Is there a way to determine what the hypervisor default NIC is?
I'm
using kvm/libvirt/qemu. If this is the wrong forum please please reply
with that.
Long story short, depending on what your quemu supports libvirt has a
preference function that tries to pick the most widely supported NIC model:
http://libvirt.org/git/?p=libvirt.git;a=blob;f=src/qemu/qemu_domain.c;h=0...
We don't query the OS in any way for the list of supported NIC models.
However, looks like virt-install has some logic on this matter too which
actually consults the guests OS (well, libosinfo):
https://github.com/virt-manager/virt-manager/blob/master/virtinst/osdict....
Michal