Cloudinit set static after setting dhcp

anthony

Member
Jun 20, 2018
30
1
11
28
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: