cloud-init problem setting hostname in customized configuration


New Member
Jan 18, 2021
Germany, Bavaria, Munich
Hello Everyone,

we want to use cloud-init to automate the install of new VMs as linked clones in Proxmox and already have a working configuration.
But if we want to set the VM name as the hostname on first boot it doesn't change it.

VM OS: Ubuntu 20.04
Proxmox Version: 6.4

is this behaviour known as a bug or is there something else we have to do before this is working?
I didn't find this in the forum before.

Thanks for Replies
Last edited:


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!