[Users] Obtain VM name from within VM?

Itamar Heim iheim at redhat.com
Sat May 25 18:54:40 UTC 2013


On 05/25/2013 08:12 PM, Jonathan Daugherty wrote:
>> in the meantime, you could try and do this manually by passing it
>> via the vm payload field, which is mounted to the guest as a block
>> device.
>
> Thanks for the tip!  I'm not familiar with this feature and I don't
> see any information about it in the Redhat RHEV documentation.  All
> I've found is this:
>
>    http://www.ovirt.org/Features/VMPayload
>
> That suggests I can use the API to set this up, but is this possible
> via the administrative UI instead?  Could I do this in a creation-time
> VDSM hook?
>
> Thanks,
>

1. yes, you can do it via a hook using custom properties (that what the 
floppy/iso inject hooks were for, but they are now deprecated as the vm 
payload makes them redundant).

2. RHEV has this in 3.1. iirc, its only available via the API though[1]
cloud init should be available from the UI via the runonce dialog.

[1]https://access.redhat.com/site/documentation/en-US/Red_Hat_Enterprise_Virtualization/3.2-Beta/html-single/Developer_Guide/index.html#Virtual_Machine_Elements



More information about the Users mailing list