hackintosh - xxooxxooxx/xxooxxooxx.github.io GitHub Wiki

~~wget https://raw.githubusercontent.com/kholia/OSX-KVM/master/fetch-macOS.py~~
https://github.com/foxlet/macOS-Simple-KVM
python fetch-macOS.py

apt-get install qemu-utils

qemu-img convert -f dmg BaseSystem.dmg -O raw BaseSystem.raw
qemu-img convert -f dmg BaseSystem.dmg -O vmdk BaseSystem.vmdk
qemu-img convert -f raw BaseSystem.raw -O vmdk BaseSystem2.vmdk


root@test:~# file BaseSystem.*
BaseSystem2.vmdk:VMware4 disk image
BaseSystem.dmg:  zlib compressed data
BaseSystem.raw:  DOS/MBR boot sector; partition 1 : ID=0xee, start-CHS (0x3ff,254,63), end-CHS (0x3ff,254,63), startsector 1, 4193799 sectors, extended partition table (last)
BaseSystem.vmdk: VMware4 disk image

dd if=BaseSystem.raw of=/dev/sdX
  • VMware Workstation macOS
    unlocker
    install VMware Tools
sudo spctl --master-disable
  • Terminal command to create boot USB
sudo /Applications/Install\ macOS\ Mojave.app/Contents/Resources/createinstallmedia  --volume /Volumes/Untitled
  • iso boot
hdiutil create -o /tmp/Mojave.cdr -size 6000m -layout SPUD -fs HFS+J //catalina 8000m
hdiutil attach /tmp/Mojave.cdr.dmg -noverify -mountpoint /Volumes/install_build
sudo /Applications/Install\ macOS\ Mojave.app/Contents/Resources/createinstallmedia  --volume /Volumes/install_build
hdiutil detach "/Volumes/Install\ macOS\ Mojave/"
hdiutil convert /tmp/Mojave.cdr.dmg -format UDTO -o /tmp/Mojave.iso
mv /tmp/Mojave.iso.cdr ~/Desktop/Mojave.iso
rm /tmp/Mojave.cdr.dmg