[pve-devel] [PATCH container 0/1] Set hostname to meta-data (nocloud method)
Serge Logvinov
serge.logvinov at gmail.com
Fri Sep 10 20:33:42 CEST 2021
*** BLURB HERE ***
Serge Logvinov (1):
feat: set hostname to meta
Add hostname property in meta-data (nocloud method).
Now only user-data has hostname of VM. If you redifine user-data, you lost the hostname.
Example meta-data here https://cloudinit.readthedocs.io/en/latest/topics/datasources/nocloud.html#datasource-nocloud
---
instance-id: iid-abcdefg
network-interfaces: |
iface eth0 inet static
address 192.168.1.10
network 192.168.1.0
netmask 255.255.255.0
broadcast 192.168.1.255
gateway 192.168.1.254
hostname: myhost
---
PVE/QemuServer/Cloudinit.pm | 14 ++++++++------
1 file changed, 8 insertions(+), 6 deletions(-)
--
2.24.3 (Apple Git-128)
More information about the pve-devel
mailing list