
Hi, we are using cloud-init for several years now and it looks like, that cloud-init needs a config for every boot, otherwise, it will use the default network config, which is DHCP. We come around this issue by adding this file: cat /etc/cloud/cloud.cfg.d/99-disable-network-config.cfg network: {config: disabled} by cloud-init itself on the first run. With this, cloud-init creates only once the network config and never touches it again. I would not completely disable cloud-init, because this could also have some drawbacks, like not being able to create a root/user password anymore, if on worst case, ssh is not working anymore... What we also fix on the first boot is the datasource_list -> datasource_list: ["NoCloud", "ConfigDrive"] Otherwise, we have an extremely long boot process (up to 5 minutes or so), because cloud-init tries to reach several cloud-config URLs. BR Florian ----- Ursprüngliche Mail ----- Von: "Jp" <justin.obfuscate@gmail.com> An: "users" <users@ovirt.org> Gesendet: Donnerstag, 11. Juni 2020 16:54:31 Betreff: [ovirt-users] Re: cloud-init: reverts on reboot I re-read the docs on creating VMs. What is the difference between the Run Once w/ it's pop-up form vs the Initial Run with it's embedded form? If an (updated) doc were to have a sequential workflow for using cloud-init in oVirt for a new VM's setup, would it look like this: * assume cloud-init already installed, ex. Glance image; so SysPre/Cloud-Init process already done* Glance Image Method 1. Import Image + Create Template 2. Create VM (_don't_ use Run; and _don't_ populate Initial Run tab) 3. start VM with Run Once (_not_ Run) 4. fill out Run Once pop-up form 5. VM boots as usual 6. remote Console/shell into VM to verify setting 7. Reboot or Shutdown/Run 8. use cloud-init'd VM like any other non-cloud-init'd VM That ^ look right? _______________________________________________ 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/LXA4TCGENOQ3PP...