ESX Virtualization

VMware ESXi, vSphere, VMware Backup, Hyper-V... how-to, videos....

Nakivo Backup and Replication - #1 Backup solution for Virtual, physical, cloud, NAS and SaaS

Menu
  • Certification
      • VCP-DCV vSphere 8
          • vcp2024-125.
        • Close
    • Close
  • VMware
    • Configuration Maximums
    • vSphere
      • vSphere 8.0
      • vSphere 7.0
      • vSphere 6.7
      • vSphere 6.5
      • vSphere 6.0
      • Close
    • VMworld
      • VMware EXPLORE 2024
      • VMware EXPLORE 2023
      • VMware EXPLORE 2022
      • VMworld 2019
      • VMworld 2018
      • VMworld 2017
      • VMworld 2016
      • VMworld 2015
      • VMworld 2014
      • VMworld 2013
      • VMworld 2012
      • VMworld 2011
      • Close
    • Close
  • Microsoft
    • Windows Server 2012
    • Windows Server 2016
    • Windows Server 2019
    • Close
  • Categories
    • Tips – VMware, Microsoft and General IT tips and definitions, What is this?, How this works?
    • Server Virtualization – VMware ESXi, ESXi Free Hypervizor, VMware vSphere Server Virtualization, VMware Cloud and Datacenter Virtualization
    • Backup – Virtualization Backup Solutions, VMware vSphere Backup and ESXi backup solutions.
    • Desktop Virtualization – Desktop Virtualization, VMware Workstation, VMware Fusion, VMware Horizon View, tips and tutorials
    • How To – ESXi Tutorials, IT and virtualization tutorials, VMware ESXi 4.x, ESXi 5.x and VMware vSphere. VMware Workstation and other IT tutorials.
    • Free – Free virtualization utilities, ESXi Free, Monitoring and free backup utilities for ESXi and Hyper-V. Free IT tools.
    • Videos – VMware Virtualization Videos, VMware ESXi Videos, ESXi 4.x, ESXi 5.x tips and videos.
    • Home Lab
    • Reviews – Virtualization Software and reviews, Disaster and backup recovery software reviews. Virtual infrastructure monitoring software review.
    • Close
  • Partners
    • NAKIVO
    • StarWind
    • Zerto
    • Xorux
    • Close
  • This Web
    • News
    • ESXi Lab
    • About
    • Advertise
    • Archives
    • Disclaimer
    • PDFs and Books
    • Close
  • Free
  • Privacy policy

Free Tool for Nested ESXi Labs – ESXi Mac Learning dvFilter

By Vladan SEGET | Last Updated: March 17, 2015

Shares

There is a free utility called ESXi MAC learning dvFilter released by VMware Labs last week. This utility is provided as a VIB and installs on the physical ESXi host, not on the virtual ESXi hosts.

I learned about it by reading posts from William Lam and Andreas Peetz. ESXi Mac Learning dvFilter is kind of a complementary utility to VMware tools for nested ESXi hosts. Nested ESXi tools allows working with nested ESXi hosts as if it were a usual VMs with VMware tools installed.

A while back I've done a video on how-to build a custom ISO image with VMware tools for nested ESXi. Custom ISO of VMware hypervizor with the VM tools “baked in”. The building process and working with ISO files is very useful if you're learning towards a VCP or VCAP exam as you can build a full blown nested lab by auto-deploy, host profiles and so on and really get good preparation for the exam with only single host. Even quite modest machine can be used for nested virtualization.

ESXi Mac Learning dvFilter – why it's useful?

When activating promiscuous mode on portgroup configured on physical ESXi where are the nested ESXi hosts connected, the traffic flow multiplies network packets. That's the behaviour before the tool implemented. After installing the tool the network traffic is back to normal and there is less CPU overhead too.

Andreas explains it better:

This ensures that the vESXi hosts do not only receive the network packets for their own management interfaces, but also for the nested VMs that they run themselves. But it has a drawback: Because of the promiscuous mode all network packets will be copied to all vESXi hosts all the time, and that leads to a lot of unnecessary network traffic and a notable compute overhead.

How to use it?

01.  Download the ESXi Mac Learning dvFilter here

02. Upload to a datastore visible to your ESXi and run this command

esxcli software vib install -v /vmfs/volumes/[DATASTORE-NAME]/vmware-esx-dvfilter-maclearn-0.1-ESX-5.0.vib -f

So in my example I uploaded it to one of my shared datastore:

esxcli software vib install -v /vmfs/volumes/[drobo01]/vmware-esx-dvfilter-maclearn-0.1-ESX-5.0.vib -f

03. Reboot

04. Each of your virtual ESXi hosts needs those two additional lines in VMX config file (if you having only single vNIC). In my case i had four vNICS so I had to add 8 lines to my VMX file.

Here are the lines:

ethernet0.filter4.name=dvfilter-maclearn
ethernet0.filter4.onFailure=failOpen

05. Check that the host has loaded the filter with this command:

/sbin/summarize-dvfilter

You should see an input like this.

 

ESXi Mac Learning dvFilter

 

The full screenshot looks like this as my nested ESXi VM has 4 NICs attached. Quite a long to display though…

ESXi MAC learning dvFilter

The tool was was build by Christian Dickman and William Lam.

Quote from VMware Labs:

MAC learning functionality solves performance problems for use cases like nested ESX. This ESX extension adds functionality to ESX to support MAC-learning on vswitch ports. For most ESX use cases, MAC learning is not required as ESX knows exactly which MAC address will be used by a VM. However, for applications like running nested ESX, i.e. ESX as a guest-VM on ESX, the situation is different.

As an ESX VM may emit packets for a multitude of different MAC addresses, it currently requires the vswitch port to be put in “promiscuous mode”. That however will lead to too many packets delivered into the ESX VM, as it leads to all packets on the vswitch being seen by all ESX VMs. When running several ESX VMs, this can lead to very significant CPU overhead and noticeable degradation in network throughput. Combining MAC learning with “promiscuous mode” solves this problem.

The MAC learning functionality is delivered as a high speed VMkernel extension that can be enabled on a per-port basis. It works on legacy standard switches as well as Virtual Distributed Switches.

I have recorded a video from the installation process.

The ESXi Mac learning dvFilter is compatible with ESXi 5.0 and higher.

Download here.

Check out William Lam's detailed post and also post by Andreas Peetz who is also showing how to install it from the V-Online depository.

I hope this post and video has helped someone to learn more about nested ESXi and VMware virtualization technology. Enjoy and big thanks to the VMware engineers.

Shares
Vote !

| Filed Under: Free Stuff, How To, Videos Tagged With: ESXi Mac Learning dvFilter, free tool ESXi, Nested ESXi

About Vladan SEGET

This website is maintained by Vladan SEGET. Vladan is as an Independent consultant, professional blogger, vExpert x16, Veeam Vanguard x9, VCAP-DCA/DCD, ESX Virtualization site has started as a simple bookmarking site, but quickly found a large following of readers and subscribers.

Connect on: Facebook. Feel free to network via Twitter @vladan.

Private Sponsors

Featured

  • Thinking about HCI? G2, an independent tech solutions peer review platform, has published its Winter 2023 Reports on Hyperconverged Infrastructure (HCI) Solutions.
  • Zerto: One Platform for Disaster Recovery, Backup & Cloud Mobility: Try FREE Hands-On Labs Today!
Click to Become a Sponsor

Most Recent

  • Veeam Backup & Replication v13 Beta: A Game-Changer with Linux
  • What is Veeam Data Cloud Vault and how it can help SMBs
  • Nakivo Backup and Replication – Malware Scan Feature
  • Zerto 10 U7 released with VMware NSX 4.2 Support
  • XorMon NG 1.9.0 Infrastructure Monitoring – now also with Veeam Backup Support
  • Heartbeat vs Node Majority StarWind VSAN Failover Strategy
  • Vulnerability in your VMs – VMware Tools Update
  • FREE version of StarWind VSAN vs Trial of Full version
  • Commvault’s Innovations at RSA Conference 2025 San Francisco
  • VMware ESXi FREE is FREE again!

Get new posts by email:

 

 

 

 

Support us on Ko-Fi

 

 

Buy Me a Coffee at ko-fi.com

Sponsors

Free Trials

  • DC Scope for VMware vSphere – optimization, capacity planning, and cost management. Download FREE Trial Here.
  • Augmented Inline Deduplication, Altaro VM Backup v9 For #VMware and #Hyper-V – Grab your copy now download TRIAL.

VMware Engineer Jobs

VMware Engineer Jobs

YouTube

…

Find us on Facebook

ESX Virtualization

…

Copyright © 2025 ·Dynamik-Gen · Genesis Framework · Log in