Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is there a way to get metadata (i.e. VM Name, Annotations, etc.) from within the Guest OS? I'm using a Ubuntu JeOS template and want to run a script on startup which configures new VMs according to the metadata. This is on VMWare ESX.

share|improve this question
I would like to know the answer for this question as well. I guess you would not know this because the hypervisor would make such information transparent to the guest OS, unless such data would be part of the OEMID of your virtual hardware – A.Rashad May 25 '10 at 9:41
up vote 0 down vote accepted

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

You could ask here:
share|improve this answer
Yeah.. that's what I'm thinking too. Using the Java API ( and matching based on the IP address. Not perfect, but it will have to do. – Robert Wilson May 27 '10 at 14:10

I'm not aware of any published APIs that allow you to do this with ESX but I am also aware that VMWare have private APIs - fingers crossed they open them up soon.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.