5.5 KiB
5.5 KiB
Ghid Conexiune SSH la Nod Proxmox
Informații Generale
- IP Nod Proxmox: 10.0.20.201
- Hostname: pvemini
- Versiune: pve-manager/8.4.12/c2ea8261d32a5020 (kernel: 6.8.12-14-pve)
- Utilizator: root
Configurare Inițială SSH
1. Generare Cheie SSH (din WSL/Linux)
# Generează cheie SSH RSA 4096-bit
ssh-keygen -t rsa -b 4096 -C "your-email@example.com"
# Locația default: ~/.ssh/id_rsa
# Apasă Enter pentru locația default
# Setează parolă opțională pentru cheie
2. Copierea Cheii pe Proxmox
# Metoda automată
ssh-copy-id root@10.0.20.201
# Metoda manuală
cat ~/.ssh/id_rsa.pub | ssh root@10.0.20.201 "mkdir -p ~/.ssh && cat >> ~/.ssh/authorized_keys"
3. Testare Conexiune
ssh root@10.0.20.201
Storage Configuration
Storage-uri Disponibile
| Storage | Tip | Conținut | Capacitate | Utilizare |
|---|---|---|---|---|
backup |
dir | backup,snippets,rootdir,images,import,iso,vztmpl | 1.79 TiB | 174.99 GiB (9.55%) |
backup-ssd |
dir | images,snippets,rootdir,backup,vztmpl,iso | 0.00 B | Dezactivat |
local |
dir | iso,backup,vztmpl | 1.54 TiB | 128.00 KiB |
local-zfs |
zfspool | rootdir,images | 1.54 TiB | 217.65 GiB (12.12%) |
backup-nfs |
nfs | backup,snippets,images,iso,vztmpl | 1.53 TiB | 174.99 GiB (9.55%) |
Căi Storage
- Backup local:
/var/lib/vz/dump/ - Backup NFS:
/mnt/pve/backup-nfs/dump/ - ISO-uri:
/mnt/pve/backup-nfs/template/iso/
Comenzi Utile Proxmox
Gestiune VM-uri
# Listare toate VM-urile
qm list
# Status VM specific
qm status <VMID>
# Start/Stop/Restart VM
qm start <VMID>
qm stop <VMID>
qm restart <VMID>
# Configurație VM
qm config <VMID>
# Modificare configurație
qm set <VMID> --memory 4096 --cores 2
Gestiune LXC Containers
# Listare containere
pct list
# Status container
pct status <CTID>
# Start/Stop container
pct start <CTID>
pct stop <CTID>
# Configurație container
pct config <CTID>
# Intrare în container
pct enter <CTID>
Gestiune Storage
# Listare storage-uri
pvesm status
# Conținut storage
pvesm list <storage_name>
# Spațiu disponibil
pvesm list local-zfs
# Ștergere volum
pvesm free <volume_id>
Gestiune Backup-uri
# Listare backup-uri
pvesh get /cluster/backup
# Backup manual VM
vzdump <VMID> --storage backup --compress gzip
# Restore backup
qmrestore /path/to/backup.vma.gz <VMID> --storage local-zfs
# Căutare backup-uri pentru VM specific
find /mnt/pve/backup-nfs/dump/ -name "*<VMID>*" | sort -V
Configurații Hardware Recomandate
Pentru VM Windows 11
qm set <VMID> --cpu host --cores 2 --memory 4096 --kvm 1
qm set <VMID> --machine q35 --bios ovmf --ostype win11
qm set <VMID> --net0 e1000=<MAC>,bridge=vmbr0,firewall=1
qm set <VMID> --virtio0 local-zfs:80,format=raw
Pentru VM Windows 7/10
qm set <VMID> --cpu host --cores 2 --memory 4096 --kvm 1
qm set <VMID> --machine pc-i440fx-2.12 --bios seabios --ostype win10
qm set <VMID> --net0 virtio=<MAC>,bridge=vmbr0,firewall=1
qm set <VMID> --virtio0 local-zfs:60,format=raw
Pentru LXC Ubuntu/Debian
pct set <CTID> --cores 2 --memory 2048
pct set <CTID> --net0 name=eth0,bridge=vmbr0,ip=dhcp,type=veth
pct set <CTID> --rootfs local-zfs:20
Template-uri și ISO-uri Disponibile
Windows ISO-uri
Win11_24H2_Original.iso- Windows 11 original (5.8GB)windows11rufus.iso- Windows 11 modificat cu Rufus (5.8GB)windows10.iso- Windows 10 (4.6GB)
Drivere
virtio-win-0.1.141.iso- Drivere VirtIO pentru Windows
Rețea
Configurația Bridge
- Bridge: vmbr0
- Subnet: 10.0.20.0/24
- Gateway: 10.0.20.1 (presumptiv)
IP-uri Utilizate
- Proxmox Node: 10.0.20.201
- VM 107: 10.0.20.107 (Windows 7)
- VM 201: 10.0.20.124 (Windows 11 - planificat)
Backup Job Configuration
Job ID: backup-fbb668c0-726e
- Schedule: Daily la 02:00
- Compression: zstd
- Mode: snapshot
- Storage: backup
- VM-uri incluse: 100,101,102,104,106,107
- Retention: 1 daily, 1 weekly
Troubleshooting
Probleme Comune SSH
# Regenerare host keys dacă e nevoie
ssh-keygen -R 10.0.20.201
# Conectare cu debug
ssh -v root@10.0.20.201
# Test conectivitate
ping 10.0.20.201
Probleme VM Windows 11
# Bypass cerințe TPM/Secure Boot în setup
reg add "HKLM\SYSTEM\Setup\LabConfig" /v "BypassTPMCheck" /t REG_DWORD /d 1 /f
reg add "HKLM\SYSTEM\Setup\LabConfig" /v "BypassSecureBootCheck" /t REG_DWORD /d 1 /f
reg add "HKLM\SYSTEM\Setup\LabConfig" /v "BypassRAMCheck" /t REG_DWORD /d 1 /f
# Forțare cont local în OOBE
oobe\BypassNRO.cmd
Verificare Status Servicii
# Status servicii Proxmox
systemctl status pveproxy
systemctl status pvedaemon
systemctl status pvestatd
# Restart servicii dacă e nevoie
systemctl restart pveproxy
Web Interface
- URL: https://10.0.20.201:8006
- Utilizator: root
- Port: 8006 (HTTPS)
Note Importante
- Întotdeauna fă backup înainte de modificări majore
- Folosește storage local-zfs pentru performanță optimă
- Pentru Windows 11 folosește placa de rețea e1000 în loc de VirtIO pentru compatibilitate
- CPU type 'host' oferă performanțe maxime cu KVM=1
- Testează conexiunea SSH înainte de automatizări