Wouldn't the cloud-init information I configured in the initial run properties page
of the virtual machine be unnecessary?
In that case - correct. Only the
configuration you set in the run-once
will be taken into account when you run it.
-----Original Message-----
From: Liran Rotenberg <lrotenbe(a)redhat.com>
Sent: Monday, August 2, 2021 4:33 PM
To: Tommy Sway <sz_cuitao(a)163.com>
Cc: users(a)ovirt.org
Subject: Re: [ovirt-users] Re: Question about cloud-init
On Mon, Aug 2, 2021 at 10:22 AM Tommy Sway <sz_cuitao(a)163.com> wrote:
>
> Please note that once the VM booted, the only way to provide the cloud-init payload
is by using Run-Once.
> For a VM that didn't boot, a regular run will work as well.
>
>
> Do you mean that you can use cloud-init for the first normal startup of a virtual
machine that has not yet been booted, and then you can't use cloud-init for subsequent
normal startup?
Yes. This is for safety from overriding a configuration on future boots.
> Is it possible to use cloud-init with the run-once boot option as long as the
virtual machine has already been started?
Yes, if you set it in run-once the payload will be included to the VM on boot, regardless
if it booted already or not.
>
>
>
>
>
>
>
> -----Original Message-----
> From: users-bounces(a)ovirt.org <users-bounces(a)ovirt.org> On Behalf Of
> Liran Rotenberg
> Sent: Sunday, August 1, 2021 3:01 PM
> To: tommy <sz_cuitao(a)163.com>
> Cc: users(a)ovirt.org
> Subject: [ovirt-users] Re: Question about cloud-init
>
> On Sat, Jul 31, 2021 at 7:09 AM tommy <sz_cuitao(a)163.com> wrote:
> >
> > Hello, I have a question about cloud-init:
> >
> > After installing vm, I installed cloud-init immediately, and enabled its four
services, and then I can use cloud-init in the admin interface.
> >
> >
> >
> > However, I don't know how cloud-init knows where to get the relevant
information (such as host name, SSH secret key, etc.) that I configured on the admin
interface ? For I haven't configured the data source for cloud-init.
>
> Hi,
> The relevant information comes as a payload to the VM, a CD-ROM containing the data
source.
> >
> > Why it can works ?
> >
> Cloud-init detects the data source and configures the OS.
> Please note that once the VM booted, the only way to provide the cloud-init payload
is by using Run-Once.
> For a VM that didn't boot, a regular run will work as well.
>
> Regards,
> Liran
> >
> >
> > Thanks!
> >
> > _______________________________________________
> > Users mailing list -- users(a)ovirt.org To unsubscribe send an email
> > to users-leave(a)ovirt.org Privacy
> > Statement:
https://www.ovirt.org/privacy-policy.html
> > oVirt Code of Conduct:
> >
https://www.ovirt.org/community/about/community-guidelines/
> > List Archives:
> >
https://lists.ovirt.org/archives/list/users@ovirt.org/message/O5NKQO
> > 56
> > 42X3WYES3QQBSSDZUQN6N5XX/
> _______________________________________________
> Users mailing list -- users(a)ovirt.org
> To unsubscribe send an email to users-leave(a)ovirt.org Privacy
> Statement:
https://www.ovirt.org/privacy-policy.html
> oVirt Code of Conduct:
>
https://www.ovirt.org/community/about/community-guidelines/
> List Archives:
>
https://lists.ovirt.org/archives/list/users@ovirt.org/message/NVP4IUIN
> 7NQDI5OVN6NRKJQYQBMJ7M77/
>
>