User:Derf/MacOS
Jump to navigation
Jump to search
Derf's notes for a cursed trifecta of operating systems.
Installing MacOS on QEMU on Ubuntu on WSL on Windows
- Setup WSL2 and install an Ubuntu installation.
- Install a OpenSUSE installation and setup KVM acceleration (optional).
- Open Ubuntu and follow this guide.
- Run these commands in the WSL terminal:
export DISPLAY_NUMBER="0.0" export DISPLAY=$(grep -m 1 nameserver /etc/resolv.conf | awk '{print $2}'):$DISPLAY_NUMBER export LIBGL_ALWAYS_INDIRECT=1 setsid emacs
- Install VcXsrv on Windows. Run from PowerShell with the commands:
cd "C:\Program Files\VcXsrv\" vcxsrv.exe" :0 -multiwindow -clipboard -wgl -ac
- In WSL, run these commands and verify a calculator opens (successfully displaying a GUI app):
sudo apt install x11-apps xcalc
- Follow this page's section on "Tap Networking (Better Performance)". You may need to install qemu-bridge-helper via apt.
- Open OpenCore-Boot.sh:
Comment out the active -netdev line and add: -netdev tap,id=net0,ifname=tap0,script=no,downscript=no -device e1000-82545em,netdev=net0,id=net0,mac=52:54:00:c9:18:27 Add to the args: -cpu host
- Use the disk utility to erase the largest drive then format it as the guide mentions.
- Choose the "Re-install" option. It may need an internet connection depending on the version you chose.