First, you should something decent, not DietPi. You’ve Armbian for a ready to go experience or official Debian.
Once you get into something Debian 12, you can run LXD/LXC as a containerization / virtualization solution and use the same Pi to run the official HA VM image and whatever else you would like.