[ovirt-users] name of virtual machine and hostname

Shahar Havivi shaharh at redhat.com
Sun Jun 29 04:12:24 EDT 2014


On 27.06.14 05:18, Antoni Segura Puimedon wrote:
> 
> 
> ----- Original Message -----
> > From: "nicola gentile" <nicola.gentile.to at gmail.com>
> > To: Users at 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.

Care to report the bug on bugzilla?
Thank you,
Shahar Havivi.
> 
> > 
> > Best regard
> > 
> > Nicola Gentile
> > _______________________________________________
> > Users mailing list
> > Users at ovirt.org
> > http://lists.ovirt.org/mailman/listinfo/users
> > 
> _______________________________________________
> Users mailing list
> Users at ovirt.org
> http://lists.ovirt.org/mailman/listinfo/users


More information about the Users mailing list