I have an issue with fedora guest on proxmox host. The VM does not retrieve the hostname or resolver.
For dns, the mentioned solution on this post : About the cloud-init configuration problem in the hard disk image (raw/qcow2) - #6 by tibbbs seem to work, but it’s not perfect.
For hostname, i have the same problem with fedora 37 and 38 and i run cloud image. The dns issue seems to have been corrected in 38.
user@fedora38-template $ cat /etc/hosts
# Your system has configured 'manage_etc_hosts' as True.
# As a result, if you wish for changes to this file to persist
# then you will need to either
# a.) make changes to the master file in /etc/cloud/templates/hosts.redhat.tmpl
# b.) change or remove the value of 'manage_etc_hosts' in
# /etc/cloud/cloud.cfg or cloud-config from user-data
#
# The following lines are desirable for IPv4 capable hosts
127.0.0.1 localhost fedora38-template
127.0.0.1 localhost.localdomain localhost
127.0.0.1 localhost4.localdomain4 localhost4
# The following lines are desirable for IPv6 capable hosts
::1 localhost fedora38-template
::1 localhost.localdomain localhost
::1 localhost6.localdomain6 localhost6