Last week I need to locate some traffic from physical switches to my virtual environment.. I need to find out which MAC address belong to which virtual machine (+ adapter).. time to script this include menu
#====================================================================#
# SCRIPT: Find_VM_by_MAC_address_menu.ps1 #
# FUNCTION: Find VM (+ adapter) by MAC address with easy menu #
# OWNER: Sander Daems #
# CREATED: 11/01/2011 #
# MODIFIED: 11/01/2011 #
# VERSION: v.1.0 #
#====================================================================#
# CHANGELOG: #
# #
# v.1.0 #
# - Created script; #
# #
#====================================================================#
# HOST - CUSTOM DEFINITIONS #
#====================================================================#
Write-Host "Let's find that damn address" -foregroundcolor green
#====================================================================#
$cluster = read-host "Select Cluster name"
$macaddress = read-host "Select MAC Address to find"
#====================================================================#
# Script #
#====================================================================#
Get-Cluster $cluster | Get-VM | Get-NetworkAdapter | Where-Object {$_.MacAddress -eq "$macaddress"} | Format-List -Property *
#====================================================================#

Sander Daems is founder and author of this blog and working as a Lead (Sr.) Consultant by UNICA ICT Solutions. Sander has over 15 years experience in IT, primary focus: virtualization and modern worksplace.
More Posts - Website
Follow Me:


After configuring a manual MAC address on a MAC based license server I received a error message:
The MAC Address entered is not in the valid range. Valid values are between 00:50:56:00:00:00 and 00:50:56:3F:FF:FF:FF
Error message:

Solution:
Without additional setting in the .VMX config file you won’t be able to assign a static MAC address in the range your require. To disable mac address checking before boot add the following line in the .VMX file.
ethernetX.checkMACAddress = “false”

Re-upload the .VMX config to the datastore and add the virtual machine to the inventory:

Sander Daems is founder and author of this blog and working as a Lead (Sr.) Consultant by UNICA ICT Solutions. Sander has over 15 years experience in IT, primary focus: virtualization and modern worksplace.
More Posts - Website
Follow Me:


After installing a new VMXNET3 network card my HP MAC based license server didn’t function anymore. To change the MAC address in the VMX file I used a very nice tool, called: Virtual MAC Tool created by Richard Garsthagen.
How to:
– Turn off your VM;
– Open Virtual MAC Tool;
– Connect your ESX host or VC;

– Select the VM and vNIC/Network you want to change the MAC address

Read more…
Sander Daems is founder and author of this blog and working as a Lead (Sr.) Consultant by UNICA ICT Solutions. Sander has over 15 years experience in IT, primary focus: virtualization and modern worksplace.
More Posts - Website
Follow Me:


Recent Comments