Good morning,
I tried cloud-init. I installed a package cloud-init, and everything works fine.
Thank you so much for you work.
Nicola
2015-01-15 11:18 GMT+01:00 nicola.gentile.to <nicola.gentile.to(a)gmail.com>:
Il 15/01/2015 10:04, Simone Tiraboschi ha scritto:
>
>
> ----- Original Message -----
>>
>> From: "nicola gentile" <nicola.gentile.to(a)gmail.com>
>> To: Users(a)ovirt.org
>> Sent: Wednesday, January 14, 2015 2:33:35 PM
>> Subject: Re: [ovirt-users] name of virtual machine and hostname
>>
>> Good morning,
>> sorry if I reply only now.
>> Let me explain better.
>> Once generated the vms, the hostname of the vms are the same of the
>> template, but I wish it was centos-01, centos-02, etc.
>> Is it possible?
>
> Yes, you can use cloud-init to set some parameters for each VM including
> the hostname.
> You should install the cloud-init rpm on your VMs (it would probably
> better to do it on the template one) and than you can set the parameters for
> each VM from 'Initial run' tab under 'Advanced option'.
Thank you so much, I will try as soon as possible.
>> Thanks,
>> Nicola
>>
>> 2014-06-29 15:43 GMT+02:00 Moti Asayag <masayag(a)redhat.com>:
>>>
>>>
>>> ----- Original Message -----
>>>>
>>>> From: "Shahar Havivi" <shaharh(a)redhat.com>
>>>> To: "Antoni Segura Puimedon" <asegurap(a)redhat.com>
>>>> Cc: Users(a)ovirt.org
>>>> Sent: Sunday, June 29, 2014 11:12:24 AM
>>>> Subject: Re: [ovirt-users] name of virtual machine and hostname
>>>>
>>>> On 27.06.14 05:18, Antoni Segura Puimedon wrote:
>>>>>
>>>>>
>>>>> ----- Original Message -----
>>>>>>
>>>>>> From: "nicola gentile"
<nicola.gentile.to(a)gmail.com>
>>>>>> To: Users(a)ovirt.org
>>>>>> Sent: Friday, June 27, 2014 11:16:51 AM
>>>>>> Subject: [ovirt-users] name of virtual machine and hostname
>>>>>>
>>>>>> Good morning,
>>>>>> I would like to ask you an information.
>>>>>> After I have installed ovirt, I have created a pool of vm with
name
>>>>>> like centos-?? (from 1 to 20)
>>>>>> and then ovirt generated 20 vm with name centos-1, centos-2,
centos-3
>>>>>> etc.
>>>>>> etc.
>>>>>> The problem is when the vm starts the hostname is not the same of
the
>>>>>> vm name in ovirt but is the same name of the template.
>>>>>> Is it possible to make sure that the name of vm and the hostname
is
>>>>>> identical?
>>>>>
>>>>> I guess that the way to go about it would be to use the cloudinit
>>>>> integration.
>>>>> I've not tried it myself, but:
>>>>>
http://www.ovirt.org/Features/Cloud-Init_Integration
>>>>> states that setting the hostname was one of the planned features
when
>>>>> the
>>>>> integration was designed.
>>>>
>>>> Setting the host name via cloud-init is currently supported - you can
>>>> set
>>>> it
>>>> via the Add/Edit VM via the "Initial Run" section or try to
run-once
>>>> the
>>>> VM
>>>> and look at the same "initial Run" section.
>>>> Please note that if you do Edit a VM that already run ie already
>>>> initialized
>>>> oVirt engine will not send the cloud-init data, you will need to use
>>>> run-once
>>>> dialog.
>>>>
>>>> What you reported looks like a bug - the VM name should be the hostname
>>>> and
>>>> not the template name.
>>>
>>> Unless Nicola referred to the template's host name, from which the vm
>>> pool
>>> was
>>> created. It might be if the template wasn't sealed.
>>>
>>> Nicola, could you clarify what did you mean by "template name"
which
>>> appears as
>>> the "host name" ?
>>>
>>> Thanks,
>>> Moti
>>>
>>>> Care to report the bug on bugzilla?
>>>> Thank you,
>>>> Shahar Havivi.
>>>>>>
>>>>>> Best regard
>>>>>>
>>>>>> Nicola Gentile
>>>>>> _______________________________________________
>>>>>> Users mailing list
>>>>>> Users(a)ovirt.org
>>>>>>
http://lists.ovirt.org/mailman/listinfo/users
>>>>>>
>>>>> _______________________________________________
>>>>> Users mailing list
>>>>> Users(a)ovirt.org
>>>>>
http://lists.ovirt.org/mailman/listinfo/users
>>>>
>>>> _______________________________________________
>>>> Users mailing list
>>>> Users(a)ovirt.org
>>>>
http://lists.ovirt.org/mailman/listinfo/users
>>>>
>> _______________________________________________
>> Users mailing list
>> Users(a)ovirt.org
>>
http://lists.ovirt.org/mailman/listinfo/users
>>