pve 6.4 cloud-init doesn't work in ubuntu 22.04

Dec 25, 2017
23
0
21
34
I have installed cloud-init on kvm debian 11, and it's work. I did the same for Ubuntu 22.04 but it doesn't work
Скриншот 20-06-2022 160336.jpg
And:
1655730317099.png
But the user is not created. And IP didn't change:
1655730410479.png

How to understand what's wrong?
 

bbgeek17

Renowned Member
Nov 20, 2020
1,117
215
68
Blockbridge
www.blockbridge.com
There is generally much more logging available when cloud-init runs. There is a cloudinit.log file and other evidence. Most of it is in /var.

If, when you login to VM, you can mount the cloud-init ISO and it appears ok, then issue is in how you prepared the OS. May be cloud-init not started, may be install failed. Could be many different things.

I suggest you use a cloud image of Ubuntu and try with it.


Blockbridge : Ultra low latency all-NVME shared storage for Proxmox - https://www.blockbridge.com/proxmox
 

fahadysf

Member
Aug 10, 2019
6
5
8
36
I'm having the same issue. I'm using the jammy (22.04.1) cloud image (daily build). Same method works perfectly with the focal cloud image. I don't even see cloud-init executing in the startup console output. Problematic part is that since cloud init doesn't actually run there was no way to access the system.
I did manage to get into the system using `virt-customize` to set a root password as mentioned here.

After running cloud-init manually using 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).
 

n0bie

Member
Dec 28, 2021
35
2
8
34
any solution in this case? we face same situation.. cloud-init does not work under proxmox 7.2.3
 

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 your own in 60 seconds.

Buy now!