How do I install Mojave / HighSierra on VirtualBox?

So I had tried installing Mojave and HighSierra on VMWare but turns out it didn't work for me. I couldn't find a reason why. I have heard that Mojave and HighSierra don't support Ryzen processors but recently I came across a video on YouTube and that person was using MacOS X on his Ryzen. The only difference was, he had installed the OS on his PC rather than creating a Virtual Machine. Please let me know if I can install OSX as a Virtual Machine on my current PC. Thanks in advance.

Here are my PC Specs -

CPU - Ryzen 7 1700

RAM - 16GB DDR4

GPU - GTX 1070 Mini (Zotac; 8GB GDDR5)

SSD - 128GB

HDD - 1Tb

submitted by /u/rohanpandav
[link] [comments]