I would like to deploy a VM from KVM template on Raspberry Pi 4 running Ubuntu server 20.04.
The VM will be configured with an emulated x86_64 CPU.
Is there a precompiled KVM kernel for it?
If not, how do I compile a KVM kernel for it?
This gist contains what you need to build a RPi 4 kernel with KVM for Ubuntu.
It turns out Ubuntu 20.04 ARM64 already supports KVM acceleration on Raspberry Pi 4. This is how I checked: https://linuxhint.com/install_kvm_ubuntu/#:~:text=You%20can%20check%20whether%20KVM,is%20not%20installed%20by%20default.