Thanks Pierre, It helps,
B.R. 2016-01-10 18:48 GMT+02:00 Pierre-Luc Dion <pd...@cloudops.com>: > S.Tolga, > > Did you tried latest version of cloud-init ~0.7.7? They added fixes that > was solving password set and reset for root or custom user, fixed ssh_key > and user-data. > here a presentation [1] I did few months ago about cloud-init + cloudstack > if it can help... > > PL > > [1] > > http://events.linuxfoundation.org/sites/events/files/slides/cloud-init_cloudstackdays-austin_0.4.pdf > > On Thu, Dec 31, 2015 at 9:53 AM, Naresh Kumar <bishno...@gmail.com> wrote: > > > Sorry for the confusion, I actually posted/added problem I’m facing. > > > > But now I have mange to get this working, I tried again with CentOS7 and > > its working. > > > > Answer to your question is that you can use “Reset password” option on VM > > quick view or VM details page, incase you forgot the root password and > want > > to reset it. > > > > > > Naresh Kumar > > bishno...@gmail.com > > > > > > > > > > > On 31-Dec-2015, at 6:19 PM, Semih Tolga DEMİR < > semihtolgade...@gmail.com> > > wrote: > > > > > > Thanks Naresh for your answer, > > > > > > But i want to learn how can use cloud-init to set again when i forget > or > > > reset root password, and this question is not only for CentOS 5.5 > > template, > > > I want general solution for all OS. If i can not use again cloud-init > > which > > > alternative solution recommend > > > > > > Thanks, > > > S.Tolga Demir > > > > > > 2015-12-31 12:36 GMT+02:00 Naresh Kumar <bishno...@gmail.com>: > > > > > >> Hi, > > >> > > >> > > >> I tired it as well on in-built CentOS 5.5 template(KVM): > > >> > > >> 1. ssh key works > > >> 2. password does’t work, default password “password” is working. > > >> 3. user-data post startup is not working . getting "ImportError: No > > module > > >> named DataSourceCloudStack” error. > > >> > > >> Thanks, > > >> Naresh Kumar > > >> bishno...@gmail.com > > >> > > >> > > >>> On 31-Dec-2015, at 2:41 PM, Semih Tolga DEMİR < > > semihtolgade...@gmail.com> > > >> wrote: > > >>> > > >>> Hi, > > >>> > > >>> I've configured cloudstack and installed cloud-init for my vm to set > > >>> something such as ssh-key, root password etc. But i've one question > > about > > >>> cloud-init works. Cloud-init works one time in default, so, if i > forget > > >> my > > >>> root password how i will set new password with cloud-init? > > >>> > > >>> Best Regards, > > >>> S.Tolga Demir > > >> > > >> > > > > >