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-11-09 18:42:18 +01:00
|
|
|
|
**MPG Z790 EDGE WIFI DDR4 5x M2 + 7 x Sata (6xSata bei Belegung aller M2)**
|
2024-10-31 17:40:11 +01:00
|
|
|
|
asrock phantom gaming lightning d4 intel z790 4 x M2
|
2024-10-31 18:16:11 +01:00
|
|
|
|
|
|
|
|
|
pci bifurcation
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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-11-03 08:57:52 +01:00
|
|
|
|
https://tteck.github![[Proxmox-Server.io/Proxmox/
|
2024-10-21 17:52:05 +02:00
|
|
|
|
|
2024-11-10 18:05:04 +01:00
|
|
|
|
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:39:20 +02:00
|
|
|
|
|
2024-11-02 12:51:06 +01:00
|
|
|
|
#### Physikalischen Pfad einer VMdisk ermitteln :
|
2024-11-02 12:53:06 +01:00
|
|
|
|
```bash
|
|
|
|
|
pvesm path n4TBL-T:vm-100-disk-1
|
|
|
|
|
```
|
|
|
|
|
Wobei n4TBL-T der Storage ist und der rest die VM
|
2024-10-21 19:37:20 +02:00
|
|
|
|
|
2024-10-21 19:57:20 +02:00
|
|
|
|
|
2024-10-21 20:25:20 +02:00
|
|
|
|
|
|
|
|
|
|
2024-10-25 11:30:03 +02:00
|
|
|
|
## Mein Proxmox Server :
|
2024-10-21 20:25:20 +02:00
|
|
|
|
|
2024-11-15 19:01:31 +01:00
|
|
|
|
nvme auf oberen PCI3.0 Karte Model CT4000P3SSD8 hat die Seriennr. 2336E8744F73
|
2024-11-15 19:11:31 +01:00
|
|
|
|
nvme-CT4000P3SSD8_2336E8744F73 -> ../../nvme3n1 Diese ist an die Synology VM durchgereicht
|
2024-10-21 20:25:20 +02:00
|
|
|
|
|
2024-11-15 19:13:31 +01:00
|
|
|
|
nvme auf der unteren PCI 3.0 Karte Model CT4000P3SSD8 hat die Seriennr.2342E8812956
|
|
|
|
|
nvme-CT4000P3SSD8_2336E8744F73 -> ../../nvme3n1
|
2024-10-21 20:25:20 +02:00
|
|
|
|
|
2024-11-15 19:11:31 +01:00
|
|
|
|
nvme Model CT4000P3PSSD8 hat die Seriennr 2436E98BB0CC (3. letzte ist eine Null)
|
2024-11-15 19:05:31 +01:00
|
|
|
|
nvme-CT4000P3PSSD8_2436E98BB0CC -> ../../nvme2n1
|
2024-10-21 19:57:20 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-11-02 12:51:06 +01:00
|
|
|
|
Bei einem restore in der Config folgendes eintragen :
|
|
|
|
|
unused0:pfad zur vmDisk
|
|
|
|
|
|
2024-11-09 11:15:41 +01:00
|
|
|
|
#### Synology-VM 192.168.132.19:5000
|
2024-11-02 12:51:06 +01:00
|
|
|
|
|
2024-11-09 11:15:41 +01:00
|
|
|
|
SATA0 vm-100-disk-0 3,5GB
|
|
|
|
|
SCSI1 vm-100-disk-1 50GB
|
|
|
|
|
SCSI2 vm-100-disk-2 500GB
|
2024-10-25 11:30:03 +02:00
|
|
|
|
|
|
|
|
|
|
2024-11-15 19:58:59 +01:00
|
|
|
|
#### Main Raid : (SpeicherPool4)
|
|
|
|
|
SATA1 = **/dev/nvme2n1** CT4000P3PSSD8 Seriennr 2436E98BB0CC nvme-CT4000P3PSSD8_2436E98BB0CC -> ../../nvme2n1
|
2024-11-09 11:11:41 +01:00
|
|
|
|
qm set 100 -sata1 /dev/disk/by-id/nvme-CT4000P3PSSD8_2436E98BB0CC
|
2024-10-25 11:30:03 +02:00
|
|
|
|
|
2024-11-15 19:58:59 +01:00
|
|
|
|
SATA2 = **/dev/nvme3n1** CT4000P3SSD8 Seriennr. 2336E8744F73 nvme-CT4000P3SSD8_2336E8744F73
|
2024-11-18 18:33:24 +01:00
|
|
|
|
qm set 100 -sata2 /dev/disk/by-id/nvme-CT4000P3SSD8_2336E8744F73 Disk4
|
2024-11-04 16:53:22 +01:00
|
|
|
|
|
2024-11-15 19:58:59 +01:00
|
|
|
|
SATA4 =**/dev/sdb WD-Ble-SA510** Seriennr : 2430NED01851 wwn-0x5001b44dd4441fc7 -> ../../sdb
|
2024-11-09 11:13:41 +01:00
|
|
|
|
qm set 100 -sata4 /dev/disk/by-id/wwn-0x5001b44dd4441fc7
|
2024-11-09 17:22:18 +01:00
|
|
|
|
im Server die untere Platte
|
2024-10-25 11:30:03 +02:00
|
|
|
|
|
2024-11-15 19:58:59 +01:00
|
|
|
|
SATA5 = **/dev/sdc WD-Ble-SA510** Seriennr : 2430NED01854 wwn-0x5001b44dd4441fc2 -> ../../sdc
|
2024-11-09 11:20:38 +01:00
|
|
|
|
qm set 100 -sata5 /dev/disk/by-id/wwn-0x5001b44dd4441fc2
|
2024-11-09 17:22:18 +01:00
|
|
|
|
Im Server die mittlere Patte
|
2024-11-09 11:17:41 +01:00
|
|
|
|
|
2024-11-18 18:49:24 +01:00
|
|
|
|
SCSI1 = Virtuelle Disk 50 GB
|
2024-11-18 18:43:24 +01:00
|
|
|
|
SCSI2 = Virtuelle DISK 500 GB
|
2024-11-02 12:51:06 +01:00
|
|
|
|
|
2024-11-18 18:39:24 +01:00
|
|
|
|
Disks auf der Synology
|
2024-11-18 18:59:24 +01:00
|
|
|
|
Disk 1 SCSI2 500GB
|
2024-11-18 18:49:24 +01:00
|
|
|
|
Disk 2 SATA1 ?
|
2024-11-18 19:13:24 +01:00
|
|
|
|
Disk 3
|
2024-11-18 18:59:24 +01:00
|
|
|
|
Disk 4 SCSI1 50GB
|
2024-11-18 19:03:24 +01:00
|
|
|
|
Disk 5 SATA4
|
2024-11-19 08:49:14 +01:00
|
|
|
|
Disk 6 SATA5
|
2024-11-02 12:51:06 +01:00
|
|
|
|
|
|
|
|
|
|
2024-11-09 17:28:18 +01:00
|
|
|
|
"Altes" Raid : (SpeicherPool2) **!!!rausgebaut am 09.11.2024!!!**
|
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-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-11-09 15:50:38 +01:00
|
|
|
|
### NFS Share von der Synonoly auf ProxmoxServer
|
2024-11-09 15:48:38 +01:00
|
|
|
|
|
|
|
|
|
Auf der Synology NFS Freigabe im Standart einrichten
|
|
|
|
|
Sqash : keine Zuordnung
|
2024-11-09 15:49:57 +01:00
|
|
|
|
Sicherheit: sys
|
|
|
|
|
Asyncron aktivieren anhaken
|
|
|
|
|
Verbindung privilegierte Ports NICHT anhaken
|
2024-11-09 15:48:38 +01:00
|
|
|
|
Unterordner aktivieren
|
|
|
|
|
|
|
|
|
|
Im Datacenter unter Storage Add NFS.
|
2024-11-09 15:49:57 +01:00
|
|
|
|
und dort dann hinzufügen
|
2024-11-09 11:15:41 +01:00
|
|
|
|
|
2024-10-26 09:56:33 +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
|
|
|
|
|
```
|
|
|
|
|
|
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
|
|
|
|
|
|
2024-11-05 19:03:27 +01:00
|
|
|
|
### Importing VHDX Files into Proxmox
|
|
|
|
|
```bash
|
|
|
|
|
qemu-img convert -f vhdx -O qcow2 source.vhdx destination.qcow2
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
2024-11-10 10:31:10 +01:00
|
|
|
|
#### BAckup der wichtigsten VM'S
|
2024-11-10 10:29:10 +01:00
|
|
|
|
nfsbackup ist auf dem ProxmoxServer eingebunden, um den BackupServer zu sichern
|
2024-11-05 19:03:27 +01:00
|
|
|
|
|
2024-11-10 10:29:10 +01:00
|
|
|
|
Die SynologyVM wird auf der ssd860(1TB) gesichert
|
2024-11-05 19:03:27 +01:00
|
|
|
|
|
|
|
|
|
|
2024-10-29 17:56:47 +01:00
|
|
|
|
|
2024-11-04 21:56:26 +01:00
|
|
|
|
### Convert VHDX to qcow2
|
|
|
|
|
|
|
|
|
|
```bash
|
|
|
|
|
qemu-img convert -O qcow2 Bench-Dev.vhdx /var/lib/vz/images/112/vm-112-disk-1.qcow2
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-10-29 17:56:47 +01:00
|
|
|
|
|
2024-11-02 17:35:56 +01:00
|
|
|
|
### Cronjobs
|
|
|
|
|
|
2024-11-16 10:51:26 +01:00
|
|
|
|
**Wichtig es muss immer der volle Pfad im Script angegeben werden**
|
|
|
|
|
|
2024-11-02 17:37:34 +01:00
|
|
|
|
starten einer VM:
|
|
|
|
|
/usr/sbin/qm start vmid
|
|
|
|
|
|
|
|
|
|
starten eines Containers
|
|
|
|
|
/usr/sbin/qct start vmid
|
|
|
|
|
|
|
|
|
|
stopen eines Containers
|
|
|
|
|
/usr/sbin/qct shutdown vmid
|
|
|
|
|
|
|
|
|
|
|
2024-11-03 11:26:28 +01:00
|
|
|
|
## Cronjobs Enstellungen :
|
|
|
|
|
|
2024-11-15 19:57:31 +01:00
|
|
|
|
crontab -e
|
2024-11-15 19:55:31 +01:00
|
|
|
|
|
2024-11-16 10:51:26 +01:00
|
|
|
|
|
2024-11-16 10:31:16 +01:00
|
|
|
|
|
2024-11-03 11:26:28 +01:00
|
|
|
|
40 23 * * * /root/cronjobs/101startpbs.sh
|
|
|
|
|
59 2 * * * /root/cronjobs/201stoppbs.sh
|
2024-11-15 19:55:31 +01:00
|
|
|
|
|
2024-11-03 11:26:28 +01:00
|
|
|
|
45 7 * * * /root/cronjobs/102startngix.sh
|
2024-11-15 19:57:31 +01:00
|
|
|
|
\# 46 7 * * * /root/cronjobs/104startcloud.sh
|
2024-11-03 11:26:28 +01:00
|
|
|
|
47 7 * * * /root/cronjobs/109startmcrk.sh
|
|
|
|
|
48 7 * * * /root/cronjobs/103startgitea.sh
|
|
|
|
|
49 7 * * * /root/cronjobs/106startwinfaktura.sh
|
|
|
|
|
50 7 * * * /root/cronjobs/107startkasm.sh
|
|
|
|
|
51 7 * * * /root/cronjobs/108startwin10-1.sh
|
|
|
|
|
52 7 * * * /root/cronjobs/110startpaperless.sh
|
2024-11-15 19:55:31 +01:00
|
|
|
|
|
2024-11-03 11:26:28 +01:00
|
|
|
|
00 23 * * * /root/cronjobs/210stoppaperless.sh
|
|
|
|
|
01 23 * * * /root/cronjobs/208stopwin10-1.sh
|
|
|
|
|
02 23 * * * /root/cronjobs/206stopwinfaktura.sh
|
|
|
|
|
03 23 * * * /root/cronjobs/203stopgitea.sh
|
|
|
|
|
04 23 * * * /root/cronjobs/209stopmcrk.sh
|
2024-11-15 19:57:31 +01:00
|
|
|
|
\# 05 23 * * * /root/cronjobs/204stopcloud.sh
|
2024-11-03 11:26:28 +01:00
|
|
|
|
34 23 * * * /root/cronjobs/207stopkasm.sh
|
|
|
|
|
35 23 * * * /root/cronjobs/202stopngix.sh
|
2024-11-02 17:37:34 +01:00
|
|
|
|
|
2024-11-14 19:11:16 +01:00
|
|
|
|
### Emai Benachrichtigung einrichten
|
|
|
|
|
|
2024-11-15 19:21:31 +01:00
|
|
|
|
Kann man nun in der GUI machen unter Datacenter Notification
|
2024-11-14 19:11:16 +01:00
|
|
|
|
|
|
|
|
|
|
2024-11-15 19:25:31 +01:00
|
|
|
|
#### Festplatte manuell Partitionieren
|
|
|
|
|
|
2024-11-15 19:41:31 +01:00
|
|
|
|
in der Shell
|
|
|
|
|
```bash
|
2024-11-15 19:47:31 +01:00
|
|
|
|
cfdisk /dev/nvme4n1
|
2024-11-15 19:41:31 +01:00
|
|
|
|
```
|
2024-11-15 19:51:31 +01:00
|
|
|
|
Da kann man Partitionen erstellen,
|
|
|
|
|
Danach kann man in der GUI auf der ersten Partition einem Directory machen.
|
|
|
|
|
Auf dem Rest wird dann ein LVM oder ein LVM-Thin erzeugt
|
2024-11-15 19:47:31 +01:00
|
|
|
|
|
2024-11-16 10:16:30 +01:00
|
|
|
|
|
2024-11-16 10:23:22 +01:00
|
|
|
|
### Storage aktivieren und deaktivieren
|
2024-11-16 10:16:30 +01:00
|
|
|
|
|
|
|
|
|
Disable storage pools
|
|
|
|
|
```bash
|
2024-11-16 10:18:30 +01:00
|
|
|
|
pvesm set PBSSynology --disable 1
|
|
|
|
|
pvesm set PBSusbc --disable 1
|
2024-11-16 10:16:30 +01:00
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
Enable storage pools
|
|
|
|
|
```bash
|
|
|
|
|
pvesm set PBSSynology --disable 0
|
2024-11-16 10:18:30 +01:00
|
|
|
|
pvesm set PBSusbc --disable 0
|
2024-11-16 10:16:30 +01:00
|
|
|
|
```
|
2024-11-16 10:23:22 +01:00
|
|
|
|
|
2024-11-02 17:37:34 +01:00
|
|
|
|
|