sudo find /var -name *cloud*
systemctl enable --now cloud-init
, the hostname etc did get updated and the network settings did get applied after reboot. Unfortunately it doesn't work automatically on boot. I suspect it has something to do with the "NoCloud" datasource being deprecated (although I don't have much idea about what that means).any solution in this case? we face same situation.. cloud-init does not work under proxmox 7.2.3
STORAGE=local-lvm OSIMAGE=focal-server-cloudimg-amd64.img ./vm_create.sh
STORAGE=local-lvm OSIMAGE=ubuntu-22.04-minimal-cloudimg-amd64.img ./vm_create.sh
how do I "run" these in the image/VM right after creation? only fixed/static IP assignments, so networking can't rely on DHCPI was facing the same issue. So I have fixed this issue by removing the running these commands and now its working for me.
# apt purge cloud-init
# apt update -y
# apt install cloud-init
# sudo mv /var/lib/cloud/data/upgraded-network /var/lib/cloud/data/upgraded-network.backup
# sudo cloud-init init
# man cloud-init
Hoping these set of commands will help in fixing your issue also.
We use essential cookies to make this site work, and optional cookies to enhance your experience.