cloud-init icon indicating copy to clipboard operation
cloud-init copied to clipboard

[docs]: Fix network config on debian 12 installed with cloudinit

Open paul-pascual opened this issue 2 years ago • 2 comments

Hi ! I have a little problem with debian 12 and cloudinit network management :

Network operation with cloud-init changed between debian 11 and debian 12 and the "/etc/network/interfaces" file no longer exists and the networking/systemd-networkd service no longer exists either ... Impossible to set an IP address as before using the contents of "/etc/network/interfaces.d/50-cloud-init" in "/etc/network/interfaces" ... How can I fix my network configuration again in "/etc/network/interfaces" after installing the machine using cloudinit in addition to "echo "network: {config: disabled}" > /etc/cloud/cloud.cfg.d/99-disable-network-config.cfg" ?

Thanks in advance !

paul-pascual avatar Oct 28 '23 23:10 paul-pascual

Hi @paul-pascual thank you for filing this bug and making cloud-init better. I think we may need a few more details here to understand the use-case you are trying to solve here.

Would you be able to attach the logs from cloud-init collect-logs to this issue.

Also might yoube able to create an /etc/network/interfaces files with source /etc/network/interfaces.d in it so the system can see the config parts emitted by cloud-init?

I'm also a bit confused by your mention of placing configuration in the image with network: {config: disabled} as that will keep cloud-init inert writing network configuration in general so it'd be impossible to get cloud-init to render network configuration if that configuration was processed when cloud-init was running on first boot.

blackboxsw avatar Oct 31 '23 14:10 blackboxsw

HI @blackboxsw, thank you for your reply. After some investigations, i realised that my problem is the presence of netplan instead of ifupdown... So, it's normal not to have the network configurations in "/etc/network/". But, i'd still like to understand why this change has been made and whether it's a change by debian or the cloudinit team.

Thanks again !

paul-pascual avatar Nov 03 '23 12:11 paul-pascual