Skip to content

Instantly share code, notes, and snippets.

@ts-sz
Forked from pierew/pvenode-rename
Created January 30, 2022 15:46
Show Gist options
  • Save ts-sz/efc99671e15c01effba581564c8f8328 to your computer and use it in GitHub Desktop.
Save ts-sz/efc99671e15c01effba581564c8f8328 to your computer and use it in GitHub Desktop.
Changing a Proxmox VE Nodes name when it is not in a cluster
OLDNAME=$(hostname)
hostnamectl set-hostname ${1}
mkdir -p /etc/pve/nodes/${1}
cp -a /etc/pve/nodes/${OLDNAME} /etc/pve/nodes/${1}
echo 'A reboot is required, Exit with CTRL-C'
read
@ts-sz
Copy link
Author

ts-sz commented Jan 30, 2022

thanks!

@Ndrinta
Copy link

Ndrinta commented Feb 2, 2025

Can I ran this if my node has running LXCs or VMs?
Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment