RE: [Nolug] Is there a way to determine the host VMware box for a VM from inside the VM?

From: Dustin Puryear <>
Date: Thu, 10 Oct 2013 14:26:03 +0000
Message-ID: <>

Thanks for the note Jimmy. We were just looking for a scriptable solution inside a VM. Looks like Mischa gave us a solid direction.

Dustin Puryear, CEO
My direct number: 225-304-6402
Main: 225-706-8414 | Fax: 800-613-5731 |<>
Puryear IT, LLC - We see IT differently.
Baton Rouge IT Support<> & New Orleans IT Support<>
Cloud, Windows, Exchange, SQL Server, Linux, UNIX
2013 Honoree of the LSU 100: Fastest Growing Tiger Businesses<>
2012 Honoree of the Silicon Bayou 100<>
From: [] On Behalf Of Jimmy Hess
Sent: Thursday, October 10, 2013 6:46 AM
Subject: Re: [Nolug] Is there a way to determine the host VMware box for a VM from inside the VM?
On Wed, Oct 9, 2013 at 3:12 PM, Dustin Puryear <<>> wrote:
Good morning,
This might be achieved through the VIX API;  connecting to the host from the guest using the VMCI interface, VMware Tools commands,  or through the  "backdoor"  system operations  that hosts expose to VMs  for self-introspection.
In  practice,  if you want to find where a VM lives ---  you search for its hostname or IP address in vCenter; or through ESXi host management.
An alternative is to search by VM MAC address.  Lookup the MAC address of the virtual machine's eth0, and  then   script a search for VMs  containing that MAC address.
Or  SSH  into your switches,   and start tracing  the MAC address   through your L2  network,    until your trace lands on a switchport that belongs to an ESXi host
Got it?
Dustin Puryear, CEO
Nolug mailing list
Received on 10/10/13

This archive was generated by hypermail 2.2.0 : 10/10/13 EDT