Getting metadata from within VMWare Guest OS

Solution 1:

I imagine you could use the vSphere SDK for Perl inside your VM to query those items:

You could ask here:

Solution 2:

You can set a VM's guestinfo property from the outside (e.g. with govc) and query it from the inside (requiring open-vm-tools):


govc vm.change -e '' <yourVM>


vmtoolsd --cmd "info-get"

Source:, RedHat's OpenShift on vSphere Installation Guide