<div dir="ltr"><font size="4">If you want to build ssh-key within the cloud image, you can try diskimage-builder to build your own cloud image:<br><a href="https://pypi.python.org/pypi/diskimage-builder/0.1.33">https://pypi.python.org/pypi/diskimage-builder/0.1.33</a></font><br></div><div class="gmail_extra"><br clear="all"><div><div dir="ltr"><div><font face="comic sans ms, sans-serif" size="4"><b><i>Best Regards!</i></b></font></div><font face="comic sans ms, sans-serif" size="4"><b><i>Chao Yan<br><font>--------------<br></font></i></b></font><font face="comic sans ms, sans-serif" size="4"><b><i><font>My twitter:Andy Yan <a href="https://twitter.com/yanchao727" target="_blank">@yanchao727</a></font></i></b></font><br><font face="comic sans ms, sans-serif" size="4"><b><i><font>My Weibo:<a href="http://weibo.com/herewearenow" target="_blank">http://weibo.com/herewearenow</a><br>--------------</font><br></i></b></font></div></div>
<br><div class="gmail_quote">2014-10-18 15:11 GMT+08:00 Mridhul Pax <span dir="ltr"><<a href="mailto:mridhul@live.com" target="_blank">mridhul@live.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


<div><div dir="ltr">I got the answer.<div><br></div><div>1. For login via putty, I need use the keypair and login as cloud-user</div><div><br></div><div>2. VNCwebconsole lofin was not possible. For that I need to use a custom centos image.<br><br><div><hr>Date: Wed, 15 Oct 2014 22:03:00 +0200<br>From: <a href="mailto:juergh@gmail.com" target="_blank">juergh@gmail.com</a><br>To: <a href="mailto:shardy@redhat.com" target="_blank">shardy@redhat.com</a><br>CC: <a href="mailto:openstack@lists.openstack.org" target="_blank">openstack@lists.openstack.org</a><span class=""><br>Subject: Re: [Openstack] Centos 7 root pasword<br><br></span><div dir="ltr"><div><div><br><div><div class="h5"><br>On Wed, Oct 15, 2014 at 11:33 AM, Steven Hardy <<a href="mailto:shardy@redhat.com" target="_blank">shardy@redhat.com</a>> wrote:<br>><br>> On Tue, Oct 14, 2014 at 01:11:40PM +0530, Mridhul Pax wrote:<br>> >    Hi Friends,<br>> >    I have downloaded a centos 7 image from the following site and created a<br>> >    glance image. Im able to provison a server via that image and the server<br>> >    booted up fine. Any one know how to login to the server ?<br>> >    I tried combinations like root/centos , centos/centos but no luck<br>> >    I downloaded the QCOW2 image from the following link :<br>> >    <a href="http://cloud.centos.org/centos/7/devel/" target="_blank">http://cloud.centos.org/centos/7/devel/</a><br><br></div></div></div><div><div class="h5"><div>This being a CentOS question, you'd be better off asking for help on the centos-devel mailing list. Anyways, there is no root and no password login for CentOS cloud images. That's the case for most (CentOS, Fedora, Debian, Ubuntu) community-built images which include the cloud-init package and rely on a metadata service to provide a public SSH key for cloud-init to fetch and inject into the instance. You need to create an SSH keypair in OpenStack and specify the key name when launching an instance and then use the private key to ssh to the instance, using user 'centos'.<br></div><br></div></div></div><div><div class="h5">...Juerg<br><br><div><div><br>> You've got some good suggestions already, bug FWIW I find virt-sysprep<br>> invaluable in these sort of situations:<br>><br>> <a href="http://rwmj.wordpress.com/2013/08/02/new-in-virt-sysprep-set-root-and-user-passwords/" target="_blank">http://rwmj.wordpress.com/2013/08/02/new-in-virt-sysprep-set-root-and-user-passwords/</a><br>><br>> It can be used to (amongst other things) set a root password in a cloud<br>> image for debugging, or run a firstboot script to, for example, disable a<br>> troublesome service while you debug it.<br>><br>> Steve<br>><br>> _______________________________________________<br>> Mailing list: <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack" 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" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack</a><br><br></div></div></div></div></div><div><div class="h5">
<br>_______________________________________________
Mailing list: <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack</a>
Post to     : <a href="mailto:openstack@lists.openstack.org" target="_blank">openstack@lists.openstack.org</a>
Unsubscribe : <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack</a></div></div></div></div>                                           </div></div>
<br>_______________________________________________<br>
Mailing list: <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack</a><br>
Post to     : <a href="mailto:openstack@lists.openstack.org">openstack@lists.openstack.org</a><br>
Unsubscribe : <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack</a><br>
<br></blockquote></div><br></div>