If you just want a Linux kernel and user space, to see that your stuff works OK there as well, I'd really recommend Multipass from Canonical. It likely only works with Ubuntu but it is nicely integrated with Macos and requires no setup.
And it can be installed through a brew cask.