[Users] Obtain VM name from within VM?

2013-05-24 Thread Jonathan Daugherty
Hi, I'm interested to know whether it is possible to obtain a VM's name from within a VM. In particular I'd like to obtain VM names from within Linux guests for the purpose of setting up dynamic DNS based on the VM name. I don't see the VM name in the output of dmidecode and there doesn't appear

Re: [Users] Obtain VM name from within VM?

2013-05-25 Thread Itamar Heim
On 05/25/2013 02:07 AM, Jonathan Daugherty wrote: Hi, I'm interested to know whether it is possible to obtain a VM's name from within a VM. In particular I'd like to obtain VM names from within Linux guests for the purpose of setting up dynamic DNS based on the VM name. I don't see the VM name

Re: [Users] Obtain VM name from within VM?

2013-05-25 Thread Jonathan Daugherty
> 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 t

Re: [Users] Obtain VM name from within VM?

2013-05-25 Thread Itamar Heim
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

Re: [Users] Obtain VM name from within VM?

2013-05-27 Thread Greg Padgett
On 05/25/2013 04:01 AM, Itamar Heim wrote: On 05/25/2013 02:07 AM, Jonathan Daugherty wrote: Hi, I'm interested to know whether it is possible to obtain a VM's name from within a VM. In particular I'd like to obtain VM names from within Linux guests for the purpose of setting up dynamic DNS ba

Re: [Users] Obtain VM name from within VM?

2013-06-18 Thread Yuriy Demchenko
Hi, Is VMpayload supported by oVirt 3.2.2 el6? As I'm trying to set up startup hook to pass vmname via payload and getting nothing... my hook code quite simple (and maybe crude): domxml = hooking.read_domxml() domain = domxml.getElementsByTagName('domain')[0] payloads = domxml.createElement('

Re: [Users] Obtain VM name from within VM?

2013-06-19 Thread Itamar Heim
On 06/18/2013 10:59 AM, Yuriy Demchenko wrote: Hi, Is VMpayload supported by oVirt 3.2.2 el6? it should be. have you tried first passing payload via the engine? As I'm trying to set up startup hook to pass vmname via payload and getting nothing... my hook code quite simple (and maybe

Re: [Users] Obtain VM name from within VM?

2013-06-19 Thread Yuriy Demchenko
On 06/19/2013 02:31 PM, Itamar Heim wrote: On 06/18/2013 10:59 AM, Yuriy Demchenko wrote: Hi, Is VMpayload supported by oVirt 3.2.2 el6? it should be. have you tried first passing payload via the engine? erm, not quite understand what do you mean? via admin web-interface? there's no fields/

Re: [Users] Obtain VM name from within VM?

2013-06-19 Thread Itamar Heim
On 06/19/2013 03:03 PM, Yuriy Demchenko wrote: On 06/19/2013 02:31 PM, Itamar Heim wrote: On 06/18/2013 10:59 AM, Yuriy Demchenko wrote: Hi, Is VMpayload supported by oVirt 3.2.2 el6? it should be. have you tried first passing payload via the engine? erm, not quite understand what do you me