Cloud-Init and setting hostname

dpearceFL

Member
Jun 1, 2020
75
3
13
65
Using Virtual Environment 7.0-11

Trying cloud-Init functionality for the first time. Since we can set the IP address on the cloned VM, why can't we set the hostname on the cloned VM. Seems like an obvious setting to have. On my setup, it always has the hostname of the initial VM I setup.

In one place I saw it is supposed to take the hostname from the VI name. I tried citest, citest.localdomain and citest.localdomain.local and the name never changed.

Normally, the VM name should be different than the hostname.

Any ideas?
 

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!