one icon indicating copy to clipboard operation
one copied to clipboard

Adding MacVTap Driver

Open OpenNebulaProject opened this issue 9 years ago • 5 comments


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:

  1. Virtual Ethernet Port Aggregator mode
  2. Bridge mode
  3. 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>

OpenNebulaProject avatar Nov 20 '17 00:11 OpenNebulaProject


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....

OpenNebulaProject avatar Nov 20 '17 00:11 OpenNebulaProject


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 :(

OpenNebulaProject avatar Nov 20 '17 00:11 OpenNebulaProject

This feature is currently provided by the SRIOV implementation. Closing, will reopen if needed

juanmont avatar Dec 01 '17 15:12 juanmont

@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.

FlorianHeigl avatar Dec 01 '17 16:12 FlorianHeigl

Ok reopening, we will evaluate the implementation and benefits over the current SR-IOV functionality

rsmontero avatar Dec 01 '17 17:12 rsmontero