The image is built using KVM hypervisor.
Execute the following command to install qemu-kvm and other packages if you are running Ubuntu 18.04 LTS.
$ sudo -i # apt install qemu-kvm libvirt-bin qemu-utils
If you’re on Ubuntu 20.04 LTS, then execute the following command to install qemu-kvm packages.
$ sudo -i # apt install qemu-kvm libvirt-daemon-system libvirt-clients virtinst cpu-checker libguestfs-tools libosinfo-bin
$ sudo usermod -a -G kvm <yourusername> $ sudo chown root:kvm /dev/kvm
Then exit and log back in to make the change take place.
The build prerequisites for using
building qemu images are managed by running:
cd image-builder/images/capi make deps-qemu
images/capi directory, run
make build-qemu-ubuntu-xxxx. The image is built and located in images/capi/output/BUILD_NAME+kube-KUBERNETES_VERSION. Please replace xxxx with
2004 depending on the version you want to build the image for.
For building a ubuntu-2004 based capi image, run the following commands -
$ git clone https://github.com/kubernetes-sigs/image-builder.git $ cd image-builder/images/capi/ $ make build-qemu-ubuntu-2004