I've tried following the instructions for the 4.2.x version and it is partially 
working. Upon the first boot after vm instance is created from the template, 
the hostname is visible at the login prompt as well as by running the hostname 
command. However, after rebooting the instance, the hostname is lost forever 
and (none) is shown instead of the hostname. I've not had much time to 
investigate why this is happening, but it happens all the time. 

Has anyone experienced similar? 

Andrei 
----- Original Message -----

> From: "Geoff Higginbottom" <geoff.higginbot...@shapeblue.com>
> To: "<users@cloudstack.apache.org>" <users@cloudstack.apache.org>
> Sent: Thursday, 22 January, 2015 11:59:13 PM
> Subject: Re: Hostname and IP address of VMs created from template.

> Dan,

> You need to make sure you have prepared the VM you used to make the
> template correctly.

> There are some instructions in the docs.
> http://docs.cloudstack.apache.org/projects/cloudstack-administration/en/4.4/templates.html

> Search for the section titled
> System preparation for Linux
> Regards

> Geoff Higginbottom
> CTO / Cloud Architect

> D: +44 20 3603 0542<tel:+442036030542> | S: +44 20 3603
> 0540<tel:+442036030540> | M: +447968161581<tel:+447968161581>

> geoff.higginbot...@shapeblue.com<mailto:geoff.higginbot...@shapeblue.com>
> | www.shapeblue.com<htp://www.shapeblue.com/> |
> Twitter:@cloudstackguru<https://twitter.com/#!/cloudstackguru>

> ShapeBlue Ltd, 53 Chandos Place, Covent Garden, London, WC2N
> 4HS<x-apple-data-detectors://5>

> On 22 Jan 2015, at 23:09, Somesh Naidu
> <somesh.na...@citrix.com<mailto:somesh.na...@citrix.com>> wrote:

> What guest is that? Did you check manually requesting a lease (like
> running dhclient or similar)?

> Somesh
> CloudPlatform Escalations
> Citrix Systems, Inc.

> -----Original Message-----
> From: Dan Dong [mailto:dongda...@gmail.com]
> Sent: Thursday, January 22, 2015 5:59 PM
> To: users@cloudstack.apache.org<mailto:users@cloudstack.apache.org>
> Subject: Hostname and IP address of VMs created from template.

> Hi,
> I found that when I create new instances from template of my own( a
> centos OS), the IP address
> and hostname are not set to the VM automatically, you have to login
> to the
> VM from the UI and set them manually, then a restart will get them
> take
> effect. Does anybody else observe the same issue?

> Cheers,
> Dan
> Find out more about ShapeBlue and our range of CloudStack related
> services

> IaaS Cloud Design &
> Build<http://shapeblue.com/iaas-cloud-design-and-build//>
> CSForge - rapid IaaS deployment
> framework<http://shapeblue.com/csforge/>
> CloudStack Consulting<http://shapeblue.com/cloudstack-consultancy/>
> CloudStack Software
> Engineering<http://shapeblue.com/cloudstack-software-engineering/>
> CloudStack Infrastructure
> Support<http://shapeblue.com/cloudstack-infrastructure-support/>
> CloudStack Bootcamp Training
> Courses<http://shapeblue.com/cloudstack-training/>

> This email and any attachments to it may be confidential and are
> intended solely for the use of the individual to whom it is
> addressed. Any views or opinions expressed are solely those of the
> author and do not necessarily represent those of Shape Blue Ltd or
> related companies. If you are not the intended recipient of this
> email, you must neither take any action based upon its contents, nor
> copy or show it to anyone. Please contact the sender if you believe
> you have received this email in error. Shape Blue Ltd is a company
> incorporated in England & Wales. ShapeBlue Services India LLP is a
> company incorporated in India and is operated under license from
> Shape Blue Ltd. Shape Blue Brasil Consultoria Ltda is a company
> incorporated in Brasil and is operated under license from Shape Blue
> Ltd. ShapeBlue SA Pty Ltd is a company registered by The Republic of
> South Africa and is traded under license from Shape Blue Ltd.
> ShapeBlue is a registered trademark.

Reply via email to