MyFirstBrain/Technik/Proxmox-Server.md
2024-10-29 18:36:47 +01:00

3.8 KiB

Proxmox ohne Subscription

Free-Repository aktivieren und Enterprise-Repository deaktivieren:

sudo mv /etc/apt/sources.list.d/pve-enterprise.list /etc/apt/pve-enterprise.list
echo deb http://download.proxmox.com/debian stretch pve-no-subscription > /etc/apt/sources.list.d/pve-no-subscription.list

No-Subscription-Hinweis in der Weboberfläche deaktivieren:

sed -i.bak 's/\/nodes\/localhost\/subscription/\/version/g' /usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js

Auf dem Backup Server muss folgendes ausgeführt werden :

sed -i.backup -z "s/res === null || res === undefined || \!res || res\n\t\t\t.data.status.toLowerCase() \!== 'active'/false/g" /usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js && systemctl restart proxmox-backup-proxy

um ein aktuelles Logging zu machen : 2 Website öffnen dort die Shell starten und in der Shell :

journalctl -f

LHX Templates

https://tteck.github!Proxmox-Server 2024-10-26 20.27.12.excalidraw.io/Proxmox/

Gitea Migration Zugangstoken 6a9061b60424cb3c56953cc919a2f1860208cf8d

Festplatte durchreichen

Disk-ID der gewünschten Festplatte herausfinden: Nutz den Befehl ls -lah /dev/disk/by-id/

ACHTUNG: Ersetze bei BEDARF den Wert “-scsi” durch die in Schritt 3 gewonnen Erkenntnis! Vorher am besten die VM runterfahren qm set 104 -sata2 /dev/disk/by-id/ata-ST20000NM007D-3DJ103_ZVT7ENML

danach die VM starten oder neustarten und dann ist sie da.

Image file as Disk importieren

qm disk import 100 rr.img local-lvm qm disk import Befehl 100 VID der VM rr.img Image file local-lvm Storage location on the Server

NextcludTurnkey

[INFO] login: root [INFO] password: d4kmKavq0d8=

admin .Bunte135.

reset mysql password:

/usr/lib/inithooks/bin/mysqlconf.py

Web: http://192.168.132.246
https://192.168.132.246
│ Webmin: https://192.168.132.246:12321
│ Adminer: https://192.168.132.246:12322
│ SSH/SFTP: root@192.168.132.246 (port 22)

Mein Proxmox Server :

nvme auf dem Mainboard oben hat die Seriennr. AA243030420 HIer ist das System installiert !!! nvme auf dem Mainboard unten hat die Seriennr. AA243010422

/dev/sda 20TB Exynos obere Platte hat ZVT7RNML als Seriennummer /dev/sdb 20TB Exynos untere Platte hat ZVT6VP4J als Seriennummer

qm set 100 -sata2 /dev/disk/by-id/ata-ST20000NM007D-3DJ103_ZVT7ENML qm set 100 -sata3 /dev/disk/by-id/ata-ST20000NM007D-3DJ103_ZVT6VP4J

Synology-VM 192.168.132.19:5000

DSM on Proxmox Qemu Guest Agent

Install Simple Permission Manager Install QEMU Guest Agent Allow in Simple Permission Manager the Qemu Guets Agent and User

SSH to synology and run as root:

sudo sed -i 's/package/root/g' /var/packages/qemu-ga/conf/privilege

Stop VM then activate Guest Agent in Options Start VM again

Import OVA VM to Proxmox

Import ganze VM qm importovf {vmid} {VM name}.ovf {target storage}

qm importovf 100 Server.ovf local-zfs

Import only Disk qm disk import {target VMID} {vmdk file} {target storage}

qm disk import 104 Server.vmdk local-zfs

Import LZO (alte Backups)

try

GEHT NICHT    qm create <vmid> --archive ./2142424.vma.lzo --storage <store>   


GEHT  
lzop -d EBS-vzdump-qemu-103-2024_10_28-22_48_37.vma.lzo



vma extract EBS-vzdump-qemu-103-2024_10_28-22_48_37.vma -v ebs/winxp


qm importdisk 100 /path/to/your/freebsd/image.raw local

Siehe hierzu auch https://forum.proxmox.com/threads/vma-archive-restore-outside-of-proxmox.14226/#post-76387