Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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

2 Answers 2

up vote 0 down vote accepted

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

http://www.vmware.com/support/developer/viperltoolkit/

You could ask here:

http://communities.vmware.com/community/developer/forums/vsphere_sdk_perl
share|improve this answer
    
Yeah.. that's what I'm thinking too. Using the Java API (vijava.sf.net) 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

 
discard

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.