Cloudinit set static after setting dhcp

anthony

Member
Jun 20, 2018
30
1
11
27
All,
I'm sure there is a fairly simple solution to this, but I set a vm up with cloudinit to have a dhcp address initially, then changed it to static after the fact. The static address is given to the VM, but it also pulls a dhcp address. how would one force it to only pull the static address?

Thanks!
 
Is a network manager installed in the VM that somehow interferes with cloud-init?
 
no not as far as I can tell. It is a fresh debian instance. there does not seem to be any network manager.

I tried running
Code:
cloud-init clean -r
that still did not seem to do anything.

Edit: After digging deeper into how cloudinit works, I found the file
Code:
/etc/network/interfaces.d/50-cloud-init.cfg
was made with dhcp, than another was made with the static. by deleting this one and restarting It was good to go.
 
Last edited:

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, 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 yours easily in our online shop.

Buy now!