You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cloudstack.apache.org by 조대형 <ca...@renet.kr> on 2021/05/03 06:39:34 UTC

RE: Debian/Ubuntu Template password scripts

Hi, all

As Andrija said, I have studied about Cloud-init thing. 
Still don't know how to implement and create the template with cloud-init.

Can anyone give me some tips or examples ?

Thanks, 



-----Original Message-----
From: Andrija Panic [mailto:andrija.panic@gmail.com] 
Sent: Thursday, April 29, 2021 5:40 PM
To: users
Subject: Re: Debian/Ubuntu Template password scripts

The password reset script you tried using was written for init.d, it won't
work on system.d systems (centos7, debian/ubuntu 18+, etc)

Explore the cloud-init as Christian said - much more powerful (some
learning curve, if not already familiar with it - but it has plugin for
CloudStack, you can also auto-resize partitions after physical (volume)
disk size changed, supports SSH key injection (that ACS provides), etc.

Cheers,

On Thu, 29 Apr 2021 at 09:55, <cr...@istream.today> wrote:

> Hi,
>
>   Just go with cloud-init:  https://cloudinit.readthedocs.io/en/latest/
>
>
> Regards,
> Cristian
>
> -----Original Message-----
> From: 조대형 <ca...@renet.kr>
> Sent: Thursday, April 29, 2021 10:09 AM
> To: users@cloudstack.apache.org
> Subject: Debian/Ubuntu Template password scripts
>
> Hi, All
>
> I tried to make a Debian10.9.0 template.
>
>
> http://docs.cloudstack.apache.org/en/latest/adminguide/templates/_password.
> html#adding-password-management-to-templates
> <http://docs.cloudstack.apache.org/en/latest/adminguide/templates/_password.html#adding-password-management-to-templates>
>
>
>
> I followed the adding password Management to your templates instruction.
>
> However, It did not work.
>
>
>
> Do you have any ideas? Or anyone faced the same issues?
>
>
>
> Best regards,
>
>
>
>
>

-- 

Andrija Panić


Re: Debian/Ubuntu Template password scripts

Posted by Stênio Firmino <st...@usp.br.INVALID>.
carlcho,

I use a preseed config to install Debian 10. This preseed installation
installs cloud-init packages and prepares it to work with password reset,
grow root partition, SSH key injection.

You can do it manually following the scripts too.

Links: ** change [your URL] in files

https://gitlab.uspdigital.usp.br/stenio/cloudstack-templates/-/raw/master/config/debian/debian10-xen.cfg
https://gitlab.uspdigital.usp.br/stenio/cloudstack-templates/-/raw/4f68dd4dba7c4865045aabb6b891c896d198a91f/config/debian/debian10-sysprep-xen.sh

--
Stênio Firmino Filho
Chefe de Seção Técnica - SCINT - CETiSP
Superintendência de Tecnologia da Informação
Universidade de São Paulo
Av. Prof. Luciano Gualberto, travessa 3, 71
CEP 05.508-010 - São Paulo/SP



On Mon, May 3, 2021 at 3:39 AM 조대형 <ca...@renet.kr> wrote:

> Hi, all
>
> As Andrija said, I have studied about Cloud-init thing.
> Still don't know how to implement and create the template with cloud-init.
>
> Can anyone give me some tips or examples ?
>
> Thanks,
>
>
>
> -----Original Message-----
> From: Andrija Panic [mailto:andrija.panic@gmail.com]
> Sent: Thursday, April 29, 2021 5:40 PM
> To: users
> Subject: Re: Debian/Ubuntu Template password scripts
>
> The password reset script you tried using was written for init.d, it won't
> work on system.d systems (centos7, debian/ubuntu 18+, etc)
>
> Explore the cloud-init as Christian said - much more powerful (some
> learning curve, if not already familiar with it - but it has plugin for
> CloudStack, you can also auto-resize partitions after physical (volume)
> disk size changed, supports SSH key injection (that ACS provides), etc.
>
> Cheers,
>
> On Thu, 29 Apr 2021 at 09:55, <cr...@istream.today> wrote:
>
> > Hi,
> >
> >   Just go with cloud-init:  https://cloudinit.readthedocs.io/en/latest/
> >
> >
> > Regards,
> > Cristian
> >
> > -----Original Message-----
> > From: 조대형 <ca...@renet.kr>
> > Sent: Thursday, April 29, 2021 10:09 AM
> > To: users@cloudstack.apache.org
> > Subject: Debian/Ubuntu Template password scripts
> >
> > Hi, All
> >
> > I tried to make a Debian10.9.0 template.
> >
> >
> >
> http://docs.cloudstack.apache.org/en/latest/adminguide/templates/_password
> .
> > html#adding-password-management-to-templates
> > <
> http://docs.cloudstack.apache.org/en/latest/adminguide/templates/_password.html#adding-password-management-to-templates
> >
> >
> >
> >
> > I followed the adding password Management to your templates instruction.
> >
> > However, It did not work.
> >
> >
> >
> > Do you have any ideas? Or anyone faced the same issues?
> >
> >
> >
> > Best regards,
> >
> >
> >
> >
> >
>
> --
>
> Andrija Panić
>
>

Re: Debian/Ubuntu Template password scripts

Posted by Alireza Eskandari <as...@gmail.com>.
Hi
Use this script to handle ssh key and password:
https://github.com/apache/cloudstack/blob/fa87510a91f1ed1b346e66e3774df52ed4bf9c98/setup/bindir/cloud-set-guest-sshkey-password-userdata-configdrive.in
It supports both dataserver and configdrive.
You can use it in cloud-init per-boot directory.

On Mon, May 3, 2021, 11:09 조대형 <ca...@renet.kr> wrote:

> Hi, all
>
> As Andrija said, I have studied about Cloud-init thing.
> Still don't know how to implement and create the template with cloud-init.
>
> Can anyone give me some tips or examples ?
>
> Thanks,
>
>
>
> -----Original Message-----
> From: Andrija Panic [mailto:andrija.panic@gmail.com]
> Sent: Thursday, April 29, 2021 5:40 PM
> To: users
> Subject: Re: Debian/Ubuntu Template password scripts
>
> The password reset script you tried using was written for init.d, it won't
> work on system.d systems (centos7, debian/ubuntu 18+, etc)
>
> Explore the cloud-init as Christian said - much more powerful (some
> learning curve, if not already familiar with it - but it has plugin for
> CloudStack, you can also auto-resize partitions after physical (volume)
> disk size changed, supports SSH key injection (that ACS provides), etc.
>
> Cheers,
>
> On Thu, 29 Apr 2021 at 09:55, <cr...@istream.today> wrote:
>
> > Hi,
> >
> >   Just go with cloud-init:  https://cloudinit.readthedocs.io/en/latest/
> >
> >
> > Regards,
> > Cristian
> >
> > -----Original Message-----
> > From: 조대형 <ca...@renet.kr>
> > Sent: Thursday, April 29, 2021 10:09 AM
> > To: users@cloudstack.apache.org
> > Subject: Debian/Ubuntu Template password scripts
> >
> > Hi, All
> >
> > I tried to make a Debian10.9.0 template.
> >
> >
> >
> http://docs.cloudstack.apache.org/en/latest/adminguide/templates/_password
> .
> > html#adding-password-management-to-templates
> > <
> http://docs.cloudstack.apache.org/en/latest/adminguide/templates/_password.html#adding-password-management-to-templates
> >
> >
> >
> >
> > I followed the adding password Management to your templates instruction.
> >
> > However, It did not work.
> >
> >
> >
> > Do you have any ideas? Or anyone faced the same issues?
> >
> >
> >
> > Best regards,
> >
> >
> >
> >
> >
>
> --
>
> Andrija Panić
>
>