WilliamLam.com

  • About
    • About
    • Privacy
  • VMware Cloud Foundation
  • VKS
  • Homelab
    • Resources
    • Nested Virtualization
  • VMware Nostalgia
  • Apple
You are here: Home / vSphere / Detecting duplicate VM MAC Address using vCenter Server Alarm

Detecting duplicate VM MAC Address using vCenter Server Alarm

02.25.2015 by William Lam // 6 Comments

Having a duplicate VM MAC Address in your environment can lead to an extremely painful day of troubleshooting and it can also be tough to prevent depending on how and where you provision your VMs.

There are two cases that I can think of where a duplicate MAC Address can potentially occur:

  1. You manually assign a static MAC Address versus using dynamic assignment (includes VM import) and it conflicts with an already assigned MAC Address
  2. You migrate a VM from one vCenter Server to another and the destination vCenter Server has already assigned the MAC Address of the migrated VM

In both of these scenarios, when a duplicate MAC Address occurs, time is of the essence to quickly pin-point the source of the duplicated entry and quickly resolving the conflict. What would be nice is to be able to automatically detect that a MAC Address conflict has occurred and provide the necessary information of the offending VMs.

UPDATE (4/22) - Thanks to Petr, it turns out there is another MAC Address conflict event which I did not know about specifically for detecting duplicate entries for manually assigned MAC Addresses called "VM static MAC conflict". I definitely recommend creating an alarm for both Events for the vCenter Alarm.

While performing some research in my lab environment the other day, I accidentally stumbled onto this little tidbit in vCenter Server. It turns out there is an out of the box event called "VM Mac conflict" which can be triggered using a vCenter Server alarm when a duplicated MAC Address is detected for a VM. I was actually surprised that this was not one of the pre-created default alarms in vCenter Server as I can see this being extremely useful to have out of the box. In any case, it is simple enough to create a new vCenter Server Alarm and in the example below I called it "Dupe VM Mac Address".

duplicate-mac-address-alarm-0
To test our new alarm, I created a new VM called "VM1" which has been configured with static MAC Address that matches "VM2". Once the VM has been created, we can see that the alarm is immediately triggered and by clicking into the alarm details, it provides the details of the MAC Address and the offending VMs.

duplicate-mac-address-alarm-1
In my opinion this is an alarm that everyone should create in their environment to ensure that if this problem ever occurs, you can quickly get notified and resolve the problem. I have also reported this internally and asked if we can have this alarm created by default, so hopefully this will not be necessary in the near future 🙂

More from my site

  • Quick Tip - How to disable the landing page for vCenter Server 5.x & 6.x?
  • Considerations when migrating VMs between vCenter Servers
  • Other handy vSphere VOBs for creating vCenter Alarms
  • Handy VSAN VOBs for creating vCenter Alarms
  • How to automatically monitor VSAN Component threshold using a vCenter Alarm?

Categories // vSphere, vSphere 5.5, vSphere Web Client Tags // alarm, mac address, vSphere, vSphere 5.1, vSphere 5.5

Comments

  1. *protectedFouad says

    02/25/2015 at 5:05 pm

    Hello,

    I neeeeeeed this alarm but i don't see how to create it ?

    Thanks for all

    Reply
    • William Lam says

      02/25/2015 at 6:54 pm

      Here's the documentation on creating an alarm https://pubs.vmware.com/vsphere-55/index.jsp?topic=%2Fcom.vmware.vsphere.monitoring.doc%2FGUID-79AC1262-D701-4BC8-8F8D-F046AE0578CF.html

      Reply
  2. *protectedZach Dickinson says

    03/05/2015 at 8:50 pm

    This looks like it might be only available in one of the later updates for 5.5 New vSAN cluster for DR has it, but my "old" production cluster does not. In fact there are only a few VM checks in production, with many dozens available in DR.

    Reply
  3. *protectedPetr says

    04/22/2015 at 11:48 am

    Hello William,

    just in addition to your post. In our environment (5.1U3) we are using event "VM static MAC conflict" which work as expected.
    Event "VM MAC conflict" doesnt trigger any alarm when manually/auto assigned MAC addresses confilcts between VMs ...

    Reply
    • William Lam says

      04/22/2015 at 7:12 pm

      Hi Petr,

      Thank you very much for sharing this tidbit. I didn't know we had a different event for static MAC Address assignment. I've gone ahead and updated the blog post to reflect this additional information.

      Reply
  4. *protectedvirtigogo says

    02/24/2017 at 8:13 am

    Thanks for this, William. I want to do the opposite - I want to ignore the VM MAC conflict alarm in my testing. With vSphere 6.5, is there a way to do that?

    Reply

Thanks for the comment!Cancel reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Search

Thank Author

Author

William is Distinguished Platform Engineering Architect in the VMware Cloud Foundation (VCF) Division at Broadcom. His primary focus is helping customers and partners build, run and operate a modern Private Cloud using the VMware Cloud Foundation (VCF) platform.

Connect

  • Bluesky
  • Email
  • GitHub
  • LinkedIn
  • Mastodon
  • Reddit
  • RSS
  • Twitter
  • Vimeo

Recent

  • Programmatically accessing the Broadcom Compatibility Guide (BCG) 05/06/2025
  • Quick Tip - Validating Broadcom Download Token  05/01/2025
  • Supported chipsets for the USB Network Native Driver for ESXi Fling 04/23/2025
  • vCenter Identity Federation with Authelia 04/16/2025
  • vCenter Server Identity Federation with Kanidm 04/10/2025

Advertisment

Privacy & Cookies: This site uses cookies. By continuing to use this website, you agree to their use.
To find out more, including how to control cookies, see here: Cookie Policy

Copyright WilliamLam.com © 2025

 

Loading Comments...