MacOS Virtual Machine

Can someone please point me in the right direction with getting a macOS virtual machine running?

I tried a couple months ago and just couldn’t figure it out. I believe there are certain boot setting that have to be applied.