Erstellen eines neuen USB-Sticks mit Proxmox 8.1 mit Einbindung der bestehenden Konfig und Festplatten
1. Anlegen VM mit Disk als RAW, Größe 14 GB, Virtio
2. Installation Debian 12
https://ostechnix.com/install-debian-12-bookworm/
(Iso ist in proxmox hinterlegt)
3. Installation proxmox als Pakete in debian 12
https://pve.proxmox.com/wiki/Install_Proxmox_VE_on_Debian_12_Bookworm
Aber hier ist Kopieren des RAW-Images auf USB-Stick möglich, der Stick ist dann boot-fähig, vorher natürlich VM stoppen
4. Anpassen Hostname
/etc/hosts und /etc/hostname -> MUSS lauten nf-intern-corsair ODER pve6 für dorrekten Import der Konfiguration, auf lokale IP ändern z.B. 172.16.3.219
5. Kopieren/Importieren der Konfig
https://forum.proxmox.com/threads/importing-old-configuration.112702/
Recovery
If you have major problems with your Proxmox VE host, for example hardware issues, it could be helpful to copy the pmxcfs database file /var/lib/pve-cluster/config.db, and move it to a new Proxmox VE host. On the new host (with nothing running), you need to stop the pve-cluster service and replace the config.db file (required permissions 0600). Following this, adapt /etc/hostname and /etc/hosts according to the lost Proxmox VE host, then reboot and check (and don’t forget your VM/CT data).
Zuerst wie oben steht pve-cluster stoppen, dann config.db kopieren nach /var/lib/pve-cluster. Dann Kopieren der pve*-Zertifikatsdateien aus /etc/pve/local von nf-intern/nf-extern nach /etc/pve/local. Dann reboot
6. Kopieren root-Verzeichnis inkl. Skripte, /etc/crontab
Skripte für CRON etc., z.B. USV-Überwachung - Test USV-Überwachung (Installation APT apcupsd - Restart apcupsd after copying config)
7. Installation openvpn, Kopieren /etc/openvpn für VPN - Test openvpn
VERBINDET NICHT/BF-CBC Fehler :: Hinzufügen providers legacy default in static.conf
8. Installation mdadm, Kopieren /etc/mdadm.conf - Hinzufügen als /var/lib/vz/hdd und /var/lib/vz/ssd in /etc/fstab - Alternativ zu alter mdadm.conf neue erstellen mit: [mdadm --examine --scan]
[mdadm --detail --scan >> /etc/mdadm/mdadm.conf]
[update-initramfs -u]
/etc/fstab: ->
/dev/mapper/pve--ssd-data /var/lib/vz/ssd
/dev/mapper/pve--hdd-data /var/lib/vz/hdd
Kopieren /etc/lvm/lvm.conf
*Run vgscan command scans all supported LVM block devices in the system for VGs [vgscan]
*Execute vgchange command to activate volume. [vgchange -ay]
*Type lvs command to get information about logical volumes. [lvs]
*Create a mount point using the mkdir command.
*Mount an LVM volume under Linux using sudo mount /dev/mapper/DEVICE /path/to/mount command.
9. Benutzer :: Einrichten der Benutzer maaß, dietrich, mangerich / netad Restriktion/Permission für sec_updates.sh
10. rsnapshot / rsync / letsencrypt