Виртуальная машина

Виртуальная машина (ВМ) имитирует аппаратное обеспечение компьютера, позволяя запускать различные операционные системы и приложения в изолированной среде.

Детали развёртывания

Виртуальная машина управляется и размещается с помощью KubeVirt, что позволяет использовать преимущества виртуализации в рамках вашей экосистемы Kubernetes.

Доступ к виртуальной машине

Вы можете получить доступ к виртуальной машине с помощью инструмента virtctl:

Для доступа к последовательной консоли:

virtctl console <vm>

Для доступа к ВМ по VNC:

virtctl vnc <vm>

Для подключения к ВМ по SSH:

virtctl ssh <user>@<vm>

Parameters

Common parameters

NameDescriptionTypeValue
externalEnable external access from outside the cluster.boolfalse
externalMethodMethod to pass through traffic to the VM.stringPortList
externalPortsPorts to forward from outside the cluster.[]int[22]
externalAllowICMPWhether to accept ICMP traffic to the VM in PortList mode (preserves ping and PMTU discovery). No effect in WholeIP mode. Default true so ping behaves as users expect even when port filtering is in effect.booltrue
runStrategyRequested running state of the VirtualMachineInstancestringAlways
instanceTypeVirtual Machine instance type. Ignored when resources sizes the VM, which needs whole-number cpu and sockets plus memory; the whole type is dropped then, so any dedicated CPU placement, hugepages, NUMA or realtime settings it carries go with it. While this field is set, a resources block that sizes only part of the VM is rejected outright instead of ignored, so complete it or clear it.stringu1.medium
instanceProfileVirtual Machine preferences profile.stringubuntu
disksList of disks to attach.[]object[]
disks[i].nameDisk name.string""
disks[i].busDisk bus type (e.g. “sata”).string""
networksNetworks to attach the VM to.[]object[]
networks[i].nameNetwork attachment name.string""
subnetsDeprecated: use networks instead.[]object[]
subnets[i].nameNetwork attachment name.string""
gpusList of GPUs to attach (NVIDIA driver requires at least 4 GiB RAM).[]object[]
gpus[i].nameThe name of the GPU resource to attach.string""
cpuModelModel specifies the CPU model inside the VMI. List of available models https://github.com/libvirt/libvirt/tree/master/src/cpu_mapstring""
firmwareFirmware and boot configuration (UEFI/BIOS selection, Secure Boot, persistent EFI NVRAM).object{}
firmware.bootloaderBootloader to boot the VM with: “uefi” (OVMF) or “bios” (SeaBIOS). Empty inherits the instanceProfile default.string""
firmware.secureBootEnable UEFI Secure Boot. Only applies when bootloader is “uefi”.boolfalse
firmware.efiPersistentPersist EFI NVRAM (e.g. enrolled Secure Boot keys, such as an updated Microsoft UEFI CA) across reboots. Only applies when bootloader is “uefi”.boolfalse
resourcesResource configuration for the virtual machine. Set whole-number cpu and sockets together with memory to size the VM directly, which overrides instanceType. Alongside an instanceType, a block that sizes only part of the VM is rejected; a whole-number cpu or sockets on its own sizes nothing and is ignored.object{}
resources.cpuNumber of CPU cores allocated, as a positive whole number such as 2. Millicore or other unit-suffixed, fractional, zero, negative, above 4294967295 and quoted leading-zero values are rejected at render time, because the value becomes the VM’s unsigned integer domain.cpu.cores.quantity""
resources.memoryAmount of memory allocated, as a quantity of at least 1M such as 8Gi. Less than 1M is rejected at render time, because KubeVirt refuses a non-zero amount below 1M and a zero or negative amount sizes nothing.quantity""
resources.socketsNumber of CPU sockets (vCPU topology), as a positive whole number such as 1. Millicore or other unit-suffixed, fractional, zero, negative, above 4294967295 and quoted leading-zero values are rejected at render time, because the value becomes the VM’s unsigned integer domain.cpu.sockets.quantity""
sshKeysList of SSH public keys for authentication.[]string[]
cloudInitCloud-init user data.string""
netplanDhcpSupply cloud-init network-data that requests DHCP on every en* and eth* interface and keeps the DNS search domains DHCP offers. Needed for a netplan guest (Ubuntu, Debian) to address a secondary network such as a VPC subnet. Leave it off for a guest rendered by anything other than netplan, which would lose DHCP on every interface, and for a guest that configures an interface statically through netplan, which this configuration would shadow. Turning it on for a VM that has neither cloudInit nor sshKeys adds a cloud-init disk, and the guest’s next boot is then treated as a first boot.boolfalse
cloudInitSeedSeed string to generate SMBIOS UUID for the VM.string""

U Series

The U Series is quite neutral and provides resources for general purpose applications.

U is the abbreviation for “Universal”, hinting at the universal attitude towards workloads.

VMs of instance types will share physical CPU cores on a time-slice basis with other VMs.

U Series Characteristics

Specific characteristics of this series are:

  • Burstable CPU performance - The workload has a baseline compute performance but is permitted to burst beyond this baseline, if excess compute resources are available.
  • vCPU-To-Memory Ratio (1:4) - A vCPU-to-Memory ratio of 1:4, for less noise per node.

Серия O

Серия O основана на серии U, с единственным отличием, заключающимся в том, что память переподписана (overcommitted).

O — это сокращение от «Overcommitted».

Характеристики серии UO

Специфические характеристики этой серии:

  • Пакетная (burstable) производительность CPU — рабочая нагрузка имеет базовый уровень вычислительной производительности, но может выходить за пределы этого базового уровня, если доступны избыточные вычислительные ресурсы.
  • Переподписанная память — память переподписана для достижения более высокой плотности рабочих нагрузок.
  • Соотношение vCPU к памяти (1:4) — соотношение vCPU к памяти 1:4, для меньшего «шума» на узел.

Серия CX

Серия CX предоставляет эксклюзивные вычислительные ресурсы для вычислительно интенсивных приложений.

CX — это сокращение от «Compute Exclusive».

Эксклюзивные ресурсы предоставляются вычислительным потокам ВМ. Чтобы обеспечить это, будут запрошены некоторые дополнительные ядра (в зависимости от количества дисков и NIC), чтобы вынести потоки ввода-вывода с ядер, выделенных для рабочей нагрузки. Кроме того, в этой серии топология NUMA используемых ядер предоставляется ВМ.

Характеристики серии CX

Специфические характеристики этой серии:

  • Hugepages — Hugepages используются для улучшения производительности памяти.
  • Выделенный CPU — физические ядра эксклюзивно назначаются каждому vCPU, чтобы предоставить фиксированные и высокие гарантии вычислений для рабочей нагрузки.
  • Изолированные потоки эмулятора — потоки эмулятора гипервизора изолированы от vCPU, чтобы уменьшить влияние, связанное с эмуляцией, на рабочую нагрузку.
  • vNUMA — физическая топология NUMA отражается в гостевой системе, чтобы оптимизировать использование кэша на стороне гостя.
  • Соотношение vCPU к памяти (1:2) — соотношение vCPU к памяти 1:2.

Серия M

Серия M предоставляет ресурсы для приложений, интенсивно использующих память.

M — это сокращение от «Memory».

Характеристики серии M

Специфические характеристики этой серии:

  • Hugepages — Hugepages используются для улучшения производительности памяти.
  • Пакетная (burstable) производительность CPU — рабочая нагрузка имеет базовый уровень вычислительной производительности, но может выходить за пределы этого базового уровня, если доступны избыточные вычислительные ресурсы.
  • Соотношение vCPU к памяти (1:8) — соотношение vCPU к памяти 1:8, для гораздо меньшего «шума» на узел.

Серия RT

Серия RT предоставляет ресурсы для приложений реального времени, таких как Oslat.

RT — это сокращение от «realtime».

Эта серия типов инстансов требует узлов, способных запускать приложения реального времени.

Характеристики серии RT

Специфические характеристики этой серии:

  • Hugepages — Hugepages используются для улучшения производительности памяти.
  • Выделенный CPU — физические ядра эксклюзивно назначаются каждому vCPU, чтобы предоставить фиксированные и высокие гарантии вычислений для рабочей нагрузки.
  • Изолированные потоки эмулятора — потоки эмулятора гипервизора изолированы от vCPU, чтобы уменьшить влияние, связанное с эмуляцией, на рабочую нагрузку.
  • Соотношение vCPU к памяти (1:4) — соотношение vCPU к памяти 1:4, начиная с размера medium.

Разработка

Чтобы начать настройку или создание собственных instancetypes и preferences, см. DEVELOPMENT.md.

Ресурсы

Следующие ресурсы instancetype предоставляются Cozystack:

NamevCPUsMemory
cx1.2xlarge816Gi
cx1.2xlarge1gi816Gi
cx1.4xlarge1632Gi
cx1.4xlarge1gi1632Gi
cx1.8xlarge3264Gi
cx1.8xlarge1gi3264Gi
cx1.large24Gi
cx1.large1gi24Gi
cx1.medium12Gi
cx1.medium1gi12Gi
cx1.xlarge48Gi
cx1.xlarge1gi48Gi
d1.2xlarge832Gi
d1.2xmedium24Gi
d1.4xlarge1664Gi
d1.8xlarge32128Gi
d1.large28Gi
d1.medium14Gi
d1.micro11Gi
d1.nano1512Mi
d1.small12Gi
d1.xlarge416Gi
gn1.2xlarge832Gi
gn1.4xlarge1664Gi
gn1.8xlarge32128Gi
gn1.xlarge416Gi
m1.2xlarge864Gi
m1.2xlarge1gi864Gi
m1.4xlarge16128Gi
m1.4xlarge1gi16128Gi
m1.8xlarge32256Gi
m1.8xlarge1gi32256Gi
m1.large216Gi
m1.large1gi216Gi
m1.xlarge432Gi
m1.xlarge1gi432Gi
n1.2xlarge1632Gi
n1.4xlarge3264Gi
n1.8xlarge64128Gi
n1.large48Gi
n1.medium44Gi
n1.xlarge816Gi
o1.2xlarge832Gi
o1.4xlarge1664Gi
o1.8xlarge32128Gi
o1.large28Gi
o1.medium14Gi
o1.micro11Gi
o1.nano1512Mi
o1.small12Gi
o1.xlarge416Gi
rt1.2xlarge832Gi
rt1.4xlarge1664Gi
rt1.8xlarge32128Gi
rt1.large28Gi
rt1.medium14Gi
rt1.micro11Gi
rt1.small12Gi
rt1.xlarge416Gi
u1.2xlarge832Gi
u1.2xmedium24Gi
u1.4xlarge1664Gi
u1.8xlarge32128Gi
u1.large28Gi
u1.medium14Gi
u1.micro11Gi
u1.nano1512Mi
u1.small12Gi
u1.xlarge416Gi

Следующие ресурсы preference предоставляются Cozystack:

NameGuest OS
alpineAlpine
centos.stream10CentOS Stream 10
centos.stream10.desktopCentOS Stream 10
centos.stream9CentOS Stream 9
centos.stream9.desktopCentOS Stream 9
centos.stream9.dpdkCentOS Stream 9
cirrosCirros
debianDebian
fedoraFedora (amd64)
fedora.arm64Fedora (arm64)
fedora.s390xFedora (s390x)
legacyLegacy Guest
linuxLinux Guest
linux.efiLinux EFI Guest
linux.virtiotransitionalLinux Virtio Transitional Guest
opensuse.leapOpenSUSE Leap
opensuse.tumbleweedOpenSUSE Tumbleweed
oraclelinuxOracle Linux
rhel.10Red Hat Enterprise Linux 10 (amd64)
rhel.10.arm64Red Hat Enterprise Linux 10 (arm64)
rhel.10.s390xRed Hat Enterprise Linux 10 (s390x)
rhel.7Red Hat Enterprise Linux 7
rhel.7.desktopRed Hat Enterprise Linux 7
rhel.8Red Hat Enterprise Linux 8
rhel.8.desktopRed Hat Enterprise Linux 8
rhel.8.dpdkRed Hat Enterprise Linux 8
rhel.9Red Hat Enterprise Linux 9 (amd64)
rhel.9.arm64Red Hat Enterprise Linux 9 (arm64)
rhel.9.desktopRed Hat Enterprise Linux 9 Desktop (amd64)
rhel.9.dpdkRed Hat Enterprise Linux 9 DPDK (amd64)
rhel.9.realtimeRed Hat Enterprise Linux 9 Realtime (amd64)
rhel.9.s390xRed Hat Enterprise Linux 9 (s390x)
slesSUSE Linux Enterprise Server
ubuntuUbuntu
windows.10Microsoft Windows 10
windows.10.virtioMicrosoft Windows 10 (virtio)
windows.11Microsoft Windows 11
windows.11.virtioMicrosoft Windows 11 (virtio)
windows.2k12Microsoft Windows Server 2012/2012 R2
windows.2k12.virtioMicrosoft Windows Server 2012/2012 R2 (virtio)
windows.2k16Microsoft Windows Server 2016
windows.2k16.virtioMicrosoft Windows Server 2016 (virtio)
windows.2k19Microsoft Windows Server 2019
windows.2k19.virtioMicrosoft Windows Server 2019 (virtio)
windows.2k22Microsoft Windows Server 2022
windows.2k22.virtioMicrosoft Windows Server 2022 (virtio)
windows.2k25Microsoft Windows Server 2025
windows.2k25.virtioMicrosoft Windows Server 2025 (virtio)
windows.2k3Microsoft Windows Server 2003
windows.2k8Microsoft Windows Server 2008/2008 R2
windows.2k8.virtioMicrosoft Windows Server 2008/2008 R2 (virtio)
windows.7Microsoft Windows 7
windows.7.virtioMicrosoft Windows 7 (virtio)
windows.xpMicrosoft Windows XP
Last modified 2026-11-03: translate 1.7 (726310fa)