- Windows 10 or Higher
- Virtualization capabilities
- 8GB of RAM or more
Step 1 (Installing WSL2)
Install WSL2. If you have WSL2 already, you can skip this step. Open Powershell as an administrator and run this command
It will prompt a reboot, reboot and let it install Ubuntu. One that is done, make a username and password. It does not have to be the same as the system.
If you do not see the window for Ubuntu
Step 2 (Getting the files)
Open a new Ubuntu terminal window, and run this command, replacing the WINDOWS_USER_NAME with the your Windows username, not the Linux one.
sudo apt install git-all -y
Now clone the repository
git clone https://github.com/notAperson535/OneClick-macOS-Simple-KVM.git
Now cd into the newly created folder
Step 3 (installing qemu and virtualization capabilities)
Run the included windows installer
Once you get to the menu (looks like this) Go to Virtualization and make sure your system processor type is selected, mine is Intel Then keep clicking exit, and save the configuration
Now run these commands to make sure virtualization works
If the first command returns
KVM acceleration can be used and the second command returns
Y, then you are good to go. If the first command returns
Y but the second command return something like
no, than go to the bottom of the page for troubleshooting.
Now cd into the OneClick-macOS-Simple-KVM directory, replacing the WINDOWS_USER_NAME with the your Windows username, not the Linux one.
./setup.sh to finish the setup and run the macOS VM!
(Note that the max OS you can run is Big Sur, because of some TSC restrictions. I am working on this issue and when it is resolved I will post a message in the Discord Server.)
This now fixed and you can run Monterey and up on Windows
Once setup.sh finsishes , press ctrl+c and run
sudo HEADLESS=1 ./basic.sh. Once this is done, download VNC Viewer, here, then type
localhost:5900 into the top to connect to the vm using vnc.
Whenever you want to load up the machine again, run
sudo HEADLESS=1 ./basic.sh, NOT
Don't close the terminal when the QEMU window is open, as it will shut down the VM and may cause data loss.
cat /sys/module/kvm_intel/parameters/nested returns
N, but KVM-OK Returns
KVM acceleration can be used
Edit these commands in .wslconfig, which is located in your Windows user directory, replacing the WINDOWS_USER_NAME with the your Windows username, not the Linux one.
kernelCommandLine=intel_iommu=on iommu=pt kvm.ignore_msrs=1 kvm-intel.nested=1 kvm-intel.ept=1 kvm-intel.emulate_invalid_guest_state=0 kvm-intel.enable_shadow_vmcs=1 kvm-intel.enable_apicv=1