We are trying to use cloud-init to set up Linux VMs on our ProxMox cluster with the following items:
- A temporary administrative user
- The salt minion
- A hostname
- A static IP address, default router and DNS config
We can accomplish all but the last of those via various cloud-init configuration directives, but are stuck on the network stuff. The problems vary based on the distro we’ve tried. For example, Debian 10's cloud-init reports an error with interface renaming, then falls back to DHCP. I tried a few others but they had different problems: either no address assignment at all or in one case, both a DHCP *and* a static address on one interface.
I know that these problems may be specific to our distro, or with our use of cloud-init (and I can provide specific logs and configs as needed), but is there a good procedure for deploying QEMU VM guests with static addresses ?
- A temporary administrative user
- The salt minion
- A hostname
- A static IP address, default router and DNS config
We can accomplish all but the last of those via various cloud-init configuration directives, but are stuck on the network stuff. The problems vary based on the distro we’ve tried. For example, Debian 10's cloud-init reports an error with interface renaming, then falls back to DHCP. I tried a few others but they had different problems: either no address assignment at all or in one case, both a DHCP *and* a static address on one interface.
I know that these problems may be specific to our distro, or with our use of cloud-init (and I can provide specific logs and configs as needed), but is there a good procedure for deploying QEMU VM guests with static addresses ?