|
|
| (107 dazwischenliegende Versionen von 11 Benutzern werden nicht angezeigt) |
| Zeile 1: |
Zeile 1: |
| =Infos - Hostsystem= | | =Proxmox= |
| | [[Kategorie:Proxmox]] |
| | *[[Was ist Proxmox?]] |
| | *[[proxmox installation]] |
| | *[[proxmox cluster workshop]] |
| | *[[proxmox netzwerk konfiguration]] |
| | *[[proxmox cluster]] |
| | *[[proxmox storage einbinden]] |
| | *[[proxmox vm erstellen]] |
| | *[[proxmox vm erstellen Aufgaben]] |
| | *[[proxmox migration]] |
| | *[[proxmox migration Aufgaben]] |
| | *[[proxmox Hardware hinzufügen und ändern]] |
| | *[[proxmox Hardware hinzufügen und ändern Aufgabe]] |
| | *[[proxmox internes Lan erstellen]] |
| | *[[proxmox qmevent]] |
| | *[[proxmox disk import]] |
| | *[[proxmox disk import Aufgabe]] |
| | *[[proxmox backup]] |
| | *[[proxmox backup Aufgaben]] |
| | *[[proxmox snapshots]] |
| | *[[proxmox snapshots Aufgaben]] |
| | *[[proxmox console]] |
| | *[[proxmox cloud-init]] |
| | *[[proxmox Pools]] |
| | *[[proxmox Pools Aufgabe]] |
| | *[[proxmox lxc]] |
| | *[[proxmox lxc Aufgaben]] |
| | *[[proxmox ha]] |
| | *[[Proxmox ISCSI Anbindung]] |
| | *[[CEPH Promox]] |
| | *[[Proxmox Backup Server]] |
| | *[[Hochverfügbares NFS-System mit DRBD, Pacemaker und Corosync auf 2 Nodes]] |
| | *[[Proxmox Domain Integration]] |
| | *[[Proxmox Guests]] |
| | *[[Proxmox Cluster - GUI und Konsole]] |
|
| |
|
| [[Datei:proxmox.jpg|1050px]] | | =Weiteres= |
| | *[[proxmox Benutzerrechte]] |
| | *[[proxmox iscsi]] |
| | *[[Snapshot Proxmox]] |
| | *[[Proxmox mit Opnsense]] |
| | *[[Proxmox Consolen Verwaltung]] |
| | *[[CEPH]] |
|
| |
|
| * über die URL: https://HOST-IP:8006/ kann man auf das Webinterface zugreifen. | | *[[LXC]] |
|
| |
|
| * Die klassische Ansicht zeigt links die Server/VM-Liste und in der Mitte die verschiedenen Monitore/Parameter sowie Einstellungsmöglichkeiten. | | *[[Proxmox ZFS Mirror erstellen]] |
|
| |
|
| * unten befindet sich der Serverlog, welcher die aktuellen Prozesse/Aufgaben anzeigt. | | *[[Proxmox ZFS Pools]] |
| | *[[proxmox cluster delete]] |
| | *[[proxmox license sux]] |
|
| |
|
| ==Neue VM anlegen/löschen== | | =Misc= |
| | *[[proxmox storage]] |
| | =Hilfreiche Seiten= |
| | *https://tteck.github.io/Proxmox/#proxmox-ve-tools |
| | *https://binarypatrick.dev/posts/proxmox-quorum-qdevice/ |
| | *https://pve.proxmox.com/wiki/Windows_10_guest_best_practices |
| | *[[LXC]] |
|
| |
|
| : '''1.''' Man klickt den Knotenpunkt an
| | =Bugs= |
| : '''2.''' Auf den "Erstelle VM"-Button oben rechts klicken
| | *[[Proxmox Low performance with Intel NIC with heavy udp traffic]] |
| : '''3.''' Die jeweiligen Spezifikationen eintragen
| |
|
| |
|
| [[Datei:proxmox2.jpg]]
| | =Links= |
| | | *https://www.biteno.com/tutorial/proxmox-pve/ |
| : '''4.''' VM wird normalerweise automatisch danach gestartet, wenn nicht -> starten!
| | *qm Befehle: |
| : '''5.''' Die VM in der Hostliste links auswählen und danach auf "Konsole" oben rechts klicken. (dafür muss Java installiert sein, siehe Troubleshoot)
| | **https://pve.proxmox.com/pve-docs/qm.1.html |
| : '''6.''' Nun seht ihr ein neues Browserfenster, mit der grafischen Ausgabe der VM.
| |
| | |
| [[Datei:proxmox3.jpg|700px]]
| |
| | |
| : '''7.''' Fertig installieren.
| |
| : '''8.''' VM herunterfahren
| |
| : '''9.''' Vm anklicken, Optionen auswählen, Bootreihenfolge per Doppelklick anpassen!
| |
| | |
| [[Datei:proxmox5.jpg|700px]]
| |
| | |
| : '''10.''' anwählen der VM, und einen Klick auf "Entfernen" oben rechts, führt zum löschen der VM
| |
| | |
| ==Storage über webinterface==
| |
| | |
| : '''1.''' "Rechenzentrum" anwählen
| |
| : '''2.''' zum Reiter "Storage" wechseln
| |
| : '''3.''' "Hinzufügen/entfernen/Bearbeiten" nach belieben drücken
| |
| | |
| '''Beispiel hier: NFS'''
| |
| [[Datei:proxmox6.jpg]]
| |
| | |
| | |
| : '''4.''' Wählt euer Storagetyp (NFS/iSCSI/Directory/etc...)
| |
| : '''5.''' Wählt bei Inhalt '''alles''' aus und setzt "Max Backups" nach oben. (Dieser Parameter gibt die maximale Anzahl an mlgichen Backups auf dem Speicher an.)
| |
| | |
| [[Datei:proxmox7.jpg]]
| |
| | |
| : YT-Video: http://www.youtube.com/watch?v=kHyf_l1Q1ow
| |
| | |
| ===Storage über Konsole mounten===
| |
| ====template/isos====
| |
| cd /var/lib/vz
| |
| rm -r iso/ && ln -s /mnt/MOUNTPUNKFÜRDEINEISOS/ iso
| |
| ====bestehende VMs====
| |
| cd /var/lib/vz
| |
| rm -r images/ && ln -s /mnt/MOUNTPUNKFÜRDEINEVMS/ images
| |
| | |
| Danach müssen noch die confs kopiert werden.
| |
| | |
| /etc/pve/qemu-server/ vom originalsystem kopieren oder auch mounten
| |
| cd /etc/pve/
| |
| rm -r qemu-server/ && ln -s /mnt/MOUNTPUNKFÜRDEINEVMCONFS/ qemu-server
| |
| | |
| '''ACHTUNG: wenn die confs kopiert werden, müssen die Pfadangaben überarbeitet werden!'''
| |
| | |
| ==Migration==
| |
| | |
| Rechtsklick auf die VM und "Migration" auswählen, dazu muss ein weiterer Knoten bekannt sein. (Knoten = ProxmoxVE-Host)
| |
| : YT-Video: http://www.youtube.com/watch?v=AkimEEHArqg
| |
| | |
| ===Image einfügen===
| |
| | |
| 1. auf dem Host System das gewünscht Image (raw/.img) hinterlegen
| |
| | |
| 2. eine neue VM anlegen und den gewünschten Typ anlegen! (qcow2/raw/vmdk)
| |
| | |
| 3. Bei Bedarf das Image konvertieren:
| |
| qemu-img -f raw -O qcow2 input.img output.qcow2
| |
| | |
| 4. Das Image mit dem erstellen Datenspeicher ersetzen:
| |
| cp input.img ../"VM-ID"/vm-"VM-ID"-disk-1.qcow2
| |
| Beispiel: cp input.img ../101/vm-101-disk-1.qcow2
| |
| | |
| 5. vm starten
| |
| | |
| : Link: http://agix.com.au/blog/?p=2696
| |
| | |
| | |
| === Storage einfügen ===
| |
| | |
| ==Backup==
| |
| | |
| Grundsätzlich gibt es 3 Arten, eine VM zu backupen.
| |
| | |
| : '''1.''' stop-mode (Da wird die VM komplett heruntergefahren. lange downtime)
| |
| : '''2.''' suspend-mode (VM wird in den Ruhemodus versetzt. kurze Downtime)
| |
| : '''3.''' snapshot-mode (VM bleibt aktiv beim Backup)
| |
| ===webinterface===
| |
| ====Backup erstellen====
| |
| | |
| : '''1.''' VM anwählen
| |
| : '''2.''' zum Reiter "Backup" wechseln
| |
| : '''3.''' "Backup starten" auswählen
| |
| : '''4.''' Kompression, Storage und mode angeben
| |
| | |
| [[Datei:proxmox8.jpg]]
| |
| | |
| : '''5.''' Wenn das Backup fertig ist, seht ihr nun einen Eintrag in der "Backup-Liste" '''(Beispiel hier: VM: -101 seven-)'''
| |
| : '''(eventuell noch den Storage oben rechts anpassen...
| |
| '''
| |
| [[Datei:proxmox9.jpg]]
| |
| | |
| ====Backup aufspielen====
| |
| | |
| : '''oben rechts euer Backup-Storage auswählen!'''
| |
| | |
| : '''1.''' In der Hostleiste links, muss das Backupverzeichnis geöffnet werden
| |
| : '''2.''' Danach auf den Reiter "Inhalt" wechseln
| |
| : '''3.''' Hier ist eine Liste mit Images/Backups/Snapshots/etc. zu sehen
| |
| | |
| [[Datei:proxmox10.jpg]]
| |
| | |
| : '''4.''' Backup anwählen, und zurückspieln
| |
| | |
| ====Snapshot live====
| |
| | |
| =====erstellen=====
| |
| | |
| : '''1.''' VM anwählen
| |
| : '''2.''' zum Reiter "Snapshots" wechseln
| |
| : '''3.''' "Snapshot erstellen" auswählen
| |
| : '''4.''' Beschreibung und Name eingeben.
| |
| | |
| =====rollback=====
| |
| | |
| : '''1.''' VM anwählen
| |
| : '''2.''' zum Reiter "Snapshots" wechseln
| |
| : '''3.''' gewünschtes Snapshot auswählen
| |
| : '''4.''' "Rollback" drücken
| |
| | |
| | |
| ===console===
| |
| ====Backup erstellen====
| |
| | |
| : '''1.''' als root einloggen
| |
| : '''2.''' VM-ID der zu backupenden VM auswählen
| |
| : '''3.''' Kompression, Storage und mode angeben
| |
| : '''4.''' Backup erstellen:
| |
|
| |
| vzdump $VMID --remove 0 --mode $MODE --compress $COMP --storage $STOR --node $HOSTSYSTEM
| |
| mode-usage: snapshot | stop | suspend
| |
| compress-usage: 0 | 1 | gzip | lzo (lzo is default)
| |
| storage: im webinterface kann man die gemounteten Storages einsehen
| |
| | |
| Beispiel:
| |
| vzdump 102 --remove 0 --mode stop --compress lzo --storage bucket-one --node moxxie
| |
| | |
| | |
| ====Backup aufspielen====
| |
| | |
| : '''Das Backup auf dem Storage suchen. Bei mir wurde das Verzeichnis "dump" erstellt. (bucket-one ist hier der gemountete Speicher)'''
| |
| | |
| : '''1.''' lzop -d -c /mnt/pve/bucket-one/dump/vzdump-qemu-102-2013_11_07-13_40_03.vma.lzo|vma extract -v -r /var/tmp/vzdumptmp161098.fifo - /var/tmp/vzdumptmp161098
| |
| : '''2.''' "zurückspielen"
| |
| : '''3.''' VM-ID und Storage auswählen
| |
| : '''4.''' (Das ist btw auch ein Weg die VM zu kopieren)
| |
| | |
| ====Snapshot live====
| |
| | |
| =====erstellen=====
| |
| | |
| : '''1.''' VM anwählen
| |
| : '''2.''' zum Reiter "Snapshots" wechseln
| |
| : '''3.''' "Snapshot erstellen" auswählen
| |
| : '''4.''' Beschreibung und Name eingeben.
| |
| | |
| =====rollback=====
| |
| | |
| : '''1.''' VM anwählen
| |
| : '''2.''' zum Reiter "Snapshots" wechseln
| |
| : '''3.''' gewünschtes Snapshot auswählen
| |
| : '''4.''' "Rollback" drücken
| |
| | |
| =Troubleshoot=
| |
| ==VNC Ports umlegen==
| |
| ===Für Proxmox /3.X2.X===
| |
| vi /usr/share/perl5/PVE/Tools.pm
| |
| | |
| Ändern von diesen Zeilen, (ca. Zeile 724)
| |
| <pre>
| |
| sub next_vnc_port {
| |
| return next_unused_port(5900, 6000);
| |
| }
| |
| </pre>
| |
| | |
| in diese Zeilen: (gewünschte Ports eintragen[Bsp.: 6900-7000])
| |
| <pre>
| |
| sub next_vnc_port {
| |
| return next_unused_port(6900, 7000);
| |
| }
| |
| </pre>
| |
| | |
| Das Proxmox-System muss neugestartet werden!
| |
| | |
| ===Für Proxmox 1.X===
| |
| vi /usr/share/perl5/PVE/ConfigServer.pm
| |
| | |
| Ändern von dieser Zeile,
| |
| for (my $p = 5900; $p < 6000; $p++) {
| |
| | |
| in diese Zeile: (gewünschte Ports eintragen[Bsp.: 6900-7000])
| |
| for (my $p = 6900; $p < 7000; $p++) {
| |
| | |
| Das Proxmox-System muss neugestartet werden!
| |
| | |
| ==USB pass through==
| |
| | |
| mit das device ermitteln
| |
| lsusb
| |
| | |
| Beispiel:
| |
| <pre>
| |
| root@moxxie:/var/log/vzdump# lsusb
| |
| Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
| |
| Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
| |
| Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
| |
| Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
| |
| Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
| |
| Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
| |
| Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
| |
| Bus 008 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
| |
| Bus 008 Device 002: ID 046d:c315 Logitech, Inc. Classic New Touch Keyboard
| |
| Bus 008 Device 003: ID 04d8:fa0d Microchip Technology, Inc.
| |
| root@moxxie:/var/log/vzdump#
| |
| </pre>
| |
| | |
| Wir suchen dieses Gerät und wollen es durchtunneln:
| |
| Bus 008 Device 003: ID 04d8:fa0d Microchip Technology, Inc.
| |
| | |
| danach das USBGerät durchtunneln
| |
| qm set $VMID -usb0 host=$VENDOR:$PRODID
| |
| | |
| Beispiel:
| |
| qm set 110 -usb0 host=04d8:fa0d
| |
| | |
| ==Port list==
| |
| | |
| Web interface: 8006
| |
| VNC Web console: 5900-5999
| |
| SPICE console: 3128
| |
| SSH access (only optional): 22
| |
| CMAN multicast (if you run a cluster): 5404, 5405 UDP
| |
| | |
| ==VM-Killen==
| |
| | |
| Mit SSH auf den Knoten/server connecten.
| |
| | |
| Danach mit '''"ps -elf | grep kvm"''' die VM suchen und mit "kill" töten...
| |
| | |
| ==Validation entfernen==
| |
| backup the file:
| |
| cp /usr/share/pve-manager/ext4/pvemanagerlib.js /usr/share/pve-manager/ext4/pvemanagerlib.js_BKP
| |
| | |
| open the file
| |
| vi /usr/share/pve-manager/ext4/pvemanagerlib.js +454
| |
| | |
| change the line to below;
| |
| if (data.status !== 'Active') {
| |
| if (false) {
| |
| | |
| ==Manual: qm==
| |
| *http://pve.proxmox.com/wiki/Manual:_qm | |
| | |
| ==Java Konsole==
| |
| | |
| Laut Proxmox einfach updaten!
| |
| Stable version: '''7 Patch45 32bit @Windows7'''
| |
| | |
| *http://pve.proxmox.com/wiki/Java_Console_%28Ubuntu%29 | |
| | |
| ==Install Proxmox VE on Debian Squeeze==
| |
| : http://pve.proxmox.com/wiki/Install_Proxmox_VE_on_Debian_Squeeze
| |
| ==Install Proxmox VE on Debian Wheezy==
| |
| : http://pve.proxmox.com/wiki/Install_Proxmox_VE_on_Debian_Wheezy
| |
| | |
| ==Hetzner Proxmox installieren==
| |
| : http://wiki.hetzner.de/index.php/Proxmox_VE#Netzwerkkonfiguration_KVM.2FBridged
| |
| | |
| ==Konfigfiles==
| |
| /etc/pve/qemu-server/
| |
| ==Isos==
| |
| /var/lib/vz/template/iso
| |
| =QM=
| |
| == listen der virtuellen maschinen ==
| |
| root@betor:~# qm list
| |
| VMID NAME STATUS MEM(MB) BOOTDISK(GB) PID
| |
| 100 jello running 4096 32.00 6942
| |
| 101 seven stopped 4096 32.00 0
| |
| 102 icinga stopped 1024 10.00 0
| |
| 103 VM 103 stopped 0 0.00 0
| |
| 104 symantec stopped 2048 250.00 0
| |
| 108 icinga stopped 1024 10.00 0
| |
| == starten der virtuellen maschinen ==
| |
| root@betor:~# qm start 101
| |
| == stoppen der virtuellen maschinen ==
| |
| root@betor:~# qm stop 101
| |
| == config der virtuellen maschinen auslesen ==
| |
| root@betor:~# qm config 101
| |
| boot: dcn
| |
| bootdisk: ide0
| |
| cores: 2
| |
| ide0: local:101/vm-101-disk-1.qcow2,format=qcow2,size=32G
| |
| ide2: none,media=cdrom
| |
| memory: 4096
| |
| name: seven
| |
| net0: e1000=2A:06:D1:86:82:37,bridge=vmbr0
| |
| ostype: win7
| |
| sockets: 2
| |
| == shutdown einer virtuellen maschine ==
| |
| root@betor:~# qm shutdown 101
| |
| == status einer virtuellen maschine anzeigen ==
| |
| root@betor:~# qm status 101
| |
| status: running
| |