cloud-init and Buster generic image network problem

ctr

New Member
Dec 21, 2019
13
1
3
50
Did anyone try Buster cloud images (specifically the generic image) with Proxmox and cloud-init yet?
I tried with both nocloud and configdrive but can't get the network settings to apply.
The cloud-init template seems to assume net0 is eth0, but it is changed to ens18.
But even if I replace eth0 with ens18 in '/etc/network/interfaces.d/50-cloud-init.cfg' the network is not usable as automatically created per-interface files in
/run/network/interfaces.d seem to take precedence.

I can also not see the name server or search domain to be configured.


Other aspects (password, hostname, ssh-key, etc-hosts) of the cloud-init seem to work fine.

Seems to be related to: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=931173
 
Last edited:
Jul 31, 2018
98
8
8
58
this fixes the reslove.conf problem for the DNS

On the other proble that is werid mine get renamed as eth0 eth1 etc



Install resolvconf
apt-get install resolvconf
systemctl enable resolvconf

Make sure systemd-resolved is disabled
systemctl status systemd-resolved
systemctl disable systemd-resolved
systemctl mask systemd-resolved
 

ctr

New Member
Dec 21, 2019
13
1
3
50
I can see the rename to eth0 using "nocloud" citype, but not when using configdrive

But even with nocloud, the interface IP is not applied to eth0 as /etc/network/interfaces.d/50-cloud-init.cfg is never read. The "." in .cfg seems to be an invalid character in included files. However, this is most likely a cloud-init issue and has nothing to do with proxmox.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE and Proxmox Mail Gateway. We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get your own in 60 seconds.

Buy now!