<!DOCTYPE html>
<html><head>
    <meta charset="UTF-8">
<style type="text/css">.mceResizeHandle {position: absolute;border: 1px solid black;background: #FFF;width: 5px;height: 5px;z-index: 10000}.mceResizeHandle:hover {background: #000}img[data-mce-selected] {outline: 1px solid black}img.mceClonedResizable, table.mceClonedResizable {position: absolute;outline: 1px dashed black;opacity: .5;z-index: 10000}
</style></head><body style=""><div>Hi Hamza,</div>
<div> </div>
<div>thank you for your answere. I learnd much about the cloud-init in this process.</div>
<div> </div>
<div>I found now a way to config this without maipulating the cloud.cfg on the intance directly. I start the new instance from the copied snapshot with user-data I can inject over the "configurations" tab of a new openstack instance. I use the following config for this:</div>
<div> </div>
<div>
<pre>#cloud-config
password: <password_default_user>
chpasswd: { expire: False }
ssh_pwauth: True
preserve_hostname: True<br><br><br></pre>
</div>
<div>I think I can do some more options which may be useful, but this works fine for me by now :-)</div>
<div> </div>
<div>Kind regards,</div>
<div>Michael</div>
<div> </div>
<blockquote type="cite" style="position: relative; margin-left: 0px; padding-left: 10px; border-left: solid 1px blue;">Achi Hamza <h16mara@gmail.com> hat am 5. Juli 2016 um 12:36 geschrieben:<br><br>
<div dir="ltr">Hi Michael,
<div> </div>
<div>
<div>Yes, you can comment out the modules that you don't need.</div>
<div> </div>
<div>I don't think it is a good idea to completely disable cloud-init functionality. If you do so, the instances wouldn't be able to automatically set hostnames, disk resize, SSH keys injection and more other benefits.</div>
<div> </div>
<div>If you would like to use password for authentication you need to change the property <strong>lock_passwd: True</strong> to <strong>lock_passwd: False </strong>under the section <strong>system_info</strong> in the /etc/cloud/cloud.cfg config file.</div>
<div> </div>
<div>I do not actually know what process <span style="font-size: 12.8px;">invokes</span> cloud-init.</div>
<div> </div>
<div>I hope the above helps.</div>
<div> </div>
<div>Regards,</div>
<div>Hamza</div>
</div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On 4 July 2016 at 08:31, Michael Stang <span><<a href="mailto:michael.stang@dhbw-mannheim.de" target="_blank">michael.stang@dhbw-mannheim.de</a>></span> wrote:<br>
<blockquote style="margin: 0 0 0 .8ex; border-left: 1px #ccc solid; padding-left: 1ex;"><span style="text-decoration: underline;"></span>
<div>
<div>Hi Hamza,</div>
<div> </div>
<div>thank you for your answere. So I have to comment out the modules i don't want to run when I understand this right?</div>
<div> </div>
<div>Why are the changes made to the instance when I start a snapshot of the instance and not every time when I start the instance itself? What event triggers the cloud-init to make this changes?</div>
<div> </div>
<div>What would happen when I remove the cloud-init package, will the instance still be working and what disadventages would I have then?</div>
<div> </div>
<div>Thank you and kind regards,</div>
<div>Michael</div>
<div> </div>
<div> </div>
<blockquote type="cite" style="margin-left: 0px; padding-left: 10px; border-left: solid 1px blue;">Achi Hamza <<a href="mailto:h16mara@gmail.com" target="_blank">h16mara@gmail.com</a>> hat am 2. Juli 2016 um 14:30 geschrieben:
<div>
<div class="h5"><br><br>
<div dir="ltr"><span style="font-size: 12.8px;">Hi Michael,</span><br>
<div><span style="font-size: 12.8px;"> </span></div>
<div><span style="font-size: 12.8px;">You can change this behavior in the </span>/<em>etc</em>/<em>cloud</em>/<em>cloud</em>.cfg config file.</div>
<div> </div>
<div>Regards,</div>
<div>Hamza</div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On 1 July 2016 at 07:02, Michael Stang <span><<a href="mailto:michael.stang@dhbw-mannheim.de" target="_blank">michael.stang@dhbw-mannheim.de</a>></span> wrote:<br>
<blockquote style="margin: 0 0 0 .8ex; border-left: 1px #ccc solid; padding-left: 1ex;"><span style="text-decoration: underline;"></span>
<div>
<div><span>Hi all,</span></div>
<div> </div>
<div>I tried to copy instances (based on the ubuntu cloud image) from our production cloud to our test cloud according to this description</div>
<div> </div>
<div><a href="http://docs.openstack.org/user-guide/cli_use_snapshots_to_migrate_instances.html" target="_blank">http://docs.openstack.org/user-guide/cli_use_snapshots_to_migrate_instances.html</a></div>
<div> </div>
<div>but when I start the instance on the test cloud the root password ist resetet and it seems that the cloud-init is invoked and change the instance like it is the first start. Is there a way to prevent this behaviour so the instance stays unchanged when I start it on the test cloud?</div>
<div> </div>
<div>Thanks and kind regards,</div>
<div>Michael</div>
</div>
<br>_______________________________________________<br> OpenStack-operators mailing list<br> <a href="mailto:OpenStack-operators@lists.openstack.org" target="_blank">OpenStack-operators@lists.openstack.org</a><br> <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators</a></blockquote>
</div>
</div>
</div>
</div>
</blockquote>
<div><br> </div>
Viele Grüße<br><br>Michael Stang<br>Laboringenieur, Dipl. Inf. (FH)<br><br>Duale Hochschule Baden-Württemberg Mannheim<br>Baden-Wuerttemberg Cooperative State University Mannheim<br>ZeMath Zentrum für mathematisch-naturwissenschaftliches Basiswissen<br>Fachbereich Informatik, Fakultät Technik<br>Coblitzallee 1-9<br>68163 Mannheim<br><br>Tel.: <a target="_blank">+49 (0)621 4105 - 1367</a><br><a href="mailto:michael.stang@dhbw-mannheim.de" target="_blank">michael.stang@dhbw-mannheim.de</a><br><a href="http://www.dhbw-mannheim.de" target="_blank">http://www.dhbw-mannheim.de</a><br><br><br><br><img src="http://www.dhbw-mannheim.de/fileadmin/media/mail/signatur/dhbw_logo_mail.jpg" border="0"><br><br></div>
</blockquote>
</div>
</div>
</blockquote>
<div><br> </div></body></html>