Re: Cloudstack instances - Reset VM password

2020-09-18 Thread Hean Seng
Hi Pearl

Thanks for sharing

On Fri, Sep 18, 2020 at 4:11 PM Pearl d'Silva 
wrote:

> Hi Hean,
>
> you can find this script at:
>
>
> https://github.com/apache/cloudstack/blob/4.14/setup/bindir/cloud-set-guest-password.in
>
> Thanks,
> 
> From: Hean Seng 
> Sent: Friday, September 18, 2020 1:26 PM
> To: users@cloudstack.apache.org 
> Subject: Re: Cloudstack instances - Reset VM password
>
> The link to download is seems not working
>
> Download the script file cloud-set-guest-password:
>
>-
>
> http://download.cloud.com/templates/4.2/bindir/cloud-set-guest-password.in
>
>
>
>
>
>
> On Fri, Sep 18, 2020 at 1:43 PM David Jumani 
> wrote:
>
> > Hi Hean,
> >
> > Cloudstack uses cloud-set-guest-password to reset the password
> >
> >
> http://docs.cloudstack.apache.org/en/4.11.1.0/adminguide/templates/_password.html#adding-password-management-to-templates
> >
> > Configuring cloud-init for Cloudstack can be found over here
> >
> >
> http://docs.cloudstack.apache.org/en/latest/adminguide/virtual_machines/user-data.html#using-cloud-init
> >
> >
> https://cloudinit.readthedocs.io/en/latest/topics/datasources/cloudstack.html
> >
> > Thanks,
> > David
> >
> > 
> > From: Hean Seng 
> > Sent: Friday, September 18, 2020 10:39 AM
> > To: users@cloudstack.apache.org 
> > Subject: Cloudstack instances - Reset VM password
> >
> > Is anybody know  Reset password for Cloudstack VM instance ,  it still
> > based on the script or CloudInit ?
> >
> > Anybody know how to make this work  ?
> >
> > And any best practice to make a template that can configure CloudInit ?
> >
> >
> >
> > --
> > Regards,
> > Hean Seng
> >
> > david.jum...@shapeblue.com
> > www.shapeblue.com<http://www.shapeblue.com>
> > 3 London Bridge Street,  3rd floor, News Building, London  SE1 9SGUK
> > @shapeblue
> >
> >
> >
> >
>
> --
> Regards,
> Hean Seng
>
> pearl.dsi...@shapeblue.com
> www.shapeblue.com
> 3 London Bridge Street,  3rd floor, News Building, London  SE1 9SGUK
> @shapeblue
>
>
>
>

-- 
Regards,
Hean Seng


Re: Cloudstack instances - Reset VM password

2020-09-18 Thread Pearl d'Silva
Hi Hean,

you can find this script at:

https://github.com/apache/cloudstack/blob/4.14/setup/bindir/cloud-set-guest-password.in

Thanks,

From: Hean Seng 
Sent: Friday, September 18, 2020 1:26 PM
To: users@cloudstack.apache.org 
Subject: Re: Cloudstack instances - Reset VM password

The link to download is seems not working

Download the script file cloud-set-guest-password:

   -
   http://download.cloud.com/templates/4.2/bindir/cloud-set-guest-password.in






On Fri, Sep 18, 2020 at 1:43 PM David Jumani 
wrote:

> Hi Hean,
>
> Cloudstack uses cloud-set-guest-password to reset the password
>
> http://docs.cloudstack.apache.org/en/4.11.1.0/adminguide/templates/_password.html#adding-password-management-to-templates
>
> Configuring cloud-init for Cloudstack can be found over here
>
> http://docs.cloudstack.apache.org/en/latest/adminguide/virtual_machines/user-data.html#using-cloud-init
>
> https://cloudinit.readthedocs.io/en/latest/topics/datasources/cloudstack.html
>
> Thanks,
> David
>
> 
> From: Hean Seng 
> Sent: Friday, September 18, 2020 10:39 AM
> To: users@cloudstack.apache.org 
> Subject: Cloudstack instances - Reset VM password
>
> Is anybody know  Reset password for Cloudstack VM instance ,  it still
> based on the script or CloudInit ?
>
> Anybody know how to make this work  ?
>
> And any best practice to make a template that can configure CloudInit ?
>
>
>
> --
> Regards,
> Hean Seng
>
> david.jum...@shapeblue.com
> www.shapeblue.com<http://www.shapeblue.com>
> 3 London Bridge Street,  3rd floor, News Building, London  SE1 9SGUK
> @shapeblue
>
>
>
>

--
Regards,
Hean Seng

pearl.dsi...@shapeblue.com 
www.shapeblue.com
3 London Bridge Street,  3rd floor, News Building, London  SE1 9SGUK
@shapeblue
  
 



Re: Cloudstack instances - Reset VM password

2020-09-18 Thread Hean Seng
The link to download is seems not working

Download the script file cloud-set-guest-password:

   -
   http://download.cloud.com/templates/4.2/bindir/cloud-set-guest-password.in






On Fri, Sep 18, 2020 at 1:43 PM David Jumani 
wrote:

> Hi Hean,
>
> Cloudstack uses cloud-set-guest-password to reset the password
>
> http://docs.cloudstack.apache.org/en/4.11.1.0/adminguide/templates/_password.html#adding-password-management-to-templates
>
> Configuring cloud-init for Cloudstack can be found over here
>
> http://docs.cloudstack.apache.org/en/latest/adminguide/virtual_machines/user-data.html#using-cloud-init
>
> https://cloudinit.readthedocs.io/en/latest/topics/datasources/cloudstack.html
>
> Thanks,
> David
>
> 
> From: Hean Seng 
> Sent: Friday, September 18, 2020 10:39 AM
> To: users@cloudstack.apache.org 
> Subject: Cloudstack instances - Reset VM password
>
> Is anybody know  Reset password for Cloudstack VM instance ,  it still
> based on the script or CloudInit ?
>
> Anybody know how to make this work  ?
>
> And any best practice to make a template that can configure CloudInit ?
>
>
>
> --
> Regards,
> Hean Seng
>
> david.jum...@shapeblue.com
> www.shapeblue.com
> 3 London Bridge Street,  3rd floor, News Building, London  SE1 9SGUK
> @shapeblue
>
>
>
>

-- 
Regards,
Hean Seng


Re: Cloudstack instances - Reset VM password

2020-09-17 Thread David Jumani
Hi Hean,

Cloudstack uses cloud-set-guest-password to reset the password
http://docs.cloudstack.apache.org/en/4.11.1.0/adminguide/templates/_password.html#adding-password-management-to-templates

Configuring cloud-init for Cloudstack can be found over here
http://docs.cloudstack.apache.org/en/latest/adminguide/virtual_machines/user-data.html#using-cloud-init
https://cloudinit.readthedocs.io/en/latest/topics/datasources/cloudstack.html

Thanks,
David


From: Hean Seng 
Sent: Friday, September 18, 2020 10:39 AM
To: users@cloudstack.apache.org 
Subject: Cloudstack instances - Reset VM password

Is anybody know  Reset password for Cloudstack VM instance ,  it still
based on the script or CloudInit ?

Anybody know how to make this work  ?

And any best practice to make a template that can configure CloudInit ?



--
Regards,
Hean Seng

david.jum...@shapeblue.com 
www.shapeblue.com
3 London Bridge Street,  3rd floor, News Building, London  SE1 9SGUK
@shapeblue
  
 



Cloudstack instances - Reset VM password

2020-09-17 Thread Hean Seng
Is anybody know  Reset password for Cloudstack VM instance ,  it still
based on the script or CloudInit ?

Anybody know how to make this work  ?

And any best practice to make a template that can configure CloudInit ?



-- 
Regards,
Hean Seng


Re: cloudstack reset VM password files

2018-11-28 Thread Ivan Kudryavtsev
Hello, FYI.
Our engineer managed to solve the problem for the password reset with bare
cloud-init and Ubuntu 16.04.
Confirm, it works, however it seems it uses hacks Yordan is talking about:
https://pastebin.com/Pattjr5a

пт, 9 нояб. 2018 г. в 17:48, Yordan Kostov :

> Hey Rene and Ivan,
>
> During tests my setup was utilizing Rene scripts:
> - 99_CloudStack.cfg script successfully makes cloud-init to use Cloudstack
> data.
> - 80_root.cfg script was preventing  cloud_init to start during boot
> (missing parameters error message) so I removed it and used the default
> config.cfg instead.
>
> Regarding the password change I figured it out - the password
> script is made to be run once per instance. The data about the password
> setup is kept by /var/lib/cloud/instances/ uuild>/sem/config_set_passwords file.  If you delete this file the next
> boot will fetch the ACD password but it will apply it for the user that has
> been set in cloud-init config file.
>
> Possible workarounds:
> - ugly - make sure the file is deleted after boot with the custom script
> cloud-init option.
> - clean - change the password script execution frequency per boot instead
> of per instance. Unfortunately I could not find the file that defines the
> frequency for the datasource file
> (/usr/lib/python2.7/site-packages/cloudinit/sources/DataSourceCloudStack.py).
>
>
> Best regards,
> Jordan
>
>
>
> -Original Message-
> From: Ivan Kudryavtsev [mailto:kudryavtsev...@bw-sw.com]
> Sent: Friday, November 9, 2018 9:48 PM
> To: m...@renemoser.net
> Cc: users 
> Subject: Re: cloudstack reset VM password files
>
> Rene, thank you for your confirmation that it works. I'll check it again,
> but my configuration looks like yours (haven't checked line by line) and
> password reset doesn't work with cloud-init from ubuntu apt repository. Our
> engineer rebuilds template delivery CI/CD pipeline now and we will have a
> chance to test again.
>
> пт, 9 нояб. 2018 г. в 14:41, Rene Moser :
>
> > Hi again
> >
> > Seems no one seems to read my stuff.
> >
> > cloud-init is able to reset the password (similar the scripts), see
> >
> > https://github.com/cloud-init/cloud-init/blob/master/cloudinit/sources
> > /DataSourceCloudStack.py#L45
> >
> >
> > WE USE IT! IT REALLY WORKS.
> >
> > Note that it uses the default user, e.g. for CentOS it is centos. That
> > is why we configure the default user.
> >
> > Look at the conifgs I wrote in the first mail.
> >
> > Regards
> > René
> >
>
>
> --
> With best regards, Ivan Kudryavtsev
> Bitworks LLC
> Cell RU: +7-923-414-1515
> Cell USA: +1-201-257-1512
> WWW: http://bitworks.software/ <http://bw-sw.com/>
>


-- 
With best regards, Ivan Kudryavtsev
Bitworks LLC
Cell RU: +7-923-414-1515
Cell USA: +1-201-257-1512
WWW: http://bitworks.software/ <http://bw-sw.com/>


RE: cloudstack reset VM password files

2018-11-09 Thread Yordan Kostov
Hey Rene and Ivan,

During tests my setup was utilizing Rene scripts:
- 99_CloudStack.cfg script successfully makes cloud-init to use Cloudstack data.
- 80_root.cfg script was preventing  cloud_init to start during boot (missing 
parameters error message) so I removed it and used the default config.cfg 
instead.
 
Regarding the password change I figured it out - the password script is 
made to be run once per instance. The data about the password setup is kept by 
/var/lib/cloud/instances//sem/config_set_passwords file.  If 
you delete this file the next boot will fetch the ACD password but it will 
apply it for the user that has been set in cloud-init config file.

Possible workarounds:
- ugly - make sure the file is deleted after boot with the custom script 
cloud-init option.
- clean - change the password script execution frequency per boot instead of 
per instance. Unfortunately I could not find the file that defines the 
frequency for the datasource file 
(/usr/lib/python2.7/site-packages/cloudinit/sources/DataSourceCloudStack.py). 

Best regards,
Jordan



-Original Message-
From: Ivan Kudryavtsev [mailto:kudryavtsev...@bw-sw.com] 
Sent: Friday, November 9, 2018 9:48 PM
To: m...@renemoser.net
Cc: users 
Subject: Re: cloudstack reset VM password files

Rene, thank you for your confirmation that it works. I'll check it again, but 
my configuration looks like yours (haven't checked line by line) and password 
reset doesn't work with cloud-init from ubuntu apt repository. Our engineer 
rebuilds template delivery CI/CD pipeline now and we will have a chance to test 
again.

пт, 9 нояб. 2018 г. в 14:41, Rene Moser :

> Hi again
>
> Seems no one seems to read my stuff.
>
> cloud-init is able to reset the password (similar the scripts), see
>
> https://github.com/cloud-init/cloud-init/blob/master/cloudinit/sources
> /DataSourceCloudStack.py#L45
>
>
> WE USE IT! IT REALLY WORKS.
>
> Note that it uses the default user, e.g. for CentOS it is centos. That 
> is why we configure the default user.
>
> Look at the conifgs I wrote in the first mail.
>
> Regards
> René
>


--
With best regards, Ivan Kudryavtsev
Bitworks LLC
Cell RU: +7-923-414-1515
Cell USA: +1-201-257-1512
WWW: http://bitworks.software/ <http://bw-sw.com/>


Re: cloudstack reset VM password files

2018-11-09 Thread Ivan Kudryavtsev
Rene, thank you for your confirmation that it works. I'll check it again,
but my configuration looks like yours (haven't checked line by line) and
password reset doesn't work with cloud-init from ubuntu apt repository. Our
engineer rebuilds template delivery CI/CD pipeline now and we will have a
chance to test again.

пт, 9 нояб. 2018 г. в 14:41, Rene Moser :

> Hi again
>
> Seems no one seems to read my stuff.
>
> cloud-init is able to reset the password (similar the scripts), see
>
> https://github.com/cloud-init/cloud-init/blob/master/cloudinit/sources/DataSourceCloudStack.py#L45
>
>
> WE USE IT! IT REALLY WORKS.
>
> Note that it uses the default user, e.g. for CentOS it is centos. That
> is why we configure the default user.
>
> Look at the conifgs I wrote in the first mail.
>
> Regards
> René
>


-- 
With best regards, Ivan Kudryavtsev
Bitworks LLC
Cell RU: +7-923-414-1515
Cell USA: +1-201-257-1512
WWW: http://bitworks.software/ 


Re: cloudstack reset VM password files

2018-11-09 Thread Rene Moser
Hi again

Seems no one seems to read my stuff.

cloud-init is able to reset the password (similar the scripts), see
https://github.com/cloud-init/cloud-init/blob/master/cloudinit/sources/DataSourceCloudStack.py#L45


WE USE IT! IT REALLY WORKS.

Note that it uses the default user, e.g. for CentOS it is centos. That
is why we configure the default user.

Look at the conifgs I wrote in the first mail.

Regards
René


Re: cloudstack reset VM password files

2018-11-09 Thread Rafael Weingärtner
Hey guys, I do not know how cloud-init is supposed to work regarding
passwords, but I recall having similar issues with SSH keys. After having a
key deployed, cloud-init would not update the key, if it was changed in
ACS/OpenStack (it has been almost two years that I tested this, so I am not
sure if this still persists). After reaching out the community
(cloud-init), I discovered that it was designed this way, and to change it
would require some work Cloud-init (not just ACS/OpenStack modules).

On Fri, Nov 9, 2018 at 4:56 PM Yordan Kostov <
yordan.kos...@worldsupport.info> wrote:

> Ivan,
>
> I can verify that deleting /run/cloud-init does not make the VM get
> another root password on the next boot (after changing it from ACD gui).
> Thank you for the info, if I make it work I will let you know.
>
> Best regards,
> Jordan
>
> -Original Message-
> From: Ivan Kudryavtsev [mailto:kudryavtsev...@bw-sw.com]
> Sent: Friday, November 9, 2018 8:51 PM
> To: users 
> Subject: Re: cloudstack reset VM password files
>
> Hi, Jordan. That's the question, indeed. That's why I was interested in
> the topic. I don't know the answer to your question. Hopefully, the best
> one is to change the CloudStack module, but the trick with removing
> 'breadcrumb'
> files also should work.
>
> пт, 9 нояб. 2018 г. в 13:43, Yordan Kostov <
> yordan.kos...@worldsupport.info
> >:
>
> > Hello Ivan,
> >
> > Currently working on cloud-init (for Centos 7.5) and how it
> > can be used without the Cloudstack default scripts. I tried deleting
> > the /run/cloud-init folder but the password is not changed. Is there
> > any other place that should be edited/removed  ?
> >
> > Best regards,
> > Jordan
> >
> > -Original Message-
> > From: Ivan Kudryavtsev [mailto:kudryavtsev...@bw-sw.com]
> > Sent: Friday, November 9, 2018 8:01 PM
> > To: users 
> > Subject: Re: cloudstack reset VM password files
> >
> > Hi, Fernando. We also use them. Just wondering if anyone managed these
> > tasks with pure cloud-init. I know it may be forced to do every time
> > checking by removing its tracking files from '/run/...'
> >
> > пт, 9 нояб. 2018 г. в 12:56, Alvarez Fernando
> >  > >:
> >
> > > Hello Ivan,
> > >
> > >
> > > We use the scripts cloud-set-guest-password (first password and
> > > reset
> > > password) and cloud-set-guest-sshkey (use sshkey user) in Debian 8,
> > > Debian 9, Centos 6 - RHEL6 and Centos 7 - RHEL 7 and works fine!.
> > >
> > > if you need them I can give them to you.
> > >
> > > You must put this 2 files in /etc/init.d in Debian and
> > > /etc/rc.d/init.d in Centos/RHEL.
> > > For other template initialization tasks we use cloud-init and works
> > > well too.
> > >
> > > Regards,
> > > Fernando.
> > > 
> > > De: Ivan Kudryavtsev 
> > > Enviado: viernes, 9 de noviembre de 2018 12:44:51
> > > Para: users
> > > Asunto: Re: cloudstack reset VM password files
> > >
> > > Hello, colleagues.
> > >
> > > Can cloud-init reset password as well? AFAIK initially it runs once
> > > for the password, root volume resizes, keys which is fine for
> > > initial deployment, but is not good for resetting the credentials.
> > >
> > > ср, 7 нояб. 2018 г. в 4:58, Yordan Kostov
> > >  > > >:
> > >
> > > > Thank you Simon and Andrija :).
> > > >
> > > >
> > > > -Original Message-
> > > > From: Andrija Panic [mailto:andrija.pa...@gmail.com]
> > > > Sent: Wednesday, November 7, 2018 11:31 AM
> > > > To: users 
> > > > Subject: Re: cloudstack reset VM password files
> > > >
> > > > Good stuff (btw I have been using old password init and MSI
> > > > installer for
> > > > win2016 and it works just fine for me).
> > > >
> > > > Cloudinit also supports automatic resize of root
> > > > partitions/filesystem on boot (usefull when you deploy VM from
> > > > small template but choose to make root disk bigger during vm
> creation).
> > > >
> > > > Cheers
> > > > Andrija
> > > >
> > > > On Wed, Nov 7, 2018, 10:01  > > >
> > > > > Hi,
> > > > >
> > > > > I can also highly recommend cloud-init. We use it for our
> > > > > templates as well. There is also a Window

RE: cloudstack reset VM password files

2018-11-09 Thread Yordan Kostov
Ivan,

I can verify that deleting /run/cloud-init does not make the VM get another 
root password on the next boot (after changing it from ACD gui). Thank you for 
the info, if I make it work I will let you know.

Best regards,
Jordan

-Original Message-
From: Ivan Kudryavtsev [mailto:kudryavtsev...@bw-sw.com] 
Sent: Friday, November 9, 2018 8:51 PM
To: users 
Subject: Re: cloudstack reset VM password files

Hi, Jordan. That's the question, indeed. That's why I was interested in the 
topic. I don't know the answer to your question. Hopefully, the best one is to 
change the CloudStack module, but the trick with removing 'breadcrumb'
files also should work.

пт, 9 нояб. 2018 г. в 13:43, Yordan Kostov :

> Hello Ivan,
>
> Currently working on cloud-init (for Centos 7.5) and how it 
> can be used without the Cloudstack default scripts. I tried deleting 
> the /run/cloud-init folder but the password is not changed. Is there 
> any other place that should be edited/removed  ?
>
> Best regards,
> Jordan
>
> -Original Message-
> From: Ivan Kudryavtsev [mailto:kudryavtsev...@bw-sw.com]
> Sent: Friday, November 9, 2018 8:01 PM
> To: users 
> Subject: Re: cloudstack reset VM password files
>
> Hi, Fernando. We also use them. Just wondering if anyone managed these 
> tasks with pure cloud-init. I know it may be forced to do every time 
> checking by removing its tracking files from '/run/...'
>
> пт, 9 нояб. 2018 г. в 12:56, Alvarez Fernando 
>  >:
>
> > Hello Ivan,
> >
> >
> > We use the scripts cloud-set-guest-password (first password and 
> > reset
> > password) and cloud-set-guest-sshkey (use sshkey user) in Debian 8, 
> > Debian 9, Centos 6 - RHEL6 and Centos 7 - RHEL 7 and works fine!.
> >
> > if you need them I can give them to you.
> >
> > You must put this 2 files in /etc/init.d in Debian and 
> > /etc/rc.d/init.d in Centos/RHEL.
> > For other template initialization tasks we use cloud-init and works 
> > well too.
> >
> > Regards,
> > Fernando.
> > 
> > De: Ivan Kudryavtsev 
> > Enviado: viernes, 9 de noviembre de 2018 12:44:51
> > Para: users
> > Asunto: Re: cloudstack reset VM password files
> >
> > Hello, colleagues.
> >
> > Can cloud-init reset password as well? AFAIK initially it runs once 
> > for the password, root volume resizes, keys which is fine for 
> > initial deployment, but is not good for resetting the credentials.
> >
> > ср, 7 нояб. 2018 г. в 4:58, Yordan Kostov 
> >  > >:
> >
> > > Thank you Simon and Andrija :).
> > >
> > >
> > > -Original Message-
> > > From: Andrija Panic [mailto:andrija.pa...@gmail.com]
> > > Sent: Wednesday, November 7, 2018 11:31 AM
> > > To: users 
> > > Subject: Re: cloudstack reset VM password files
> > >
> > > Good stuff (btw I have been using old password init and MSI 
> > > installer for
> > > win2016 and it works just fine for me).
> > >
> > > Cloudinit also supports automatic resize of root 
> > > partitions/filesystem on boot (usefull when you deploy VM from 
> > > small template but choose to make root disk bigger during vm creation).
> > >
> > > Cheers
> > > Andrija
> > >
> > > On Wed, Nov 7, 2018, 10:01  > >
> > > > Hi,
> > > >
> > > > I can also highly recommend cloud-init. We use it for our 
> > > > templates as well. There is also a Windows analogue of it (
> > > > https://cloudbase.it/cloudbase-init/) that I recently used to 
> > > > finally get password functionality to work properly on Windows
> Server 2016.
> > > >
> > > >
> > > > Simon Völker
> > > >
> > > > Fraunhofer-Gesellschaft e.V.
> > > > Schloss Birlinghoven
> > > > 53754 Sankt Augustin
> > > > Telefon: +49 2241 14-2311
> > > > E-mail: simon.voel...@zv.fraunhofer.de > > > simon.voel...@zv.fraunhofer.de>
> > > >
> > > >
> > > >
> > > > Am 07.11.2018 um 09:55 schrieb Yordan Kostov < 
> > > > yordan.kos...@worldsupport.info<mailto:Yordan.Kostov@worldsupport.
> > > > info
> > > >>:
> > > >
> > > > Thank you René,
> > > >
> > > > I will take it from here and test it. Some documentation will be 
> > > > on the way as well.
> > > >
> > > > Best regards,
> > > > Jordan
> > &g

Re: cloudstack reset VM password files

2018-11-09 Thread Ivan Kudryavtsev
Hi, Jordan. That's the question, indeed. That's why I was interested in the
topic. I don't know the answer to your question. Hopefully, the best one is
to change the CloudStack module, but the trick with removing 'breadcrumb'
files also should work.

пт, 9 нояб. 2018 г. в 13:43, Yordan Kostov :

> Hello Ivan,
>
> Currently working on cloud-init (for Centos 7.5) and how it can be
> used without the Cloudstack default scripts. I tried deleting the
> /run/cloud-init folder but the password is not changed. Is there any other
> place that should be edited/removed  ?
>
> Best regards,
> Jordan
>
> -Original Message-
> From: Ivan Kudryavtsev [mailto:kudryavtsev...@bw-sw.com]
> Sent: Friday, November 9, 2018 8:01 PM
> To: users 
> Subject: Re: cloudstack reset VM password files
>
> Hi, Fernando. We also use them. Just wondering if anyone managed these
> tasks with pure cloud-init. I know it may be forced to do every time
> checking by removing its tracking files from '/run/...'
>
> пт, 9 нояб. 2018 г. в 12:56, Alvarez Fernando
>  >:
>
> > Hello Ivan,
> >
> >
> > We use the scripts cloud-set-guest-password (first password and reset
> > password) and cloud-set-guest-sshkey (use sshkey user) in Debian 8,
> > Debian 9, Centos 6 - RHEL6 and Centos 7 - RHEL 7 and works fine!.
> >
> > if you need them I can give them to you.
> >
> > You must put this 2 files in /etc/init.d in Debian and
> > /etc/rc.d/init.d in Centos/RHEL.
> > For other template initialization tasks we use cloud-init and works
> > well too.
> >
> > Regards,
> > Fernando.
> > 
> > De: Ivan Kudryavtsev 
> > Enviado: viernes, 9 de noviembre de 2018 12:44:51
> > Para: users
> > Asunto: Re: cloudstack reset VM password files
> >
> > Hello, colleagues.
> >
> > Can cloud-init reset password as well? AFAIK initially it runs once
> > for the password, root volume resizes, keys which is fine for initial
> > deployment, but is not good for resetting the credentials.
> >
> > ср, 7 нояб. 2018 г. в 4:58, Yordan Kostov
> >  > >:
> >
> > > Thank you Simon and Andrija :).
> > >
> > >
> > > -Original Message-
> > > From: Andrija Panic [mailto:andrija.pa...@gmail.com]
> > > Sent: Wednesday, November 7, 2018 11:31 AM
> > > To: users 
> > > Subject: Re: cloudstack reset VM password files
> > >
> > > Good stuff (btw I have been using old password init and MSI
> > > installer for
> > > win2016 and it works just fine for me).
> > >
> > > Cloudinit also supports automatic resize of root
> > > partitions/filesystem on boot (usefull when you deploy VM from small
> > > template but choose to make root disk bigger during vm creation).
> > >
> > > Cheers
> > > Andrija
> > >
> > > On Wed, Nov 7, 2018, 10:01  > >
> > > > Hi,
> > > >
> > > > I can also highly recommend cloud-init. We use it for our
> > > > templates as well. There is also a Windows analogue of it (
> > > > https://cloudbase.it/cloudbase-init/) that I recently used to
> > > > finally get password functionality to work properly on Windows
> Server 2016.
> > > >
> > > >
> > > > Simon Völker
> > > >
> > > > Fraunhofer-Gesellschaft e.V.
> > > > Schloss Birlinghoven
> > > > 53754 Sankt Augustin
> > > > Telefon: +49 2241 14-2311
> > > > E-mail: simon.voel...@zv.fraunhofer.de > > > simon.voel...@zv.fraunhofer.de>
> > > >
> > > >
> > > >
> > > > Am 07.11.2018 um 09:55 schrieb Yordan Kostov <
> > > > yordan.kos...@worldsupport.info<mailto:Yordan.Kostov@worldsupport.
> > > > info
> > > >>:
> > > >
> > > > Thank you René,
> > > >
> > > > I will take it from here and test it. Some documentation will be
> > > > on the way as well.
> > > >
> > > > Best regards,
> > > > Jordan
> > > >
> > > > -Original Message-
> > > > From: Rene Moser [mailto:m...@renemoser.net]
> > > > Sent: Wednesday, November 7, 2018 10:46 AM
> > > > To:
> > > > users@cloudstack.apache.org<mailto:users@cloudstack.apache.org>
> > > > Subject: Re: cloudstack reset VM password files
> > > >
> > > > Hi
> > > >
> > > > Nowadays the cloud-init

RE: cloudstack reset VM password files

2018-11-09 Thread Yordan Kostov
Hello Ivan,

Currently working on cloud-init (for Centos 7.5) and how it can be used 
without the Cloudstack default scripts. I tried deleting the /run/cloud-init 
folder but the password is not changed. Is there any other place that should be 
edited/removed  ?

Best regards,
Jordan

-Original Message-
From: Ivan Kudryavtsev [mailto:kudryavtsev...@bw-sw.com] 
Sent: Friday, November 9, 2018 8:01 PM
To: users 
Subject: Re: cloudstack reset VM password files

Hi, Fernando. We also use them. Just wondering if anyone managed these tasks 
with pure cloud-init. I know it may be forced to do every time checking by 
removing its tracking files from '/run/...'

пт, 9 нояб. 2018 г. в 12:56, Alvarez Fernando :

> Hello Ivan,
>
>
> We use the scripts cloud-set-guest-password (first password and reset
> password) and cloud-set-guest-sshkey (use sshkey user) in Debian 8, 
> Debian 9, Centos 6 - RHEL6 and Centos 7 - RHEL 7 and works fine!.
>
> if you need them I can give them to you.
>
> You must put this 2 files in /etc/init.d in Debian and 
> /etc/rc.d/init.d in Centos/RHEL.
> For other template initialization tasks we use cloud-init and works 
> well too.
>
> Regards,
> Fernando.
> 
> De: Ivan Kudryavtsev 
> Enviado: viernes, 9 de noviembre de 2018 12:44:51
> Para: users
> Asunto: Re: cloudstack reset VM password files
>
> Hello, colleagues.
>
> Can cloud-init reset password as well? AFAIK initially it runs once 
> for the password, root volume resizes, keys which is fine for initial 
> deployment, but is not good for resetting the credentials.
>
> ср, 7 нояб. 2018 г. в 4:58, Yordan Kostov 
>  >:
>
> > Thank you Simon and Andrija :).
> >
> >
> > -Original Message-
> > From: Andrija Panic [mailto:andrija.pa...@gmail.com]
> > Sent: Wednesday, November 7, 2018 11:31 AM
> > To: users 
> > Subject: Re: cloudstack reset VM password files
> >
> > Good stuff (btw I have been using old password init and MSI 
> > installer for
> > win2016 and it works just fine for me).
> >
> > Cloudinit also supports automatic resize of root 
> > partitions/filesystem on boot (usefull when you deploy VM from small 
> > template but choose to make root disk bigger during vm creation).
> >
> > Cheers
> > Andrija
> >
> > On Wed, Nov 7, 2018, 10:01  >
> > > Hi,
> > >
> > > I can also highly recommend cloud-init. We use it for our 
> > > templates as well. There is also a Windows analogue of it (
> > > https://cloudbase.it/cloudbase-init/) that I recently used to 
> > > finally get password functionality to work properly on Windows Server 
> > > 2016.
> > >
> > >
> > > Simon Völker
> > >
> > > Fraunhofer-Gesellschaft e.V.
> > > Schloss Birlinghoven
> > > 53754 Sankt Augustin
> > > Telefon: +49 2241 14-2311
> > > E-mail: simon.voel...@zv.fraunhofer.de > > simon.voel...@zv.fraunhofer.de>
> > >
> > >
> > >
> > > Am 07.11.2018 um 09:55 schrieb Yordan Kostov < 
> > > yordan.kos...@worldsupport.info<mailto:Yordan.Kostov@worldsupport.
> > > info
> > >>:
> > >
> > > Thank you René,
> > >
> > > I will take it from here and test it. Some documentation will be 
> > > on the way as well.
> > >
> > > Best regards,
> > > Jordan
> > >
> > > -Original Message-
> > > From: Rene Moser [mailto:m...@renemoser.net]
> > > Sent: Wednesday, November 7, 2018 10:46 AM
> > > To: 
> > > users@cloudstack.apache.org<mailto:users@cloudstack.apache.org>
> > > Subject: Re: cloudstack reset VM password files
> > >
> > > Hi
> > >
> > > Nowadays the cloud-init [1] project supports cloudstack out of the 
> > > box and we switched our templates to only use cloud-init.
> > >
> > > Unfortunately the docs regarding cloudstack is not that great (it 
> > > is on my list to give back my finding). There are some great docs 
> > > here https://wiki.archlinux.org/index.php/Cloud-init.
> > >
> > > Our config under config dir /etc/cloud/cloud.cfg.d/ has two files
> > >
> > > - 80_root.cfg
> > > - 99_cloudstack.cfg
> > >
> > > 80_root.cfg contents is...
> > >
> > > system_info:
> > >  default_user:
> > >name: root
> > > disable_root: 0
> > > ssh_pwauth: 1
> > >
> > > ...and 99_cloudstack.cfg looks like...
> > >
> > > datasource:
> > >  CloudStack: {}
> > >  None: {}
> > > datasource_list:
> > >  - CloudStack
> > >
> > > Note that cloud-init has a ton of great features beside the 
> > > support of cloudstack.
> > >
> > > Hope that helps
> > >
> > > René
> > >
> > > [1] https://cloudinit.readthedocs.io/en/latest/
> > >
> > >
> > >
> >
>
>
> --
> With best regards, Ivan Kudryavtsev
> Bitworks LLC
> Cell RU: +7-923-414-1515
> Cell USA: +1-201-257-1512
> WWW: http://bitworks.software/ <http://bw-sw.com/>
>


--
With best regards, Ivan Kudryavtsev
Bitworks LLC
Cell RU: +7-923-414-1515
Cell USA: +1-201-257-1512
WWW: http://bitworks.software/ <http://bw-sw.com/>


Re: cloudstack reset VM password files

2018-11-09 Thread Ivan Kudryavtsev
Hi, Fernando. We also use them. Just wondering if anyone managed these
tasks with pure cloud-init. I know it may be forced to do every time
checking by removing its tracking files from '/run/...'

пт, 9 нояб. 2018 г. в 12:56, Alvarez Fernando :

> Hello Ivan,
>
>
> We use the scripts cloud-set-guest-password (first password and reset
> password) and cloud-set-guest-sshkey (use sshkey user) in Debian 8, Debian
> 9, Centos 6 - RHEL6 and Centos 7 - RHEL 7 and works fine!.
>
> if you need them I can give them to you.
>
> You must put this 2 files in /etc/init.d in Debian and /etc/rc.d/init.d in
> Centos/RHEL.
> For other template initialization tasks we use cloud-init and works well
> too.
>
> Regards,
> Fernando.
> 
> De: Ivan Kudryavtsev 
> Enviado: viernes, 9 de noviembre de 2018 12:44:51
> Para: users
> Asunto: Re: cloudstack reset VM password files
>
> Hello, colleagues.
>
> Can cloud-init reset password as well? AFAIK initially it runs once for the
> password, root volume resizes, keys which is fine for initial deployment,
> but is not good for resetting the credentials.
>
> ср, 7 нояб. 2018 г. в 4:58, Yordan Kostov  >:
>
> > Thank you Simon and Andrija :).
> >
> >
> > -Original Message-
> > From: Andrija Panic [mailto:andrija.pa...@gmail.com]
> > Sent: Wednesday, November 7, 2018 11:31 AM
> > To: users 
> > Subject: Re: cloudstack reset VM password files
> >
> > Good stuff (btw I have been using old password init and MSI installer for
> > win2016 and it works just fine for me).
> >
> > Cloudinit also supports automatic resize of root partitions/filesystem on
> > boot (usefull when you deploy VM from small template but choose to make
> > root disk bigger during vm creation).
> >
> > Cheers
> > Andrija
> >
> > On Wed, Nov 7, 2018, 10:01  >
> > > Hi,
> > >
> > > I can also highly recommend cloud-init. We use it for our templates as
> > > well. There is also a Windows analogue of it (
> > > https://cloudbase.it/cloudbase-init/) that I recently used to finally
> > > get password functionality to work properly on Windows Server 2016.
> > >
> > >
> > > Simon Völker
> > >
> > > Fraunhofer-Gesellschaft e.V.
> > > Schloss Birlinghoven
> > > 53754 Sankt Augustin
> > > Telefon: +49 2241 14-2311
> > > E-mail: simon.voel...@zv.fraunhofer.de > > simon.voel...@zv.fraunhofer.de>
> > >
> > >
> > >
> > > Am 07.11.2018 um 09:55 schrieb Yordan Kostov <
> > > yordan.kos...@worldsupport.info<mailto:yordan.kos...@worldsupport.info
> > >>:
> > >
> > > Thank you René,
> > >
> > > I will take it from here and test it. Some documentation will be on
> > > the way as well.
> > >
> > > Best regards,
> > > Jordan
> > >
> > > -Original Message-
> > > From: Rene Moser [mailto:m...@renemoser.net]
> > > Sent: Wednesday, November 7, 2018 10:46 AM
> > > To: users@cloudstack.apache.org<mailto:users@cloudstack.apache.org>
> > > Subject: Re: cloudstack reset VM password files
> > >
> > > Hi
> > >
> > > Nowadays the cloud-init [1] project supports cloudstack out of the box
> > > and we switched our templates to only use cloud-init.
> > >
> > > Unfortunately the docs regarding cloudstack is not that great (it is
> > > on my list to give back my finding). There are some great docs here
> > > https://wiki.archlinux.org/index.php/Cloud-init.
> > >
> > > Our config under config dir /etc/cloud/cloud.cfg.d/ has two files
> > >
> > > - 80_root.cfg
> > > - 99_cloudstack.cfg
> > >
> > > 80_root.cfg contents is...
> > >
> > > system_info:
> > >  default_user:
> > >name: root
> > > disable_root: 0
> > > ssh_pwauth: 1
> > >
> > > ...and 99_cloudstack.cfg looks like...
> > >
> > > datasource:
> > >  CloudStack: {}
> > >  None: {}
> > > datasource_list:
> > >  - CloudStack
> > >
> > > Note that cloud-init has a ton of great features beside the support of
> > > cloudstack.
> > >
> > > Hope that helps
> > >
> > > René
> > >
> > > [1] https://cloudinit.readthedocs.io/en/latest/
> > >
> > >
> > >
> >
>
>
> --
> With best regards, Ivan Kudryavtsev
> Bitworks LLC
> Cell RU: +7-923-414-1515
> Cell USA: +1-201-257-1512
> WWW: http://bitworks.software/ <http://bw-sw.com/>
>


-- 
With best regards, Ivan Kudryavtsev
Bitworks LLC
Cell RU: +7-923-414-1515
Cell USA: +1-201-257-1512
WWW: http://bitworks.software/ <http://bw-sw.com/>


Re: cloudstack reset VM password files

2018-11-09 Thread Alvarez Fernando
Hello Ivan,


We use the scripts cloud-set-guest-password (first password and reset password) 
and cloud-set-guest-sshkey (use sshkey user) in Debian 8, Debian 9, Centos 6 - 
RHEL6 and Centos 7 - RHEL 7 and works fine!.

if you need them I can give them to you.

You must put this 2 files in /etc/init.d in Debian and /etc/rc.d/init.d in 
Centos/RHEL.
For other template initialization tasks we use cloud-init and works well too.

Regards,
Fernando.

De: Ivan Kudryavtsev 
Enviado: viernes, 9 de noviembre de 2018 12:44:51
Para: users
Asunto: Re: cloudstack reset VM password files

Hello, colleagues.

Can cloud-init reset password as well? AFAIK initially it runs once for the
password, root volume resizes, keys which is fine for initial deployment,
but is not good for resetting the credentials.

ср, 7 нояб. 2018 г. в 4:58, Yordan Kostov :

> Thank you Simon and Andrija :).
>
>
> -Original Message-
> From: Andrija Panic [mailto:andrija.pa...@gmail.com]
> Sent: Wednesday, November 7, 2018 11:31 AM
> To: users 
> Subject: Re: cloudstack reset VM password files
>
> Good stuff (btw I have been using old password init and MSI installer for
> win2016 and it works just fine for me).
>
> Cloudinit also supports automatic resize of root partitions/filesystem on
> boot (usefull when you deploy VM from small template but choose to make
> root disk bigger during vm creation).
>
> Cheers
> Andrija
>
> On Wed, Nov 7, 2018, 10:01 
> > Hi,
> >
> > I can also highly recommend cloud-init. We use it for our templates as
> > well. There is also a Windows analogue of it (
> > https://cloudbase.it/cloudbase-init/) that I recently used to finally
> > get password functionality to work properly on Windows Server 2016.
> >
> >
> > Simon Völker
> >
> > Fraunhofer-Gesellschaft e.V.
> > Schloss Birlinghoven
> > 53754 Sankt Augustin
> > Telefon: +49 2241 14-2311
> > E-mail: simon.voel...@zv.fraunhofer.de > simon.voel...@zv.fraunhofer.de>
> >
> >
> >
> > Am 07.11.2018 um 09:55 schrieb Yordan Kostov <
> > yordan.kos...@worldsupport.info<mailto:yordan.kos...@worldsupport.info
> >>:
> >
> > Thank you René,
> >
> > I will take it from here and test it. Some documentation will be on
> > the way as well.
> >
> > Best regards,
> > Jordan
> >
> > -Original Message-
> > From: Rene Moser [mailto:m...@renemoser.net]
> > Sent: Wednesday, November 7, 2018 10:46 AM
> > To: users@cloudstack.apache.org<mailto:users@cloudstack.apache.org>
> > Subject: Re: cloudstack reset VM password files
> >
> > Hi
> >
> > Nowadays the cloud-init [1] project supports cloudstack out of the box
> > and we switched our templates to only use cloud-init.
> >
> > Unfortunately the docs regarding cloudstack is not that great (it is
> > on my list to give back my finding). There are some great docs here
> > https://wiki.archlinux.org/index.php/Cloud-init.
> >
> > Our config under config dir /etc/cloud/cloud.cfg.d/ has two files
> >
> > - 80_root.cfg
> > - 99_cloudstack.cfg
> >
> > 80_root.cfg contents is...
> >
> > system_info:
> >  default_user:
> >name: root
> > disable_root: 0
> > ssh_pwauth: 1
> >
> > ...and 99_cloudstack.cfg looks like...
> >
> > datasource:
> >  CloudStack: {}
> >  None: {}
> > datasource_list:
> >  - CloudStack
> >
> > Note that cloud-init has a ton of great features beside the support of
> > cloudstack.
> >
> > Hope that helps
> >
> > René
> >
> > [1] https://cloudinit.readthedocs.io/en/latest/
> >
> >
> >
>


--
With best regards, Ivan Kudryavtsev
Bitworks LLC
Cell RU: +7-923-414-1515
Cell USA: +1-201-257-1512
WWW: http://bitworks.software/ <http://bw-sw.com/>


Re: cloudstack reset VM password files

2018-11-09 Thread Ivan Kudryavtsev
Hello, colleagues.

Can cloud-init reset password as well? AFAIK initially it runs once for the
password, root volume resizes, keys which is fine for initial deployment,
but is not good for resetting the credentials.

ср, 7 нояб. 2018 г. в 4:58, Yordan Kostov :

> Thank you Simon and Andrija :).
>
>
> -Original Message-
> From: Andrija Panic [mailto:andrija.pa...@gmail.com]
> Sent: Wednesday, November 7, 2018 11:31 AM
> To: users 
> Subject: Re: cloudstack reset VM password files
>
> Good stuff (btw I have been using old password init and MSI installer for
> win2016 and it works just fine for me).
>
> Cloudinit also supports automatic resize of root partitions/filesystem on
> boot (usefull when you deploy VM from small template but choose to make
> root disk bigger during vm creation).
>
> Cheers
> Andrija
>
> On Wed, Nov 7, 2018, 10:01 
> > Hi,
> >
> > I can also highly recommend cloud-init. We use it for our templates as
> > well. There is also a Windows analogue of it (
> > https://cloudbase.it/cloudbase-init/) that I recently used to finally
> > get password functionality to work properly on Windows Server 2016.
> >
> >
> > Simon Völker
> >
> > Fraunhofer-Gesellschaft e.V.
> > Schloss Birlinghoven
> > 53754 Sankt Augustin
> > Telefon: +49 2241 14-2311
> > E-mail: simon.voel...@zv.fraunhofer.de > simon.voel...@zv.fraunhofer.de>
> >
> >
> >
> > Am 07.11.2018 um 09:55 schrieb Yordan Kostov <
> > yordan.kos...@worldsupport.info<mailto:yordan.kos...@worldsupport.info
> >>:
> >
> > Thank you René,
> >
> > I will take it from here and test it. Some documentation will be on
> > the way as well.
> >
> > Best regards,
> > Jordan
> >
> > -Original Message-
> > From: Rene Moser [mailto:m...@renemoser.net]
> > Sent: Wednesday, November 7, 2018 10:46 AM
> > To: users@cloudstack.apache.org<mailto:users@cloudstack.apache.org>
> > Subject: Re: cloudstack reset VM password files
> >
> > Hi
> >
> > Nowadays the cloud-init [1] project supports cloudstack out of the box
> > and we switched our templates to only use cloud-init.
> >
> > Unfortunately the docs regarding cloudstack is not that great (it is
> > on my list to give back my finding). There are some great docs here
> > https://wiki.archlinux.org/index.php/Cloud-init.
> >
> > Our config under config dir /etc/cloud/cloud.cfg.d/ has two files
> >
> > - 80_root.cfg
> > - 99_cloudstack.cfg
> >
> > 80_root.cfg contents is...
> >
> > system_info:
> >  default_user:
> >name: root
> > disable_root: 0
> > ssh_pwauth: 1
> >
> > ...and 99_cloudstack.cfg looks like...
> >
> > datasource:
> >  CloudStack: {}
> >  None: {}
> > datasource_list:
> >  - CloudStack
> >
> > Note that cloud-init has a ton of great features beside the support of
> > cloudstack.
> >
> > Hope that helps
> >
> > René
> >
> > [1] https://cloudinit.readthedocs.io/en/latest/
> >
> >
> >
>


-- 
With best regards, Ivan Kudryavtsev
Bitworks LLC
Cell RU: +7-923-414-1515
Cell USA: +1-201-257-1512
WWW: http://bitworks.software/ <http://bw-sw.com/>


RE: cloudstack reset VM password files

2018-11-07 Thread Yordan Kostov
Thank you Simon and Andrija :).


-Original Message-
From: Andrija Panic [mailto:andrija.pa...@gmail.com] 
Sent: Wednesday, November 7, 2018 11:31 AM
To: users 
Subject: Re: cloudstack reset VM password files

Good stuff (btw I have been using old password init and MSI installer for
win2016 and it works just fine for me).

Cloudinit also supports automatic resize of root partitions/filesystem on boot 
(usefull when you deploy VM from small template but choose to make root disk 
bigger during vm creation).

Cheers
Andrija

On Wed, Nov 7, 2018, 10:01  Hi,
>
> I can also highly recommend cloud-init. We use it for our templates as 
> well. There is also a Windows analogue of it (
> https://cloudbase.it/cloudbase-init/) that I recently used to finally 
> get password functionality to work properly on Windows Server 2016.
>
>
> Simon Völker
>
> Fraunhofer-Gesellschaft e.V.
> Schloss Birlinghoven
> 53754 Sankt Augustin
> Telefon: +49 2241 14-2311
> E-mail: simon.voel...@zv.fraunhofer.de simon.voel...@zv.fraunhofer.de>
>
>
>
> Am 07.11.2018 um 09:55 schrieb Yordan Kostov <
> yordan.kos...@worldsupport.info<mailto:yordan.kos...@worldsupport.info>>:
>
> Thank you René,
>
> I will take it from here and test it. Some documentation will be on 
> the way as well.
>
> Best regards,
> Jordan
>
> -Original Message-
> From: Rene Moser [mailto:m...@renemoser.net]
> Sent: Wednesday, November 7, 2018 10:46 AM
> To: users@cloudstack.apache.org<mailto:users@cloudstack.apache.org>
> Subject: Re: cloudstack reset VM password files
>
> Hi
>
> Nowadays the cloud-init [1] project supports cloudstack out of the box 
> and we switched our templates to only use cloud-init.
>
> Unfortunately the docs regarding cloudstack is not that great (it is 
> on my list to give back my finding). There are some great docs here 
> https://wiki.archlinux.org/index.php/Cloud-init.
>
> Our config under config dir /etc/cloud/cloud.cfg.d/ has two files
>
> - 80_root.cfg
> - 99_cloudstack.cfg
>
> 80_root.cfg contents is...
>
> system_info:
>  default_user:
>name: root
> disable_root: 0
> ssh_pwauth: 1
>
> ...and 99_cloudstack.cfg looks like...
>
> datasource:
>  CloudStack: {}
>  None: {}
> datasource_list:
>  - CloudStack
>
> Note that cloud-init has a ton of great features beside the support of 
> cloudstack.
>
> Hope that helps
>
> René
>
> [1] https://cloudinit.readthedocs.io/en/latest/
>
>
>


Re: cloudstack reset VM password files

2018-11-07 Thread Andrija Panic
Good stuff (btw I have been using old password init and MSI installer for
win2016 and it works just fine for me).

Cloudinit also supports automatic resize of root partitions/filesystem on
boot (usefull when you deploy VM from small template but choose to make
root disk bigger during vm creation).

Cheers
Andrija

On Wed, Nov 7, 2018, 10:01  Hi,
>
> I can also highly recommend cloud-init. We use it for our templates as
> well. There is also a Windows analogue of it (
> https://cloudbase.it/cloudbase-init/) that I recently used to finally get
> password functionality to work properly on Windows Server 2016.
>
>
> Simon Völker
>
> Fraunhofer-Gesellschaft e.V.
> Schloss Birlinghoven
> 53754 Sankt Augustin
> Telefon: +49 2241 14-2311
> E-mail: simon.voel...@zv.fraunhofer.de simon.voel...@zv.fraunhofer.de>
>
>
>
> Am 07.11.2018 um 09:55 schrieb Yordan Kostov <
> yordan.kos...@worldsupport.info<mailto:yordan.kos...@worldsupport.info>>:
>
> Thank you René,
>
> I will take it from here and test it. Some documentation will be on the
> way as well.
>
> Best regards,
> Jordan
>
> -Original Message-
> From: Rene Moser [mailto:m...@renemoser.net]
> Sent: Wednesday, November 7, 2018 10:46 AM
> To: users@cloudstack.apache.org<mailto:users@cloudstack.apache.org>
> Subject: Re: cloudstack reset VM password files
>
> Hi
>
> Nowadays the cloud-init [1] project supports cloudstack out of the box and
> we switched our templates to only use cloud-init.
>
> Unfortunately the docs regarding cloudstack is not that great (it is on my
> list to give back my finding). There are some great docs here
> https://wiki.archlinux.org/index.php/Cloud-init.
>
> Our config under config dir /etc/cloud/cloud.cfg.d/ has two files
>
> - 80_root.cfg
> - 99_cloudstack.cfg
>
> 80_root.cfg contents is...
>
> system_info:
>  default_user:
>name: root
> disable_root: 0
> ssh_pwauth: 1
>
> ...and 99_cloudstack.cfg looks like...
>
> datasource:
>  CloudStack: {}
>  None: {}
> datasource_list:
>  - CloudStack
>
> Note that cloud-init has a ton of great features beside the support of
> cloudstack.
>
> Hope that helps
>
> René
>
> [1] https://cloudinit.readthedocs.io/en/latest/
>
>
>


Re: cloudstack reset VM password files

2018-11-07 Thread simon.voelker
Hi,

I can also highly recommend cloud-init. We use it for our templates as well. 
There is also a Windows analogue of it (https://cloudbase.it/cloudbase-init/) 
that I recently used to finally get password functionality to work properly on 
Windows Server 2016.


Simon Völker

Fraunhofer-Gesellschaft e.V.
Schloss Birlinghoven
53754 Sankt Augustin
Telefon: +49 2241 14-2311
E-mail: simon.voel...@zv.fraunhofer.de<mailto:simon.voel...@zv.fraunhofer.de>



Am 07.11.2018 um 09:55 schrieb Yordan Kostov 
mailto:yordan.kos...@worldsupport.info>>:

Thank you René,

I will take it from here and test it. Some documentation will be on the way as 
well.

Best regards,
Jordan

-Original Message-
From: Rene Moser [mailto:m...@renemoser.net]
Sent: Wednesday, November 7, 2018 10:46 AM
To: users@cloudstack.apache.org<mailto:users@cloudstack.apache.org>
Subject: Re: cloudstack reset VM password files

Hi

Nowadays the cloud-init [1] project supports cloudstack out of the box and we 
switched our templates to only use cloud-init.

Unfortunately the docs regarding cloudstack is not that great (it is on my list 
to give back my finding). There are some great docs here 
https://wiki.archlinux.org/index.php/Cloud-init.

Our config under config dir /etc/cloud/cloud.cfg.d/ has two files

- 80_root.cfg
- 99_cloudstack.cfg

80_root.cfg contents is...

system_info:
 default_user:
   name: root
disable_root: 0
ssh_pwauth: 1

...and 99_cloudstack.cfg looks like...

datasource:
 CloudStack: {}
 None: {}
datasource_list:
 - CloudStack

Note that cloud-init has a ton of great features beside the support of 
cloudstack.

Hope that helps

René

[1] https://cloudinit.readthedocs.io/en/latest/




RE: cloudstack reset VM password files

2018-11-07 Thread Yordan Kostov
Thank you René,

I will take it from here and test it. Some documentation will be on the 
way as well. 

Best regards,
Jordan

-Original Message-
From: Rene Moser [mailto:m...@renemoser.net] 
Sent: Wednesday, November 7, 2018 10:46 AM
To: users@cloudstack.apache.org
Subject: Re: cloudstack reset VM password files

Hi

Nowadays the cloud-init [1] project supports cloudstack out of the box and we 
switched our templates to only use cloud-init.

Unfortunately the docs regarding cloudstack is not that great (it is on my list 
to give back my finding). There are some great docs here 
https://wiki.archlinux.org/index.php/Cloud-init.

Our config under config dir /etc/cloud/cloud.cfg.d/ has two files

- 80_root.cfg
- 99_cloudstack.cfg

80_root.cfg contents is...

system_info:
  default_user:
name: root
disable_root: 0
ssh_pwauth: 1

...and 99_cloudstack.cfg looks like...

datasource:
  CloudStack: {}
  None: {}
datasource_list:
  - CloudStack

Note that cloud-init has a ton of great features beside the support of 
cloudstack.

Hope that helps

René

[1] https://cloudinit.readthedocs.io/en/latest/



Re: cloudstack reset VM password files

2018-11-07 Thread Rene Moser
Hi

Nowadays the cloud-init [1] project supports cloudstack out of the box
and we switched our templates to only use cloud-init.

Unfortunately the docs regarding cloudstack is not that great (it is on
my list to give back my finding). There are some great docs here
https://wiki.archlinux.org/index.php/Cloud-init.

Our config under config dir /etc/cloud/cloud.cfg.d/ has two files

- 80_root.cfg
- 99_cloudstack.cfg

80_root.cfg contents is...

system_info:
  default_user:
name: root
disable_root: 0
ssh_pwauth: 1

...and 99_cloudstack.cfg looks like...

datasource:
  CloudStack: {}
  None: {}
datasource_list:
  - CloudStack

Note that cloud-init has a ton of great features beside the support of
cloudstack.

Hope that helps

René

[1] https://cloudinit.readthedocs.io/en/latest/



cloudstack reset VM password files

2018-11-07 Thread Yordan Kostov
Dear all,

Recently I boggled down into building a template and while 
browsing through the docs I noticed that most of it has not been updated for 
some time.

http://docs.cloudstack.apache.org/en/4.11.1.0/adminguide/templates.html#adding-password-management-to-your-templates

Here are the findings on which I made my opinion:

-  Linux OS

o   "Download the script file cloud-set-guest-password" is pointing towards a 
4.2 repo that is dead link.

o   While deploying I found out that cloud-set-guest-password script was 
missing the DHCLIENT path for NetworkManager which meant the script will not 
work for Centos 7.



-  Windows OS

o   The link pointing for the CloudInstanceManager.msi instance works but says 
it is obsolete.

o   Sys prep docs cover Windows 2003 and Windows 2008 only. 
(http://docs.cloudstack.apache.org/en/4.11.1.0/adminguide/templates.html#creating-a-windows-template)
 what about 2016 and 2019?



I do not mind editing that docs section but could you please point to what 
should be considered the current (up to date) solution for both platforms?

Thank you!

Best regards,
Jordan Kostov



R: Reset VM

2016-07-26 Thread Gian Paolo Buono
Ok thanks,

I will restore the vhd by hand  :)
Bye

Inviato dal mio dispositivo Samsung


 Messaggio originale 
Da: Simon Weller <swel...@ena.com>
Data: 26/07/2016 17:15 (GMT+01:00)
A: "'users@cloudstack.apache.org'" <users@cloudstack.apache.org>
Oggetto: Re: Reset VM

Hi Gian,


I think you may have run into an old bug (that in this case is in your favour). 
I seem to recall that sometime around the 4.2/4.3 release time frame, volumes 
were not being expunged correctly.


- si


From: Gian Paolo Buono <gianpaolo.bu...@gesca.it>
Sent: Tuesday, July 26, 2016 10:04 AM
To: 'users@cloudstack.apache.org'
Subject: Reset VM

Hi,
we have cs 4.3 deployment with xenserver 6.2
I have run "Reset VM" from console, but I did not know that discard the root 
disk (root-156) and now I have forgot the old VM.
I have notice that on DB and on the SR old root volume exist. How can i restore 
the vm with the old disk ?

Regards
GPB


Re: Reset VM

2016-07-26 Thread Simon Weller
Hi Gian,


I think you may have run into an old bug (that in this case is in your favour). 
I seem to recall that sometime around the 4.2/4.3 release time frame, volumes 
were not being expunged correctly.


- si


From: Gian Paolo Buono <gianpaolo.bu...@gesca.it>
Sent: Tuesday, July 26, 2016 10:04 AM
To: 'users@cloudstack.apache.org'
Subject: Reset VM

Hi,
we have cs 4.3 deployment with xenserver 6.2
I have run "Reset VM" from console, but I did not know that discard the root 
disk (root-156) and now I have forgot the old VM.
I have notice that on DB and on the SR old root volume exist. How can i restore 
the vm with the old disk ?

Regards
GPB


Reset VM

2016-07-26 Thread Gian Paolo Buono
Hi,
we have cs 4.3 deployment with xenserver 6.2
I have run "Reset VM" from console, but I did not know that discard the root 
disk (root-156) and now I have forgot the old VM.
I have notice that on DB and on the SR old root volume exist. How can i restore 
the vm with the old disk ?

Regards
GPB