User:Derf/MacOS

From ConsoleMods Wiki
< User:Derf
Revision as of 07:55, 26 January 2024 by Derf (talk | contribs)
Jump to navigation Jump to search

Derf's notes.

Installing MacOS on QEMU on Ubuntu on WSL on Windows

  1. Setup WSL2 and install an Ubuntu installation.
  2. Install a OpenSUSE installation and setup KVM acceleration (optional).
  3. Open Ubuntu and follow this guide.
  4. 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
  1. Install VcXsrv on Windows. Run from PowerShell with the commands:
cd "C:\Program Files\VcXsrv\"
vcxsrv.exe" :0 -multiwindow -clipboard -wgl -ac
  1. In WSL, run these commands and verify a calculator opens (successfully displaying a GUI app):
sudo apt install x11-apps
xcalc
  1. Follow this page's section on "Tap Networking (Better Performance)". You may need to install qemu-bridge-helper via apt.
  2. 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
  1. Use the disk utility to erase the largest drive then format it as the guide mentions.
  2. Choose the "Re-install" option. It may need an internet connection depending on the version you chose.