khadas / fenix

One-stop script set to build Ubuntu/Debian images
GNU General Public License v2.0
211 stars 135 forks source link

Cannot compile KVM compatible image #195

Closed BadLamb closed 2 years ago

BadLamb commented 2 years ago

I am trying to run KVM on the VIM4 SBC. i've tried both the stock ubuntu server image provided on oowow and building my own custom ubuntu server with virtualization and kvm support by enabling them in menuconfig and saving it, but running kvm-ok on the resulting images always says /dev/kvm is not present and modprobe won't let me load it. Is there any way to run KVM on these SBCs?

BadLamb commented 2 years ago

I fixed it by adding the following lines to /build/linux/arch/arm64/configs/defconfig

CONFIG_VIRTUALIZATION=y CONFIG_KVM=y CONFIG_KVM_MMIO=y CONFIG_KVM_ARM_HOST=y

Hope this can be of help to anyone else :)