Unable to change hostname when deploying from CT image in proxmox

Notice: Page may contain affiliate links for which we may earn a small commission through services like Amazon Affiliates or Skimlinks.

ctor

New Member
May 30, 2023
1
0
1
Hi, I've recently starting using proxmox in a home lab. I deployed an ubuntu reference image from a CT image. When I try to change the hostname of the image it reverts back to the original name when i reboot. I tried editing the /etc/hosts and hostname, and using hostnamectl set-hostname. At first I thought I wasn't saving the files, but I can re-open them after exiting nano and my changes are still there. Should I just delete the image?
 

mmo

Well-Known Member
Sep 17, 2016
558
357
63
44
i think you can just change the CT host name under DNS.