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?

Thanks,
Nicola

2014-06-29 15:43 GMT+02:00 Moti Asayag <masa...@redhat.com>:
>
>
> ----- Original Message -----
>> From: "Shahar Havivi" <shah...@redhat.com>
>> To: "Antoni Segura Puimedon" <asegu...@redhat.com>
>> Cc: Users@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...@gmail.com>
>> > > To: Users@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@ovirt.org
>> > > http://lists.ovirt.org/mailman/listinfo/users
>> > >
>> > _______________________________________________
>> > Users mailing list
>> > Users@ovirt.org
>> > http://lists.ovirt.org/mailman/listinfo/users
>> _______________________________________________
>> Users mailing list
>> Users@ovirt.org
>> http://lists.ovirt.org/mailman/listinfo/users
>>
_______________________________________________
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users

Reply via email to