User:Derf/MacOS: Difference between revisions
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 | ||
# | # 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
- 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.