Zum Hauptinhalt springen
Echtzeit-Radar & Feeds
Alle RSS Feeds ➔
👥 Community & Social
Windows Tipps & SecurityGrafikkarte vor Überhitzung schützen: So geht’s(25.09.2026 um 08:00 Uhr)
••••••••••
Windows Tipps & SecurityGrafikkarte vor Überhitzung schützen: So geht’s(25.09.2026 um 08:00 Uhr)
••••••••••
Intelligence View
⚡ tsecurity.de Intelligence

Proxmox Virtual Machine optimization - Deep Dive

In the previous articles, I covered the basic VM settings you should configure by default in Proxmox VE. Proxmox hugepages Proxmox CPU affinity In this article, I’ll explain what actually happens under the hood and why proper CPU, N…

0
↗ Quelle (dev.to)
Reagiere als Erste:r — dein Feedback zählt!

In the previous articles, I covered the basic VM settings you should configure by default in Proxmox VE.





In this article, I’ll explain what actually happens under the hood and why proper CPU, NUMA, and interrupt configuration is critical for high-performance workloads - especially if you run latency-sensitive services or Kubernetes worker nodes.






CPU Affinity - is not enough



When you configure a CPU affinity list in Proxmox:




  • The VM is restricted to a predefined set of physical CPU cores.

  • All vCPUs are allowed to run on those cores.

  • However, the hypervisor scheduler can still move individual vCPUs between the allowed cores.



If you allow cores 0-7, then: vCPU-1 may run on core 0 now, then move to core 3, then to core 6.

The VM expects predictable CPU behavior, especially for workloads like databases, networking services, or Kubernetes nodes, which have their own optimizations based on CPU cache and latency. Moving VM CPU cores around can cause unpredictable performance degradation.



To achieve stable performance, you need to ensure that each vCPU of the VM is pinned to a specific physical CPU core.

Proxmox does not automatically pin each vCPU one-by-one.



You must configure this explicitly by scripts or automate it — see solution below.





Memory Numa nodes - avoid cross-node memory access



Modern servers (CPUs) use NUMA architecture.



If NUMA is not configured correctly: Proxmox allocate memory across multiple NUMA nodes, and the VM may have to access memory from different NUMA nodes. This results in increased latency and cross-node (socket) memory access, which can significantly degrade performance.



To avoid this, you need:




  • identify which physical cores belong to each NUMA node.

  • define VM CPU affinity within a single NUMA node.

  • configure VM NUMA settings to match that node.



Why use only one NUMA node for a VM is the best strategy? Because qemu does not provide a cpu architecture of the host machine by default.

You need to use qemu arguments to pass it.



In case if you have CPU cores and threads from one numa node - this arguments is enough:




args: -cpu 'host,topoext=on,host-cache-info=on' -smp '4,sockets=1,cores=2,threads=2,maxcpus=4'






Do not forget to set cores and threads according to your VM CPU configuration.






SR-IOV devices



Each hardware device uses interrupts to notify the Linux kernel that it has data to process.

If the interrupt is handled by a different CPU core than the one running the VM’s vCPU, several problems may occur:




  • CPU cache misses

  • cross-core synchronization overhead

  • increased memory traffic



We need to set hardware interrupt handling list the same as the CPU affinity list of the VM to solve this problem.





Solution



To automate all of this, I created an open-source component as part of Karpenter for Proxmox



The Proxmox Scheduler:




  • observes running VMs

  • reads their CPU affinity configuration

  • pins each vCPU to a specific host core

  • sets correct interrupt affinity for SR-IOV devices

  • optionally optimizes CPU frequency governor for power consumption.



It distributes as a deb package and can be installed on the Proxmox host:




dpkg -i https://github.com/sergelogvinov/karpenter-provider-proxmox/releases/download/v0.10.1/proxmox-scheduler_0.10.1_linux_amd64.deb






You can also optimize power usage:




  • set CPU governor to performance for cores used by VMs

  • set CPU governor to powersave for unused cores






References



1. Sofort-Triage & Abwehrmaßnahmen

SOC Incident Playbook: Remote Code Execution (RCE) Defense
Syntax validiert (0 Fehler)
title: Detect Exploitation - Proxmox Virtual Machine optimization - Deep Dive
id: 4f1b236f-e150-4d45-a57b-717beb623bdc
status: experimental
description: Automatisch generierte SIEM-Erkennungsregel basierend auf CTI Intelligence
references:
  - https://tsecurity.de/
author: iShareStuff CTI Automated Detection Engine
date: 2026-09-25
logsource:
  category: network_connection
  product: any
detection:
  selection:
      CommandLine|contains:
        - 'exploit'
  condition: selection
falsepositives:
  - Legitime administrative Zugriffe oder Penetrationstests
level: high
tags:
  - attack.initial_access
Syntax validiert (0 Fehler)
rule CTI_Threat_Indicator {
    meta:
        author = "iShareStuff CTI Automated Detection Engine"
        date = "2026-09-25"
        description = "YARA Signature for "
    strings:
        $str = "Proxmox Virtual Machine optimi" ascii wide
    condition:
        any of them
}
Syntax validiert (0 Fehler)
index=security sourcetype IN ("cisco:asa", "pan:traffic", "zeek_conn", "suricata", "WinEventLog:Security")
("Proxmox Virtual Machine optimization - D")
| stats count earliest(_time) as first_seen latest(_time) as last_seen by src_ip, dest_ip, dest_host, signature
| eval first_seen=strftime(first_seen, "%Y-%m-%d %H:%M:%S"), last_seen=strftime(last_seen, "%Y-%m-%d %H:%M:%S")
| sort - count
Syntax validiert (0 Fehler)
message: "*Proxmox Virtual Machine optimization - D*"
Syntax validiert (0 Fehler)
CommonSecurityLog
| where Message has "Proxmox Virtual Machine optimization - D"
| summarize EventCount = count(), FirstSeen = min(TimeGenerated), LastSeen = max(TimeGenerated) by SourceIP, DestinationIP, DestinationPort, Activity
| extend DetectionRule = "iShareStuff-CTI-Compiled"
| sort by EventCount desc

2. Cyber Threat Intelligence & Forensik

CTI Threat Relationship Graph2 Knoten / 1 Relationen
CVE / Incident Software MITRE ATT&CK CWE Weakness IoC
🎯
MITRE ATT&CK Matrix Navigator 14 Taktiken
Reconnaissance
-
Resource Development
-
Initial Access
Execution
Persistence
-
Privilege Escalation
Defense Evasion
Credential Access
-
Discovery
-
Lateral Movement
-
Collection
-
Command and Control
Exfiltration
-
Impact
tsecurity.de Cognitive Threat RAG
Fokus-Vektor:

Kognitive Analyse für identifizierte Bedrohung: Erhöhte Bedrohungslage im Bereich Proxmox Virtual Machine optimization - D.... Basierend auf 368k Vektor-Korrelationen werden sofortige Isolationsmaßnahmen für betroffene Endpunkte empfohlen.

🛡️ Angriffsfläche & Exposure

Netzwerk/Remote-Zugriff ohne Vorauthentifizierung möglich.

⚡ Empfohlene Sofortmaßnahmen
  • 1. Perimeter-Inspektion: Relevante Portfreigaben und exponierte Endpunkte unverzüglich scannen.
  • 2. Patch-Applikation: Hersteller-Hotfix einspielen oder betroffene Daemons in isolierte DMZ-Segmente überführen.
  • 3. Telemetrie & EDR-Alerts: Prozessaufrufe und Child-Processes auf anomale Shell-Spawns überwachen.
🔗 Semantisch verwandte Zero-Days MariaDB 11.7 VEC
Ähnliche Beiträge
🔍 Verwandte News

Auch interessante Nachrichten Proxmox Virtual Machine optimization - Deep Dive

Thematisch verwandte Begriffe: Proxmox, Virtual, Machine, optimization · 6 Treffer

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Zum Aktualisieren ziehen
ZERO-DAY CVE-2026-97648 | A vulnerability was detected in ningzichun student-management-system up …
Advisory →
tsecurity.de Icon
Offline-Lesen, Eilmeldungen & 0ms Ladezeit

Installiere tsecurity.de direkt auf deinen Home-Bildschirm für das ultimative Vollbild-Magazinerlebnis ohne Browser-Leisten.

Nächster Beitrag