plug pre-created tap devices to libvirt guests

Miguel Duarte de Mora Barroso mdbarroso at redhat.com
Mon Apr 6 13:47:01 UTC 2020


Hi all,

I'm aware that it is possible to plug pre-created macvtap devices to
libvirt guests - tracked in RFE [0].

My interpretation of the wording in [1] and [2] is that it is also
possible to plug pre-created tap devices into libvirt guests - that
would be a requirement to allow kubevirt to run with less capabilities
in the pods that encapsulate the VMs.

I took a look at the libvirt code ([3] & [4]), and, from my limited
understanding, I got the impression that plugging existing interfaces
via `managed='no' ` is only possible for macvtap interfaces.

Would you be able to shed some light into this ? Is it possible on
libvirt-5.6.0 to plug pre-created tap devices to libvirt guests ?

[0] - https://bugzilla.redhat.com/show_bug.cgi?id=1723367
[1] - https://bugzilla.redhat.com/show_bug.cgi?id=1723367#c2
[2] - https://bugzilla.redhat.com/show_bug.cgi?id=1723367#c3
[3] - https://github.com/libvirt/libvirt/blob/master/src/qemu/qemu_interface.c#L434
[4] - https://github.com/libvirt/libvirt/blob/master/src/qemu/qemu_interface.c#L443





More information about the libvirt-users mailing list