Du befindest dich hier: Willkommen » Linux » Proxmox

Unterschiede

Hier werden die Unterschiede zwischen zwei Versionen der Seite angezeigt.

Link zu der Vergleichsansicht

Beide Seiten, vorherige ÜberarbeitungVorherige Überarbeitung
Nächste Überarbeitung
Vorherige Überarbeitung
linux:proxmox [25.09.2023 12:31] Martinlinux:proxmox [07.12.2024 12:20] (aktuell) Martin
Zeile 2: Zeile 2:
  
 [[https://www.proxmox.com/de/|Proxmox]] ist ein freier Level 1 Hypevisor basierend auf Linux. [[https://www.proxmox.com/de/|Proxmox]] ist ein freier Level 1 Hypevisor basierend auf Linux.
 +
 +## Benutzer in CT Container anlegen
 +
 +```
 +apt update
 +apt install -y sudo curl wget nano mc
 +adduser martin
 +usermod -aG sudo martin
 +groups martin
 +su martin
 +```
  
 ## Community Repository ## Community Repository
-<code bash>+```
 rm /etc/apt/sources.list.d/pve-enterprise.list rm /etc/apt/sources.list.d/pve-enterprise.list
-rm /etc/apt/sources.list.d/ceph-quincy+rm /etc/apt/sources.list.d/ceph.list
 echo "deb http://download.proxmox.com/debian/pve bookworm pve-no-subscription">>/etc/apt/sources.list.d/pve-community.list echo "deb http://download.proxmox.com/debian/pve bookworm pve-no-subscription">>/etc/apt/sources.list.d/pve-community.list
 apt update && apt full-upgrade -y && apt autoremove -y apt update && apt full-upgrade -y && apt autoremove -y
 reboot reboot
-</code>+```
  
 Weitere Informationen im [Proxmox Wiki](https://pve.proxmox.com/wiki/Package_Repositories#sysadmin_no_subscription_repo) Weitere Informationen im [Proxmox Wiki](https://pve.proxmox.com/wiki/Package_Repositories#sysadmin_no_subscription_repo)
Zeile 24: Zeile 35:
 <code bash> <code bash>
 lvremove /dev/pve/data lvremove /dev/pve/data
-lvresize -l 100%FREE /dev/pve/root +vgdisplay pve | grep Free 
-resize2fs /dev/mapper/pve-root+lvextend -r -L +160G /dev/pve/root
 </code> </code>
  
Zeile 32: Zeile 43:
 Ab jetzt können ISO's hochgeladen und virtuelle Maschinen erstellt werden. Ab jetzt können ISO's hochgeladen und virtuelle Maschinen erstellt werden.
  
-Quelle: [[https://www.youtube.com/watch?v=LuCXHHc2u18|Techhut via Youtube ab ca. 8:30]]+Quelle: [[https://www.youtube.com/watch?v=LuCXHHc2u18|Techhut via Youtube ab ca. 8:30]] bzw. [[https://gist.github.com/laineantti/4fc29acbbd25593619a76b413e42b78f]] 
 + 
 +## Cluster-Konfiguration löschen 
 + 
 +``` 
 +systemctl stop pve-cluster corosync 
 +pmxcfs -l 
 +rm -R /etc/corosync/
 +rm /etc/pve/corosync.conf 
 +killall pmxcfs 
 +systemctl start pve-cluster 
 +```
  
 ## VM auf anderen Host übertragen ## VM auf anderen Host übertragen
Zeile 54: Zeile 76:
 qm start 10001 qm start 10001
 </code> </code>
 +
 +### Alternative
 +Sofern auf dem System nicht genügend Platz ist, um ein Backup zu erstellen, kann man die Platte der Maschine auch direkt kopieren.  
 +Dazu muss auf dem Zielsystem die gleiche Maschine erstellt worden sein und Quelle sowie Ziel sind ausgeschaltet.  
 +Nun löscht man in der Zielmaschine die qcow2 Festplatte und überträgt die des Quell-Systems via:
 +<code bash>
 +scp root@quell-maschine:/var/lib/vz/images/199/vm-199-disk-0.qcow2 /var/lib/vz/images/199/
 +</code>
 +199 ist hier die ID der Maschine. Die Übertragung geht natürlich auch in die andere Richtung.
  
 Quelle: [[https://sleeplessbeastie.eu/2022/10/10/how-to-copy-proxmox-virtual-machine-to-another-server/|How to copy Proxmox virtual machine to another server]] Quelle: [[https://sleeplessbeastie.eu/2022/10/10/how-to-copy-proxmox-virtual-machine-to-another-server/|How to copy Proxmox virtual machine to another server]]
linux/proxmox.1695645101.txt.gz · Zuletzt geändert: 25.09.2023 12:31 von Martin