MyFirstBrain/Technik/Proxmox-Server.md

124 lines
2.9 KiB
Markdown
Raw Normal View History

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
sudo sed -i.bak 's/\/nodes\/localhost\/subscription/\/version/g' /usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js
```
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
https://tteck.github.io/Proxmox/
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-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
```