Running Flatcar Container Linux on KubeVirt | Flatcar Container Linux
Running Flatcar Container Linux on KubeVirt
While we always welcome community contributions and fixes, please note that KubeVirt is not an officially supported platform at this time because the release tests don’t run for it. (See the
platform overview
.)
These instructions will walk you through running Flatcar Container Linux on KubeVirt.
Choose a channel
Flatcar Container Linux is designed to be updated automatically with different schedules per channel. You can
disable this feature
, although we don’t recommend it. Read the
release notes
for specific features and bug fixes.
KubeVirt OEM images are created for both amd64 and arm64 and come in qcow2 compressed format.
How to download a KubeVirt qcow2 image file:
1
2
# KubeVirt image is available for download from the alpha version 3975.0.0wget https://alpha.release.flatcar-linux.net/amd64-usr/3975.0.0/flatcar_production_kubevirt_image.qcow2
Preparing the Kubernetes cluster
Firstly, KubeVirt needs to be installed on your Kubernetes cluster - see
kubevirt-docs
.
Secondly, CDI needs to be installed and virtctl needs to be present on your upload machine, to be able to create the PVC (Persistent Volume Claim) using the qcow2 image - see
KubeVirt CDI
.
Let’s create the PVC from the downloaded image using virtctl:
Then, we can apply the VM definition and we should be able to connect to it with username/password - core/foo.
The VM is set via Ignition to autologin the core user at boot.