
Hi Users, I am new to oVirt and having some confusion with cloud-init. I have a VM which supports Cloud Init and when I enable Cloud Init under Initial boot settings of VM, the cloud-init config disk isn't attached to the VM. If I use Run-Once and enable Cloud-Init the config disk is attached to the VM and works as expected. Is cloud-init only supposed to work with Run-Once or am I missing something? Thanks in advance. Shantur

Hi, Cloud-init is usually used only once to initialize the guest OS configuration. When using the normal Run, if it's the first time this VM goes up, the cloud-init will be included, otherwise it won't as it isn't supposed to be re-configured or being configured after the VM already ran. However, Run-Once bypasses this safety check and allows it, making the VM as a "fresh one". I hope it clears things up a bit. Liran. On Wed, Mar 3, 2021 at 12:46 PM Shantur Rathore <shantur.rathore@gmail.com> wrote:
Hi Users,
I am new to oVirt and having some confusion with cloud-init. I have a VM which supports Cloud Init and when I enable Cloud Init under Initial boot settings of VM, the cloud-init config disk isn't attached to the VM. If I use Run-Once and enable Cloud-Init the config disk is attached to the VM and works as expected.
Is cloud-init only supposed to work with Run-Once or am I missing something?
Thanks in advance. Shantur _______________________________________________ Users mailing list -- users@ovirt.org To unsubscribe send an email to users-leave@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/YTYS7GH4HNIGB5...

Thanks Liran, It clears up the confusion. Regards, Shantur On Wed, Mar 3, 2021 at 1:04 PM Liran Rotenberg <lrotenbe@redhat.com> wrote:
Hi, Cloud-init is usually used only once to initialize the guest OS configuration. When using the normal Run, if it's the first time this VM goes up, the cloud-init will be included, otherwise it won't as it isn't supposed to be re-configured or being configured after the VM already ran. However, Run-Once bypasses this safety check and allows it, making the VM as a "fresh one". I hope it clears things up a bit. Liran.
On Wed, Mar 3, 2021 at 12:46 PM Shantur Rathore <shantur.rathore@gmail.com> wrote:
Hi Users,
I am new to oVirt and having some confusion with cloud-init. I have a VM which supports Cloud Init and when I enable Cloud Init under Initial boot settings of VM, the cloud-init config disk isn't attached to the VM. If I use Run-Once and enable Cloud-Init the config disk is attached to the VM and works as expected.
Is cloud-init only supposed to work with Run-Once or am I missing something?
Thanks in advance. Shantur _______________________________________________ Users mailing list -- users@ovirt.org To unsubscribe send an email to users-leave@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/YTYS7GH4HNIGB5...
participants (2)
-
Liran Rotenberg
-
Shantur Rathore