MyFirstBrain/Technik/Proxmox-Server.md

166 lines
4.1 KiB
Markdown
Raw Normal View History

2024-10-21 12:15:11 +02:00
2024-10-30 15:29:30 +01:00
ASUS PRIME Z790-P D4
2024-10-31 17:16:11 +01:00
besser
2024-10-31 17:40:11 +01:00
MPG Z790 EDGE WIFI DDR4 5x M2
asrock phantom gaming lightning d4 intel z790 4 x M2
2024-10-21 12:15:11 +02:00
# Proxmox ohne Subscription
Free-Repository aktivieren und Enterprise-Repository deaktivieren:
```bash
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:
```bash
2024-10-26 15:42:25 +02:00
sed -i.bak 's/\/nodes\/localhost\/subscription/\/version/g' /usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js
2024-10-21 12:15:11 +02:00
```
2024-10-26 15:42:25 +02:00
Auf dem Backup Server muss folgendes ausgeführt werden :
```bash
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
```
2024-10-26 16:02:18 +02:00
2024-10-26 15:42:25 +02:00
2024-10-22 20:40:56 +02:00
um ein aktuelles Logging zu machen :
2 Website öffnen dort die Shell starten und in der Shell :
```bash
journalctl -f
```
2024-10-21 17:52:05 +02:00
## LHX Templates
2024-10-26 20:27:25 +02:00
https://tteck.github![[Proxmox-Server 2024-10-26 20.27.12.excalidraw]].io/Proxmox/
2024-10-21 17:52:05 +02:00
2024-10-21 12:15:11 +02:00
2024-10-23 11:58:55 +02:00
Gitea Migration Zugangstoken 6a9061b60424cb3c56953cc919a2f1860208cf8d
2024-10-21 19:37:20 +02:00
2024-10-23 11:45:43 +02:00
### Festplatte durchreichen
2024-10-22 23:24:57 +02:00
2024-10-23 11:45:43 +02:00
Disk-ID der gewünschten Festplatte herausfinden: Nutz den Befehl
ls -lah /dev/disk/by-id/
2024-10-22 23:24:57 +02:00
2024-10-23 11:58:55 +02:00
ACHTUNG: Ersetze bei BEDARF den Wert “-scsi” durch die in Schritt 3 gewonnen Erkenntnis!
2024-10-23 19:39:44 +02:00
Vorher am besten die VM runterfahren
qm set 104 -sata2 /dev/disk/by-id/ata-ST20000NM007D-3DJ103_ZVT7ENML
2024-10-22 21:16:57 +02:00
2024-10-23 19:41:44 +02:00
danach die VM starten oder neustarten und dann ist sie da.
2024-10-22 21:16:57 +02:00
2024-10-23 22:41:25 +02:00
### Image file as Disk importieren
2024-10-23 22:42:41 +02:00
**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
2024-10-23 22:41:25 +02:00
2024-10-21 19:37:20 +02:00
2024-10-21 19:53:20 +02:00
## NextcludTurnkey
2024-10-21 19:39:20 +02:00
2024-10-21 19:53:20 +02:00
[INFO] login: root
2024-10-21 20:29:20 +02:00
[INFO] password: d4kmKavq0d8=
2024-10-21 19:37:20 +02:00
2024-10-21 19:55:20 +02:00
admin
2024-10-21 19:57:20 +02:00
.Bunte135.
2024-10-21 20:25:20 +02:00
reset mysql password:
/usr/lib/inithooks/bin/mysqlconf.py
2024-10-21 19:57:20 +02:00
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)
2024-10-25 11:30:03 +02:00
## Mein Proxmox Server :
2024-10-25 15:22:09 +02:00
nvme auf dem Mainboard oben hat die Seriennr. AA243030420
HIer ist das System installiert !!!
2024-10-25 11:30:03 +02:00
nvme auf dem Mainboard unten hat die Seriennr. AA243010422
2024-10-26 09:49:27 +02:00
/dev/sda 20TB Exynos obere Platte hat ZVT7RNML als Seriennummer
2024-10-26 09:50:33 +02:00
/dev/sdb 20TB Exynos untere Platte hat ZVT6VP4J als Seriennummer
2024-10-25 11:30:30 +02:00
2024-10-26 09:54:33 +02:00
qm set 100 -sata2 /dev/disk/by-id/ata-ST20000NM007D-3DJ103_ZVT7ENML
qm set 100 -sata3 /dev/disk/by-id/ata-ST20000NM007D-3DJ103_ZVT6VP4J
2024-10-25 14:20:04 +02:00
2024-10-26 09:56:33 +02:00
Synology-VM 192.168.132.19:5000
2024-10-25 14:20:04 +02:00
### DSM on Proxmox Qemu Guest Agent
Install Simple Permission Manager
Install QEMU Guest Agent
2024-10-25 14:21:09 +02:00
Allow in Simple Permission Manager the Qemu Guets Agent and User
2024-10-25 14:20:04 +02:00
2024-10-25 14:21:09 +02:00
SSH to synology and run as root:
```bash
2024-10-25 14:20:04 +02:00
sudo sed -i 's/package/root/g' /var/packages/qemu-ga/conf/privilege
2024-10-25 14:21:09 +02:00
```
Stop VM then activate Guest Agent in Options
Start VM again
2024-10-25 15:22:09 +02:00
### Import OVA VM to Proxmox
2024-10-25 15:41:29 +02:00
2024-10-25 15:49:29 +02:00
**Import ganze VM**
2024-10-25 15:41:29 +02:00
qm importovf {vmid} {VM name}.ovf {target storage}
```bash
qm importovf 100 Server.ovf local-zfs
2024-10-25 15:49:29 +02:00
```
**Import only Disk**
qm disk import {target VMID} {vmdk file} {target storage}
```bash
qm disk import 104 Server.vmdk local-zfs
```
2024-10-29 08:16:42 +01:00
### Import LZO (alte Backups)
try
2024-10-29 18:40:47 +01:00
GEHT NICHT
2024-10-29 08:16:42 +01:00
```bash
2024-10-29 18:40:47 +01:00
qm create <vmid> --archive ./2142424.vma.lzo --storage <store>
2024-10-29 18:36:47 +01:00
2024-10-29 08:16:42 +01:00
```
2024-10-29 17:52:47 +01:00
2024-10-29 18:40:47 +01:00
GEHT
2024-10-29 18:38:47 +01:00
```bash
lzop -d EBS-vzdump-qemu-103-2024_10_28-22_48_37.vma.lzo
2024-10-29 17:52:47 +01:00
vma extract EBS-vzdump-qemu-103-2024_10_28-22_48_37.vma -v ebs/winxp
```
2024-10-29 18:38:47 +01:00
Dann eine neue VM über die GUI erzeugen und die Platte dort dann importieren :
```BASH
qm importdisk 202 /mnt/pve/sdbevo860/dump/ebs/winxp/disk-drive-ide0.raw local-lvm
```
2024-10-29 18:40:47 +01:00
Windows musste neu aktiviert werden
2024-10-29 17:56:47 +01:00
Siehe hierzu auch
https://forum.proxmox.com/threads/vma-archive-restore-outside-of-proxmox.14226/#post-76387