I believe what you are asking about is VMware Workstation. With VMware Workstation, the virtual machines are local on your Mac. With Workstation, you can install Linux or Windows.
Here is product documentation to get you started:
Windows VM | VMware Workstation Pro
or
VMware Workstation Player | VMware
There are other products that will accomplish the same tasks as well.
If your running mac os you need vmware fusion, workstation is a windows and linux product.
Run Windows on Mac | Virtual Machine for Mac | VMware Fusion