← Back to team overview

cloud-init team mailing list archive

Re: Code for Hypervisor detection

 

>>> Note the auto detection mode exists twice, once in the
code executed by the generator, i.e. tools/ds-identify and once in the
Python code where we look for the data source.

Thanks for the reply. if you don't mind can you point the source  code for
" Python code where we look for the data source."

-Sudhakar Reddy.K

On Thu, Aug 12, 2021 at 1:57 PM Robert Schweikert <rjschwei@xxxxxxxx> wrote:

> Hi,
>
> On 8/12/21 4:25 PM, SUDHAKAR REDDY KHANDI wrote:
> > Hi
> >
> > I am new to cloud-init.I have been trying to find out how cloud-init
> > detects the cloud-platform (AZR/AWS/etc). someone point me where this
> code
> > is present(assume no datasource_list is configured)
> >
> > Please, let me know how cloud-init uses the "datasource_list" config? is
> it
> > a hint to cloud-init that it is a so-and-so cloud platform ?
>
> cloud-init checks the config and uses whatever is configure. If this
> does not exist in the configuration cloud-init will fall back to auto
> detection mode. Note the auto detection mode exists twice, once in the
> code executed by the generator, i.e. tools/ds-identify and once in the
> Python code where we look for the data source.
>
> HTH,
> Robert
>
> >
> > Regards
> > Sudhakar
> >
> >
>
> --
> Robert Schweikert                   MAY THE SOURCE BE WITH YOU
> Distinguished Engineer                       LINUX
> Technical Team Lead Public Cloud
> rjschwei@xxxxxxxx
> IRC: robjo
>
> --
> Mailing list: https://launchpad.net/~cloud-init
> Post to     : cloud-init@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~cloud-init
> More help   : https://help.launchpad.net/ListHelp
>

Follow ups

References