Adding MacVTap Driver
Author Name: Tobias Honacker (Tobias Honacker) Original Redmine Issue: 2043, https://dev.opennebula.org/issues/2043 Original Date: 2013-05-14
Macvtap is essentially a combination of the Macvlan driver and a Tap device. A Macvtap interface combines the properties of these two; it is an virtual interface with a tap-like software interface. With these driver i'm able to share a NIC to a VM without any bridged setup. In Libvirt its called "direct" which is much faster and for hosted server solutions much more efficient sharing public ips to VMs.
MacVTap support three modes:
- Virtual Ethernet Port Aggregator mode
- Bridge mode
- Private mode
Libvirt XML:
<devices>
<interface type='direct'>
<mac address='d0:0f:d0:0f:00:01'/>
<source dev='eth0' mode='bridge'/>
</interface>
<!-- More devices here... -->
</devices>
Original Redmine Comment Author Name: Ruben S. Montero (@rsmontero) Original Date: 2013-05-14T17:10:49Z
Very interesting indeed, adding it to our backlog to schedule in future releases....
Original Redmine Comment Author Name: Florian Heigl (Florian Heigl) Original Date: 2017-07-21T09:32:57Z
This is a standard feature on SR-IOV enabled nics by now. Would be wonderful if it got implemented after 4 years :(
This feature is currently provided by the SRIOV implementation. Closing, will reopen if needed
@juanmont Please reopen unless following is wrong: SR-IOV does afaik not support macvtap (or at least is not documented) macvtap has some benefits that make it preferrable over SR-IOV.
Ok reopening, we will evaluate the implementation and benefits over the current SR-IOV functionality