I thought I’d share this information…
I have a Raspberry Pi 4 with 4GB RAM. It is running Ubuntu 20.04 LTS. And both LXC/LXD containers and Virtual Machines are running perfectly!
I had no idea that the Raspberry Pi supports Hardware Virtualization. I just tried it, for the hell of it and I was quite pleasantly surprised to find it working!
Furthermore, the cpu performance of the virtual machine is almost the same as bare metal. Using sysbench cpu test:-
Bare Metal: 1488 events per second
Ubuntu VM: 1478 events per second
P.S. I tried Ubuntu and openSUSE so far. Arch Linux image doesn’t work. It says access denied when trying to boot the QEMU hard disk. If I disable secure boot, then it goes straight to grub>