How to Rename Proxmox Node with Existing VMs & Containers

preview_player
Показать описание
How to Rename Proxmox Node with Existing VMs & Containers

Proxmox VE uses the hostname as a nodes name, so changing it works similar to changing the host name. This must be done on a empty node.
Please note that you have only tp try this on a single Proxmox node, and NOT a node joined to a cluster.

Change to the new hostname in the following 3 files:

nano /etc/hosts
nano /etc/hostname
Reboot Proxmox.

Next, copy the VMs and configuration to the new hostname folder:

cd /etc/pve/nodes/
cp -r old_hostname/qemu-server new_hostname/qemu-server
rm -r old_hostname
cd /var/lib/rrdcached/db/pve2-node/
cp -r old_hostname new_hostname
rm -r old_hostname

🌸 Support channel & make donation :

🌸 Subscribe for more videos :

🌸 Follow me On Social Media

***********************************************************************

🌸 How To Check Bad Blocks Or Bad Sectors On a Hard Disk In Linux

🌸 Linux How To Partition a Hard Drive Using the Parted Command

🌸 Checking or Repairing a File System using fsck in Linux

🌸 How To Monitor the Health of Your Hard Drive in Linux using SMART

🌸 Linux iotop: Monitor your disk Input/Output

🌸 How To use the “du” (Disk Usage) Command in Linux

🌸 How To View Manipulate System Logs In Linux Using Journalctl Command

🌸 How To Sync And Backup Files In Linux Using Rsync Command

🌸 Linux cURL Command Tips and Tricks

🌸 Linux tail and multitail commands

🌸 Linux How To view Log Files

🌸 How To use the History Command On Linux

🌸 Tips and Tricks How To manipulate Text Files on Linux

🌸 How to Archive, Compress and Extract Files Using the tar Command on Linux

🌸 Linux - How to split larger files into smaller parts

🌸 Linux commands : Top

***********************************************************************

#node #virtualization #proxmox
Рекомендации по теме
Комментарии
Автор

Fantastic explanation. Just ran into one error when moving the LXC directory. Mine was empty so it failed, but other than that, flawless execution. Thanks so much for taking the time to put this together!

Neurbit
Автор

This was perfect, thank you for your time and laying this out

nvrlivenvrdie
Автор

These are the correct steps that the video shows, not the steps in the description.
I watched the video and wrote them all down.
I followed the steps the video shows and everything was up and running within 5-10 minutes.
If you follow these steps then nothing will be lost, change the names to your node names:

Stop all VM/CT

Connect via SSH to the host

nano /etc/hosts
nano /etc/hostname
nano /etc/postfix/main.cf

hostnamectl set-hostname node3
systemctl restart pveproxy
systemctl restart pvedaemon

cp -R /etc/pve/nodes/node4/ /root/oldconfig
mv /etc/pve/nodes/node4/lxc/* /etc/pve/nodes/node3/lxc
mv

rm -r /etc/pve/nodes/node4

reboot

nano /etc/pve/storage.cfg

edwin-janssen
Автор

Thanks, very helpful.
This might have been ok for a blog post, but I appreciate the video - I prefer this format as it gives me confidence seeing exactly what you are doing.

ThisIsAitch
Автор

Worked perfectly and saved my day! Thank you very much!

christoffer
Автор

Followed your steps in the video. worked perfectly. Thank you.

hudor
Автор

this worked great for me, easy to follow. Thank you. how did you create those labels next to the VMs? I will have to look at more videos to see if show this.

TDHobbies
Автор

Extremely concise and helpful. Thank you for making this video, I have subscribed for future content.

smittyIT
Автор

Thanks mate, you saved my skin! Best tutorial I found

NotTekk
Автор

Thank you, very helpful. you made my day!!

ozdiyhomeowner
Автор

I followed your steps. After reboot I lost the lxc containers...catastrophic!! Do you know how to recover them?

samiralshaar
Автор

Hi, nice tutorial. In my proxmox server at 13:17 I don't have this settings for storage. 10x

MariusVilceanu
Автор

What else to do when node is in cluster?

L_vvy
Автор

I could spend 15 minutes watching a video about a few lines, or I could spend 1/2min reading a blog post. This is just not ideal for a video format!

mrknaldhat