Hello, I maintain a project that bootstraps a Kubernetes cluster on Proxmox using Ansible. My code has always worked reliably when tested on 5.3, however I recently upgraded my server to 6.0-4 and now cloud-init is behaving strangely. It successfully sets the IP Address, Subnet, and Gateway to the eth0 interface. However, the DNS Nameserver and Search Domain I supply to qm create are erroneously added to the lo interface instead. Is this some sort of user error or a bug in 6.0?
Here is where I leverage the qm create command. However, when the VMs finally come online the cloud-init configuration data is not set correctly as shown below:
I'm using this image. Though I can also confirm it happens on this image as well as this image. The latter of which I had previously used with the exact same code successfully on 5.3.
Here is where I leverage the qm create command. However, when the VMs finally come online the cloud-init configuration data is not set correctly as shown below:
Code:
debian@Eris:~$ cat /etc/network/interfaces.d/50-cloud-init.cfg
# This file is generated from information provided by
# the datasource. Changes to it will not persist across an instance.
# To disable cloud-init's network configuration capabilities, write a file
# /etc/cloud/cloud.cfg.d/99-disable-network-config.cfg with the following:
# network: {config: disabled}
auto lo
iface lo inet loopback
dns-nameservers 192.168.1.100
dns-search sol.milkyway
auto eth0
iface eth0 inet static
address 192.168.40.101/24
gateway 192.168.40.1
debian@Eris:~$ cat /etc/resolv.conf
nameserver 127.0.0.1
I'm using this image. Though I can also confirm it happens on this image as well as this image. The latter of which I had previously used with the exact same code successfully on 5.3.