This is a guide on how to get started with KubeVirt on Talos
eth0
.
Now you can configure your bridge properly.
This can be done in the machine config of your node:
local-path-provisioner
local-path-provisioner
.
This CNI can be used to write scratch space when importing images with the CDI.
You can install the local-path-provisioner
by following this guide.
LiveMigration
shared storage is neccesary.
You can either choose to install a CSI that connects to NFS or you can install Longhorn, for example.
For more information on how to install Longhorn on Talos you can follow this link.
To install the NFS-CSI driver, you can follow This guide.
After the installation of the NFS-CSI driver is done, you can create a storage class for the NFS CSI driver to work:
nolock
option.
If not, the nfs-csi storageclass won’t work, because talos doesn’t have a rpc.statd
daemon running.
virtctl
virtctl
is needed for communication between the CLI and the KubeVirt api server.
You can install the virtctl
client directly by running:
kubectl
:
featureGates
LiveMigration
— For live migration of virtual machines to other nodesNetworkBindingPlugins
— This is needed for Multus to work.smbios
workloadUpdateStrategy
VirtualMachine
CR.
When applying either the DataVolume
CR or the VirtualMachine
CR with a dataVolumeTemplates
, the CDI kicks in and will do the following:
DataVolume
or the dataVolumeTemplates
scratchSpaceStorageClass
local-path-provisioner
.
This is needed for the CDI to write scratch space to local disk before importing the image
podResourceRequirements
Datavolume
.
You can monitor this process by running:
DataVolume
is created, you can start the virtual machine:
VirtualMachine
called VirtualMachineInstance
:
console
command it will open a terminal to the virtual machine.
With the vnc
command, it will open vncviewer
.
Note that a vncviewer
needs to installed for it to work.
Now you can create a Service
object to expose the virtual machine to the outside.
In this example we will use MetalLB as a LoadBalancer.
kubectl virt start fedora-vm
.
After that you can look up the ip address of the virtual machine with