To run a VM, you need an application that will do so. I recommend VirtualBox for OSX, which is free.
From Microsoft: https://www.modern.ie/en-us/virtualization-tools Install according to directions, making sure to download an image that works for the VM platform you have installed.
Go to the VM settings and make sure that the network is using the NAT adapter. This should allow you to share the same network as your host machine, which will allow you to view sites running on your host machine.
On a VM running on OSX, You can use the IP 10.0.2.2
to view a site running on your host mac. If the local (mac) site needs to be viewed in browser at a specific domain, you can alias that IP in the windows hosts file.