Is this largely for the exercise? Totally cool if you’re using it to get a better understanding of understanding of macOS’s Virtualization framework, but if your goal is that you were looking for a way to run VMs without Parallels, VMWare or VirtualBox, UTM [1] would be the direction I’d point you in.