Ga naar hoofdinhoud
Proxmox Windows Best Practices

Best Practices voor Windows VM's in Proxmox VE

1 February 2024
MadeMy Team
3 min leestijd
Best Practices voor Windows VM's in Proxmox VE

Best Practices voor Windows VM’s in Proxmox VE

Windows VM’s draaien uitstekend op Proxmox VE, maar er zijn enkele optimalisaties die de performance en stabiliteit significant verbeteren. In dit artikel delen wij onze ervaring.

VM Hardware Configuratie

CPU

CPU Type

Kies “host” als CPU type voor de beste performance:

Hardware → Processors → Type: host

Dit geeft de VM toegang tot alle CPU features van de host.

Cores vs Sockets

  • Windows Desktop: 1 socket, 2-8 cores
  • Windows Server: 1-2 sockets, 4-16 cores
  • Belangrijk: Windows licenties zijn socket-gebaseerd

Memory

Ballooning

Schakel memory ballooning uit voor stabiele performance:

Hardware → Memory → Ballooning: No

Huge Pages

Overweeg 1GB huge pages voor grote VM’s (>32GB RAM).

Storage

Disk Type: SCSI met VirtIO

Altijd SCSI controller met VirtIO gebruiken:

  1. HardwareAddHard Disk
  2. Bus/Device: SCSI
  3. Cache: Write back (met battery/UPS)
  4. Discard: Yes (voor thin provisioning)
  5. IO thread: Yes

Disk Format

  • QCOW2: Voor backups en snapshots
  • RAW: Voor beste performance (op ZFS/LVM)

Windows VirtIO Drivers

Installeer de VirtIO drivers:

  1. Download VirtIO ISO
  2. Mount in VM
  3. Installeer:
    • Balloon driver
    • NIC driver
    • SCSI driver
    • Serial driver

Network

VirtIO NIC

Gebruik altijd VirtIO als NIC model:

Hardware → Network Device → Model: VirtIO

Multi-Queue

Voor high-performance networking, schakel multi-queue in:

Hardware → Network Device → Multiqueue: 8 (of CPU cores)

Guest Agent

Installeer de QEMU Guest Agent voor betere integratie:

  1. Mount VirtIO ISO
  2. Installeer qemu-ga-x64.msi
  3. Controleer service status:
    1
    
    Get-Service QEMU-GA
    

Voordelen Guest Agent

  • Correcte shutdown
  • IP informatie in UI
  • Trim/discard support
  • Time synchronisatie

Windows Optimalisaties

Inside de VM

1. Power Plan

Instellen op High Performance:

1
powercfg /setactive 8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c

2. Visual Effects

Minimaliseer voor server workloads:

System Properties → Performance Settings → Adjust for best performance

3. Services

Overweeg het uitschakelen van onnodige services:

  • Windows Search (voor servers)
  • Superfetch/SysMain
  • Print Spooler (indien niet nodig)

4. Disk Optimalisaties

1
2
3
4
5
# Disable defrag for SSDs
Optimize-Volume -DriveLetter C -Analyze

# TRIM support inschakelen
fsutil behavior set DisableDeleteNotify 0

Registry Tweaks

Timer Resolutie

Voor betere gaming/workload performance:

1
2
# HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters
# Add DWORD: MaxThreadsPerQueue = 20

Backup Consideraties

QEMU Guest Agent

Essentieel voor consistente backups:

  • VSS (Volume Shadow Copy) support
  • Application-consistent snapshots

Backup Strategie

Proxmox Backup Server:
- Dagelijkse incrementals
- Wekelijkse full backups
- Retentie: 30 dagen

Monitoring

Key Metrics

Houd deze metrics in de gaten:

  • CPU ready time (<5% is goed)
  • Memory ballooning
  • Disk latency (<10ms)
  • Netwerk packet loss

Tools

  • Proxmox built-in monitoring
  • Windows Performance Monitor
  • Grafana + InfluxDB (optioneel)

Veelvoorkomende Problemen

“No boot disk found”

  • Controleer boot order
  • VirtIO SCSI driver geïnstalleerd?

Traag netwerk

  • VirtIO NIC gebruiken?
  • Multi-queue geconfigureerd?

High CPU usage

  • Check CPU ready time
  • Sufficient memory allocated?
  • Ballooning uitgeschakeld?

Performance Vergelijking

ConfiguratieIOPSLatencyCPU Usage
IDE (default)5K15ms100%
SCSI (LSI)15K8ms80%
SCSI (VirtIO)50K+2ms40%

Gemiddelde waarden op NVMe storage

Conclusie

Met de juiste configuratie draaien Windows VM’s uitstekend op Proxmox VE. De belangrijkste takeaways:

  1. Gebruik VirtIO voor storage en network
  2. Installeer Guest Agent
  3. Optimaliseer Windows instellingen
  4. Monitor performance metrics

Hulp nodig bij het optimaliseren van uw Windows VM’s? Neem contact met ons op.

Tags

#windows #performance #optimization

Deel dit artikel