<div dir="ltr"><p dir="ltr" style="font-size:12.8000001907349px">This is a VM specific issue. You may be able to do so with cloud init but primarily you will need to go into the instance if you do this after the instance is booted.</p><div>during the build state, the hostname is part of cloud-init.</div><div>However, cloud-init has some fields that are read/set only once (IIRC).</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Aug 14, 2015 at 11:45 AM, mad Engineer <span dir="ltr"><<a href="mailto:themadengin33r@gmail.com" target="_blank">themadengin33r@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">so is editing cloudinit manually the only way to change hostname?.I wonder how would it get the instance name as hostname during build state.</div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Aug 14, 2015 at 11:06 PM, David Medberry <span dir="ltr"><<a href="mailto:medberry@gmail.com" target="_blank">medberry@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><p dir="ltr">This is a VM specific issue. You may be able to do so with cloud init but primarily you will need to go into the instance if you do this after the instance is booted.</p>
<p dir="ltr">How to do so within the instance is OS specific.</p>
<div class="gmail_quote"><div><div>On Aug 14, 2015 11:05 AM, "mad Engineer" <<a href="mailto:themadengin33r@gmail.com" target="_blank">themadengin33r@gmail.com</a>> wrote:<br type="attribution"></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div><div dir="ltr">is there any way to change hostname by changing instance name.<div>I tried changing instance name and then did a hard reboot but hostname is still the same.If this is not the right approach for changing hostname can some one tell me what should be done to change hostname of instances without logging to instance.</div><div><br></div><div>tried on Juno-Neutron and icehouse-nova-network none worked</div><div><br></div><div>Thanks for any help</div></div>
<br></div></div>_______________________________________________<br>
Mailing list: <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack" rel="noreferrer" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack</a><br>
Post to     : <a href="mailto:openstack@lists.openstack.org" target="_blank">openstack@lists.openstack.org</a><br>
Unsubscribe : <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack" rel="noreferrer" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack</a><br>
<br></blockquote></div>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div>