Virtualization is working on Linux, but the macOS story is not that. We run macOS inside a custom VM hypervisor I wrote, on bar metal, passing through almost all the hardware.
macOS is unlikely to run inside a VM on Linux any time soon, because the desktop environment requires a paravirtualized Metal graphics device, which means writing an entire Metal implementation for Linux. You can run the XNU kernel in text mode though, even on non-M1 systems.