Skip to content

Instantly share code, notes, and snippets.

@mukaschultze
Created September 28, 2022 16:13
Show Gist options
  • Save mukaschultze/9082f84bcd0309368c978ab9938dc092 to your computer and use it in GitHub Desktop.
Save mukaschultze/9082f84bcd0309368c978ab9938dc092 to your computer and use it in GitHub Desktop.
Easy macOS VM
export DEVICE_MODEL="iMacPro1,1"
export SERIAL="--GENERATED--"
export BOARD_SERIAL="--GENERATED--"
export UUID="--GENERATED--"
export MAC_ADDRESS="--GENERATED--"
export WIDTH="1920"
export HEIGHT="1080"
#!/usr/bin/env bash
docker run -it \
--device /dev/kvm \
--name "macOS" \
-d \
-e "DISPLAY=${DISPLAY:-:0.0}" \
-v /tmp/.X11-unix:/tmp/.X11-unix \
-v "${PWD}/output.env:/env" \
-v "${PWD}/mac_hdd_ng.img:/image" \
-p 50922:10022 \
-p 3001:3001 \
-e NOPICKER=true \
-e GENERATE_UNIQUE=false \
-e GENERATE_SPECIFIC=true \
-e IMAGE_FORMAT='qcow2,discard=unmap' \
-e DEVICE_MODEL="iMacPro1,1" \
-e EXTRA="-smp 16,sockets=1,cores=8 -monitor telnet::45454,server,nowait -nographic -serial null -spice disable-ticketing,port=3001" \
-e RAM=8 \
sickcodes/docker-osx:naked
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment