Mac OS on Windows using docker

1 . Install WSL 2: https://docs.microsoft.com/en-us/windows/wsl/install

2. Modify wslconfig to enable nestedVirtualization

3. Check if KVM is enabled:

4. Install Docker Desktop: https://docs.docker.com/desktop/install/windows-install/

5. Docker settings:

6. Install x11-apps:

7. Deploy Docker container inside the selected wsl :

For other OS, replace big-sur by their names as in link: https://github.com/sickcodes/Docker-OSX

8. Once installation complete, change vnc password

change vnc password hello

9. Install VNCViewer and launch it: https://www.realvnc.com/en/connect/download/viewer/windows/

Erase 270GB+ partition and install mac os on it:

10. Quit qemu using "q".

11. Launch OSX next time using :

docker start -a -i `docker ps -q -l

Issues:

  1. If getting network error while installing OS: Follow: https://www.youtube.com/watch?v=FFAxgg3LoUY

Last updated

Was this helpful?