Installing macOS on VirtualBox is a five-step process, you first need to have both macOS and VirtualBox, then create VM, make it suitable for macOS and then install the OS. If you want to carry on with the installation, check out the aforementioned guide. Hopefully, you will be able to install macOS easily.