cloudinit need a daemon/service running in the virtual-machine.
Then, proxmox genreate a config file, send through a cdrom to the agent inside the vm.
(some other cloud provider like aws, gcp,... use a cloudinit meta dataserver instead a cdrom, but this works without routed setup only)