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.
On Sat, May 27, 2017 at 09:27:15PM -0500, 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.This is not really a question you want an answer to, because no matter what the default NIC is, it is almost certainly the wrong NIC model to use for the majority of operating systems. Regards, Daniel -- |: https://berrange.com -o- https://www.flickr.com/photos/dberrange :| |: https://libvirt.org -o- https://fstop138.berrange.com :| |: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|
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