NoCloud CloudInit Datasource Not Functional

ultrasive

New Member
Oct 16, 2024
5
0
1
I see countless Youtube videos online that when they refer to cloud-init with proxmox they assume that you will be creating a template and inside that template you are going to attach a configdrive2 disk with the dynamic cloud init data that proxmox provides because the native Linux implementation doesnt work.

https://pve.proxmox.com/pve-docs/api-viewer/index.html#/nodes/{node}/qemu/{vmid}/config

Within the API documentation it specifies when you are using the Linux kernel by default it will use the "nocloud" datasource which I'm pretty familiar with using bare metal deployments where we use DHCP to give the machine an address and based on that address I have a metadata server to dynamically feed the cloud-init files like user-data and meta-data to the machine with the config useful for that address.

Why does Proxmox default to nocloud datasource but their nocloud implementation for Linux kernel doesn't work?

1729036847158.png
 
Hi @ultrasive , welcome to the forum.

Why does Proxmox default to nocloud datasource but their nocloud implementation for Linux kernel doesn't work?
PVE does not come with built-in DHCP/Metadata server out-of-the-box. The nocloud specifies that the source of CloudInit is local. Specifically - ISO mounted as CDrom.
The CITYPE specifies the format of the cloudinit on that ISO. You can examine it manually to see whether it's suitable for your needs.
The PVE built-in CloudInit is limited to basic things that work for the majority. If you need a more extensive configuration file, you can specify it via cicustom.
If you have an existing external DHCP/Metadata server - you don't need to specify any CloudInit configuration in PVE.



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

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!