Understanding OpenNebula KVM Storage and Virtual Network Architecture for VPS Environments

Overview

When designing multi-tenant Virtual Private Server (VPS) infrastructure—such as the cloud environments evaluated for VPSTTT hosting services—selecting the appropriate hypervisor drivers, storage backend, and network isolation models in OpenNebula is essential for stability and scalability.

Environment Details

  • OpenNebula Version: 6.8 (Community Edition)
  • Hypervisor: KVM / libvirt
  • Host OS: Ubuntu 22.04 LTS
  • Storage Driver: Ceph RBD / Shared LVM
  • Networking: Open vSwitch with VLAN isolation

KVM VM Template Example

To ensure optimal I/O and network throughput for virtual instances, the following OpenNebula VM template structure is utilized:

NAME = "vps-kvm-standard"
CPU = "2"
VCPU = "4"
MEMORY = "8192"
HYPERVISOR = "kvm"

DISK = [
  IMAGE_ID = "105",
  DEV_PREFIX = "vd",
  DRIVER = "raw",
  CACHE = "none"
]

NIC = [
  NETWORK_ID = "12",
  MODEL = "virtio"
]

GRAPHICS = [
  TYPE = "vnc",
  LISTEN = "0.0.0.0"
]

Sanitized Log Output

Deployment logs from /var/log/one/oned.log verifying instance instantiation on KVM nodes:

2025-02-15 10:14:02.12 [Z0][VMM][I]: Successfully deployed VM 402 on Host node-03.domain.local
2025-02-15 10:14:02.15 [Z0][VMM][I]: ExitCode: 0
2025-02-15 10:14:02.18 [Z0][LCM][I]: VM 402 state change: DEPLOY -> RUNNING

Discussion Question

What are the recommended best practices in OpenNebula for configuring storage I/O limits (IOPS/MBps throttling) at the VM template level versus hypervisor-level QOS in high-density KVM environments?

#OpenNebula #KVM #CloudInfrastructure #SysAdmin #Virtualization

For OpenNebula-managed VMs, we recommend configuring per-disk I/O limits through VM templates as the primary approach.

OpenNebula supports IOPS and bandwidth throttling using the following disk attributes:

  • TOTAL_IOPS_SEC, READ_IOPS_SEC, WRITE_IOPS_SEC

  • TOTAL_BYTES_SEC, READ_BYTES_SEC, WRITE_BYTES_SEC

  • *_MAX and *_MAX_LENGTH for burst configuration.

These settings are passed to QEMU/libvirt, which enforces the configured limits.

You can find the available parameters in the OpenNebula VM Template Reference.

Both approaches can be combined when using complementary QoS mechanisms.

However, we recommend avoiding direct modifications to the same per-disk throttling settings through libvirt, as these changes are not managed by OpenNebula.