Guest Operating System Information
Guest operating system identity for the VirtualMachineInstance will be provided by the label kubevirt.io/os
:
The kubevirt.io/os
label is based on the short OS identifier from libosinfo database. The following Short IDs are currently supported:
Short ID
Name
Version
Family
ID
win2k12r2
Microsoft Windows Server 2012 R2
6.3
winnt
Use with presets
A VirtualMachineInstancePreset representing an operating system with a kubevirt.io/os
label could be applied on any given VirtualMachineInstance that have and match the kubevirt.io/os
label.
Default presets for the OS identifiers above are included in the current release.
Windows Server 2012R2 VirtualMachineInstancePreset
Example
VirtualMachineInstancePreset
ExampleOnce the VirtualMachineInstancePreset
is applied to the VirtualMachineInstance
, the resulting resource would look like this:
For more information see VirtualMachineInstancePresets
HyperV optimizations
KubeVirt supports quite a lot of so-called "HyperV enlightenments", which are optimizations for Windows Guests. Some of these optimization may require an up to date host kernel support to work properly, or to deliver the maximum performance gains.
KubeVirt can perform extra checks on the hosts before to run Hyper-V enabled VMs, to make sure the host has no known issues with Hyper-V support, properly expose all the required features and thus we can expect optimal performance. These checks are disabled by default for backward compatibility and because they depend on the node-feature-discovery and on extra configuration.
To enable strict host checking, the user may expand the featureGates
field in the KubeVirt CR by adding the HypervStrictCheck
to it.
Alternatively, users can edit an existing kubevirt CR:
kubectl edit kubevirt kubevirt -n kubevirt
Last updated