User:Derf/MacOS: Difference between revisions

From ConsoleMods Wiki
Jump to navigation Jump to search
(Created page with "Derf's notes. == Installing MacOS on QEMU on Ubuntu on WSL on Windows == # Setup WSL2 and install an Ubuntu installation. # Install a OpenSUSE installation and setup [https://boxofcables.dev/kvm-optimized-custom-kernel-wsl2-2022/ KVM acceleration] (optional). # Open Ubuntu and follow [https://github.com/kholia/OSX-KVM 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...")
 
mNo edit summary
Line 17: Line 17:
  sudo apt install x11-apps
  sudo apt install x11-apps
  xcalc
  xcalc
# Add these to OpenCore-Boot.sh:
# Follow [https://github.com/kholia/OSX-KVM/blob/master/networking-qemu-kvm-howto.txt this page]'s section on "Tap Networking (Better Performance)". You may need to install qemu-bridge-helper via apt.
Follow [https://github.com/kholia/OSX-KVM/blob/master/networking-qemu-kvm-howto.txt 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:
  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
  -netdev tap,id=net0,ifname=tap0,script=no,downscript=no -device e1000-82545em,netdev=net0,id=net0,mac=52:54:00:c9:18:27

Revision as of 07:55, 26 January 2024

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.