VMware vSphere

 View Only
  • 1.  any idea how to find which host a vm is on

    Posted Mar 14, 2018 03:31 PM

    I got a windows VM. is it possible to find which host the vm is on via its vmware tools?



  • 2.  RE: any idea how to find which host a vm is on

    Posted Mar 14, 2018 03:34 PM

    Not from inside the guest without vCenter credentials with those permissions.



  • 3.  RE: any idea how to find which host a vm is on

    Posted Mar 14, 2018 04:04 PM

    But if access is available (vCenter), then you can set the corresponding parameter, and then extract it to the VM via vmware tools.

    Or this parameter can already be set (which is unlikely).

    Nevertheless, you can try C:\Program Files\VMware\VMware Tools>vmtoolsd.exe --cmd "info-get guestinfo.hypervisor.hostname"



  • 4.  RE: any idea how to find which host a vm is on

    Posted Mar 19, 2018 01:27 PM

    I second this. The "vmtoolsd.exe --cmd "info-get guestinfo.hypervisor.hostname"" does the job.

    This seems to be complete guide how to use the feature

    https://www.virtuallyghetto.com/2011/01/how-to-extract-host-information-from.html