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=0a85ee9d74f6c69a10275dbed5e4d9800d073ffb;hb=HEAD#l3180

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.py#L450

Michal

_______________________________________________
libvirt-users mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/libvirt-users

Reply via email to