AlexanderWillner / runMacOSinVirtualBox

Run macOS 10.16 Big Sur (and other versions) in VirtualBox on macOS
MIT License
936 stars 125 forks source link

Test qemu based virtualization #68

Open AlexanderWillner opened 5 years ago

AlexanderWillner commented 5 years ago

Starting point:

qemu-system-x86_64 -enable-kvm -m 3072 -cpu Penryn,kvm=on,vendor=GenuineIntel,+invtsc,vmware-cpuid-freq=on,$MY_OPTIONS\
      -machine pc-q35-2.9 \
      -smp 4,cores=2 \
      -usb -device usb-kbd -device usb-tablet \
      -device isa-applesmc,osk="ourhardworkbythesewordsguardedpleasedontsteal(c)AppleComputerInc" \
      -drive if=pflash,format=raw,readonly,file=OVMF_CODE.fd \
      -drive if=pflash,format=raw,file=OVMF_VARS-1024x768.fd \
      -smbios type=2 \
      -device ich9-intel-hda -device hda-duplex \
      -device ide-drive,bus=ide.2,drive=Clover \
      -drive id=Clover,if=none,snapshot=on,format=qcow2,file=./'Clover.qcow2' \
      -device ide-drive,bus=ide.1,drive=MacHDD \
      -drive id=MacHDD,if=none,file=../stor/mac_hdd.qcow2,format=qcow2 \
      -device ide-drive,bus=ide.0,drive=MacDVD \
      -drive id=MacDVD,if=none,snapshot=on,media=cdrom,file=./iso/HighSierra-10.13.6.iso \
      -netdev tap,id=net0,ifname=tap0,script=no,downscript=no -device e1000-82545em,netdev=net0,id=net0,mac=52:54:00:c9:18:27 \
      -monitor stdio
afturner commented 5 years ago

I have an OVMF script to set the screen resolution on build time. Let me know when you get to this and I can share it

AlexanderWillner commented 5 years ago

Thanks for the offer.