[SOLVED] Rename container proxmox 5

Hello, I have a question about that. I have proxmox "Virtual Environment 5.4-3", when I change the hostname by "dev.exemple.com" the hostname are ok on the proxmox web interface, but when I log in with ssh on my server I have "root@dev:~#". I have 3 dev environnements, I wondering if it's possible to change that "dev" name ? I tried to edit /etc/hostname and /etc/hosts by
127.0.0.1 localhost
::1 localhost ip6-localhost ip6-loopback
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
# --- BEGIN PVE ---
xxx.xxx.xxx.xxx dev.exemple.com devExemple
# --- END PVE ---

But after reboot the hosts file get back
127.0.0.1 localhost
::1 localhost ip6-localhost ip6-loopback
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
# --- BEGIN PVE ---
xxx.xxx.xxx.xxx dev.exemple.com dev
# --- END PVE ---
 

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!