KubeVirt: Difference between revisions

From David's Wiki
Line 169: Line 169:
</syntaxhighlight>
</syntaxhighlight>
}}
}}
==Networking==
===Bridge (Macvtap)===
This allows your VM to get an IP from the host network.
# Install [https://github.com/k8snetworkplumbingwg/multus-cni multus-cni]
# Enable macvtap [https://kubevirt.io/user-guide/operations/activating_feature_gates/#how-to-activate-a-feature-gate instructions]
# Follow the remaining instructions [https://kubevirt.io/user-guide/virtual_machines/interfaces_and_networks/ here]


==Resources==
==Resources==
* [https://kubevirt.io/2021/intel-vgpu-kubevirt.html#fedora-workstation-prep intel-vgpu-kubevirt]
* [https://kubevirt.io/2021/intel-vgpu-kubevirt.html#fedora-workstation-prep intel-vgpu-kubevirt]

Revision as of 01:10, 14 February 2022

KubeVirt lets you setup and manage virtual machines on your kubernetes cluster.

Getting Started

Background

KubeVirt creates two new types of resources on your cluster: VirtualMachine (vm) and VirtualMachineInstance (vmi). VirtualMachine defines how to create VMIs. VirtualMachineInstance represent a running virtual machine.

Similar to deployments-pods, you will typically not create VirtualMachineInstance manually. Instead you define VirtualMachine in your manifests and control them using virtctl. Then KubeVirt will automatically create VirtualMachineInstance.

Requirements

See requirements

  • You need a kubernetes cluster with kubectl set up.
  • You do not need to install qemu-kvm libvirt-daemon-system on the nodes.

Install KubeVirt

See installation

Install commands

Creating a VM

Loading ISOs into the cluster

Windows

  • Deploy the example manifest below.
  • During the install, you will need to load the `viostor` driver.
  • After install, load the remaining drivers using device manager.
  • Then you can remove the cdrom and windows-guest-tools disks.
Example manifest

vGPU

Intel vGPU

See intel-vgpu-kubevirt

Instructions

Networking

Bridge (Macvtap)

This allows your VM to get an IP from the host network.

  1. Install multus-cni
  2. Enable macvtap instructions
  3. Follow the remaining instructions here

Resources