OpsCanary
kubernetesstoragePractitioner

Benchmarking KubeVirt Performance: Unleashing virtbench

5 min read CNCF BlogJun 8, 2026Reviewed for accuracy
Share
PractitionerHands-on experience recommended

In the world of Kubernetes, understanding the performance of your virtual machines is essential. KubeVirt enables you to run VMs alongside containers, but without proper benchmarking, you risk poor performance and resource allocation. virtbench addresses this need by providing an open-source CLI framework that executes reproducible stress tests across KubeVirt-enabled clusters, allowing you to gain insights into your infrastructure's capabilities.

virtbench operates using a client-side orchestration model combined with an in-cluster helper pod. It begins by submitting VirtualMachine objects to the Kubernetes API server, which subsequently creates the necessary DataVolume and PVC resources via the CSI driver. The CLI then tracks the VMI status through a state machine, monitoring the transition from Pending to Running. To ensure the guest network stack is operational, an ssh-test-pod deployed inside the cluster continuously issues TCP probes to each VMI's assigned IP address. The measurement concludes only when a successful TCP handshake is achieved, confirming network accessibility.

When using virtbench, be aware that a future release will include in-VM fio tooling for I/O benchmarking from inside the guest OS, which will enhance your testing capabilities. This tool is vital for understanding how your VMs behave under load, particularly during burst capacity scenarios or live migrations. Keep an eye on updates to maximize your benchmarking efforts.

Key takeaways

  • Utilize virtbench for reproducible stress tests across KubeVirt clusters.
  • Measure Time-to-Ready to assess wall-clock time until guest OS network accessibility.
  • Track Live Migration Stun Time to understand network interruptions during VM migrations.
  • Monitor burst capacity during concurrent VM creation requests to identify control plane behavior.

Why it matters

Effective benchmarking with virtbench can lead to optimized resource usage and improved VM performance in production environments. Understanding these metrics helps prevent bottlenecks and enhances overall system reliability.

When NOT to use this

The official docs don't call out specific anti-patterns here. Use your judgment based on your scale and requirements.

Want the complete reference?

Read official docs

Test what you just learned

Quiz questions written from this article

Take the quiz →
Better StackSponsor

Unified observability — logs, uptime monitoring, and on-call in one place. Used by 50,000+ engineering teams to ship faster and sleep better.

Try Better Stack free →

Get the daily digest

One email. 5 articles. Every morning.

No spam. Unsubscribe anytime.