VMware Cloud Community
needToFind
Contributor
Contributor

How to find IP addr of ESX from Guest OS

Hi,

Is there any possible to find IP address of ESX(Host IP) from Linux Guest OS?

Thanks.

0 Kudos
5 Replies
AntonVZhbankov
Immortal
Immortal

Actually there is no way. And which IP do you want to find, Service Console (there can be several interfaces), VMkernel (also can be several interfaces). In some cases there is no connectivity between virtual machine network and service networks, so it would be useless.


---

VMware vExpert '2009

http://blog.vadmin.ru

EMCCAe, HPE ASE, MCITP: SA+VA, VCP 3/4/5, VMware vExpert XO (14 stars)
VMUG Russia Leader
http://t.me/beerpanda
0 Kudos
virtuallysi
Enthusiast
Enthusiast

You could always use VMTools..... http://communities.vmware.com/thread/202822

0 Kudos
AndreTheGiant
Immortal
Immortal

Is there any possible to find IP address of ESX(Host IP) from Linux Guest OS?

Do you mean from the Service Console (in this case there are several commands) or from a generic Linux VM?

Andre

Andrew | http://about.me/amauro | http://vinfrastructure.it/ | @Andrea_Mauro
0 Kudos
needToFind
Contributor
Contributor

Hi Andre

from a generic Linux VM, i am trying to retrieve the ip.

I am writing a program to communicate esx server from Linux guest OS. There is no option given in VmwareTools to get HOST name.(GuestOS)

And i dont want to use any packages that is related to ESX or Vcenter. I am just using Shell Script.

I configured my ESX storage name, using IP address.

For example,

/vmfs/volumes/134.123.3.20:storage1/GuestLinux/GuestLinux.vmx

134.123.3.20, I am looking inside GuestOS and this is the IP of ESX server.

If i can able to locate my VMX location from guest, i can resolve my problem.

Do you have any idea about this?

0 Kudos
AndreTheGiant
Immortal
Immortal

You have to try with the link suggested before ( ).

Using VMware API from a VM.

Andre

Andrew | http://about.me/amauro | http://vinfrastructure.it/ | @Andrea_Mauro
0 Kudos