VMware Cloud Community
DevKhurana
Enthusiast
Enthusiast
Jump to solution

How to get ESXi Host Name within running VM

Is there any possibility to get ESXi host name within running windows VM via installed VMware Tools or any other way. Let us suppose I am working in a windows VM and I just want to know on which ESXi host or host version this VM is running. I googled and found below but this is not working.

vmtoolsd.exe --cmd "info-get guestinfo.hypervisor.hostname"

pastedImage_0.png

Reply
0 Kudos
1 Solution

Accepted Solutions
LucD
Leadership
Leadership
Jump to solution

If you want to use that concept, you will first have to set that guestinfo variable, and eventually make it permanent via the VMX file.

See William's post How to extract host information from within a VM?


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

View solution in original post

Reply
0 Kudos
1 Reply
LucD
Leadership
Leadership
Jump to solution

If you want to use that concept, you will first have to set that guestinfo variable, and eventually make it permanent via the VMX file.

See William's post How to extract host information from within a VM?


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

Reply
0 Kudos