From bfd2f1f1e610a6baccd26aac97e72d9427afec45 Mon Sep 17 00:00:00 2001 From: Rudi Date: Thu, 10 Apr 2025 17:20:36 +0200 Subject: [PATCH] Small linux command list update proxmox --- KleinDocs.tree | 8 +-- topics/KleinOps/apps/Proxmox.md | 13 ---- .../operating_systems/proxmox/Proxmox.md | 66 +++++++++++++++++++ 3 files changed, 70 insertions(+), 17 deletions(-) delete mode 100644 topics/KleinOps/apps/Proxmox.md create mode 100644 topics/KleinOps/operating_systems/proxmox/Proxmox.md diff --git a/KleinDocs.tree b/KleinDocs.tree index 360635d..5514aa0 100644 --- a/KleinDocs.tree +++ b/KleinDocs.tree @@ -9,11 +9,13 @@ - - + + + + @@ -24,7 +26,6 @@ - @@ -66,7 +67,6 @@ - diff --git a/topics/KleinOps/apps/Proxmox.md b/topics/KleinOps/apps/Proxmox.md deleted file mode 100644 index 02eb4ac..0000000 --- a/topics/KleinOps/apps/Proxmox.md +++ /dev/null @@ -1,13 +0,0 @@ - - -# Proxmox (pve, KleinPVE) -Open Source network routing software that handles all the network traffic. It includes a firewall, -reverse-proxy server (nginx) and DHCP (Kea). -## ___________________ - -### Source -[](https://www.proxmox.com/) -### Access through -[](http://192.168.1.3:8006/) - -Shortcut to pages overview \ No newline at end of file diff --git a/topics/KleinOps/operating_systems/proxmox/Proxmox.md b/topics/KleinOps/operating_systems/proxmox/Proxmox.md new file mode 100644 index 0000000..f95fabe --- /dev/null +++ b/topics/KleinOps/operating_systems/proxmox/Proxmox.md @@ -0,0 +1,66 @@ + + +# Proxmox +Open Source network routing software that handles all the network traffic. It includes a firewall, +reverse-proxy server (nginx) and DHCP (Kea). +## ___________________ + +### Hosts +**Cluster**: KleinMox +- **Host 1**: kleinmox1 (192.168.1.3) +- **Host 2**: kleinmox2 (192.168.1.4) + +### Source +[](https://www.proxmox.com/) +### Access through +[](http://192.168.1.3:8006/) + + +### Proxmox rename host + +Rename pve -> kleinmox1 +``` +$ nano /etc/hosts +``` +Rename pve -> kleinmox1 +``` +$ nano /etc/hostname +``` +Rename pve -> kleinmox1 +``` +$ nano /user/share/postfix/main.cf +``` +Set old hostname to new hostname +``` +hostnamectl -set-hostname kleinmox1 +``` +Start proxy server +``` +$ systemctl restart pveproxy +``` +Start deamon +``` +$ systemctl restart pvedeamon +``` +Backup old host information +``` +$ cp -R /etc/pve/nodes/pve/ /root/oldconfig +``` +Move all containers to the new node +``` +$ mv /etc/pve/nodes/pve/lxc/* /etc/pve/nodes/kleinmox1/lxc + ``` +Move all qemu servers to the new node +``` +$ mv /etc/pve/nodes/pve/qemu-server/* /etc/pve/nodes/kleinmox1/qemu-server +``` +Change pve -> kleinmox1 in the storage config +``` +$ nano /etc/pve/storage.cfg +``` +Remove old node information +``` +$ rm -r /etc/pve/nodes/pve +``` + +Shortcut to pages overview \ No newline at end of file