mirror of
https://github.com/sickcodes/Docker-OSX.git
synced 2025-07-11 19:02:17 +02:00
Compare commits
9 Commits
89861c30f5
...
b71068eb26
Author | SHA1 | Date | |
---|---|---|---|
|
b71068eb26 | ||
|
7c635c0d20 | ||
|
b653f292a5 | ||
|
c1b834fbb0 | ||
|
d13bae59e4 | ||
|
1c10fc4301 | ||
|
0c8e5f3923 | ||
|
3004d743b0 | ||
|
d380dd1345 |
36
Dockerfile
36
Dockerfile
@ -235,7 +235,7 @@ RUN grep -v InstallMedia ./Launch.sh > ./Launch-nopicker.sh \
|
|||||||
|
|
||||||
USER arch
|
USER arch
|
||||||
|
|
||||||
ENV USER arch
|
ENV USER=arch
|
||||||
|
|
||||||
# These are hardcoded serials for non-iMessage related research
|
# These are hardcoded serials for non-iMessage related research
|
||||||
# Overwritten by using GENERATE_UNIQUE=true
|
# Overwritten by using GENERATE_UNIQUE=true
|
||||||
@ -360,38 +360,8 @@ VOLUME ["/tmp/.X11-unix"]
|
|||||||
# the default serial numbers are already contained in ./OpenCore/OpenCore.qcow2
|
# the default serial numbers are already contained in ./OpenCore/OpenCore.qcow2
|
||||||
# And the default serial numbers
|
# And the default serial numbers
|
||||||
|
|
||||||
CMD sudo touch /dev/kvm /dev/snd "${IMAGE_PATH}" "${BOOTDISK}" "${ENV}" 2>/dev/null || true \
|
COPY entrypoint.sh ./entrypoint.sh
|
||||||
; sudo chown -R $(id -u):$(id -g) /dev/kvm /dev/snd "${IMAGE_PATH}" "${BOOTDISK}" "${ENV}" 2>/dev/null || true \
|
CMD ["bash", "-c", "entrypoint.sh"]
|
||||||
; [[ "${NOPICKER}" == true ]] && { \
|
|
||||||
sed -i '/^.*InstallMedia.*/d' Launch.sh \
|
|
||||||
&& export BOOTDISK="${BOOTDISK:=/home/arch/OSX-KVM/OpenCore/OpenCore-nopicker.qcow2}" \
|
|
||||||
; } \
|
|
||||||
|| export BOOTDISK="${BOOTDISK:=/home/arch/OSX-KVM/OpenCore/OpenCore.qcow2}" \
|
|
||||||
; [[ "${GENERATE_UNIQUE}" == true ]] && { \
|
|
||||||
./Docker-OSX/osx-serial-generator/generate-unique-machine-values.sh \
|
|
||||||
--master-plist-url="${MASTER_PLIST_URL}" \
|
|
||||||
--count 1 \
|
|
||||||
--tsv ./serial.tsv \
|
|
||||||
--bootdisks \
|
|
||||||
--width "${WIDTH:-1920}" \
|
|
||||||
--height "${HEIGHT:-1080}" \
|
|
||||||
--output-bootdisk "${BOOTDISK:=/home/arch/OSX-KVM/OpenCore/OpenCore.qcow2}" \
|
|
||||||
--output-env "${ENV:=/env}" \
|
|
||||||
|| exit 1 ; } \
|
|
||||||
; [[ "${GENERATE_SPECIFIC}" == true ]] && { \
|
|
||||||
source "${ENV:=/env}" 2>/dev/null \
|
|
||||||
; ./Docker-OSX/osx-serial-generator/generate-specific-bootdisk.sh \
|
|
||||||
--master-plist-url="${MASTER_PLIST_URL}" \
|
|
||||||
--model "${DEVICE_MODEL}" \
|
|
||||||
--serial "${SERIAL}" \
|
|
||||||
--board-serial "${BOARD_SERIAL}" \
|
|
||||||
--uuid "${UUID}" \
|
|
||||||
--mac-address "${MAC_ADDRESS}" \
|
|
||||||
--width "${WIDTH:-1920}" \
|
|
||||||
--height "${HEIGHT:-1080}" \
|
|
||||||
--output-bootdisk "${BOOTDISK:=/home/arch/OSX-KVM/OpenCore/OpenCore.qcow2}" \
|
|
||||||
|| exit 1 ; } \
|
|
||||||
; ./enable-ssh.sh && /bin/bash -c ./Launch.sh
|
|
||||||
|
|
||||||
# virt-manager mode: eta son
|
# virt-manager mode: eta son
|
||||||
# CMD virsh define <(envsubst < Docker-OSX.xml) && virt-manager || virt-manager
|
# CMD virsh define <(envsubst < Docker-OSX.xml) && virt-manager || virt-manager
|
||||||
|
@ -206,69 +206,8 @@ ENV TERMS_OF_USE=i_agree
|
|||||||
|
|
||||||
ENV BOILERPLATE="By using this Dockerfile, you hereby agree that you are a security reseacher or developer and agree to use this Dockerfile to make the world a safer place. Examples include: making your apps safer, finding your mobile phone, compiling security products, etc. You understand that Docker-OSX is an Open Source project, which is released to the public under the GNU Pulic License version 3 and above. You acknowledge that the Open Source project is absolutely unaffiliated with any third party, in any form whatsoever. Any trademarks or intelectual property which happen to be mentioned anywhere in or around the project are owned by their respective owners. By using this Dockerfile, you agree to agree to the EULA of each piece of upstream or downstream software. The following code is released for the sole purpose of security research, under the GNU Public License version 3. If you are concerned about the licensing, please note that this project is not AGPL. A copy of the license is available online: https://github.com/sickcodes/Docker-OSX/blob/master/LICENSE. In order to use the following Dockerfile you must read and understand the terms. Once you have read the terms, use the -e TERMS_OF_USE=i_agree or -e TERMS_OF_USE=i_disagree"
|
ENV BOILERPLATE="By using this Dockerfile, you hereby agree that you are a security reseacher or developer and agree to use this Dockerfile to make the world a safer place. Examples include: making your apps safer, finding your mobile phone, compiling security products, etc. You understand that Docker-OSX is an Open Source project, which is released to the public under the GNU Pulic License version 3 and above. You acknowledge that the Open Source project is absolutely unaffiliated with any third party, in any form whatsoever. Any trademarks or intelectual property which happen to be mentioned anywhere in or around the project are owned by their respective owners. By using this Dockerfile, you agree to agree to the EULA of each piece of upstream or downstream software. The following code is released for the sole purpose of security research, under the GNU Public License version 3. If you are concerned about the licensing, please note that this project is not AGPL. A copy of the license is available online: https://github.com/sickcodes/Docker-OSX/blob/master/LICENSE. In order to use the following Dockerfile you must read and understand the terms. Once you have read the terms, use the -e TERMS_OF_USE=i_agree or -e TERMS_OF_USE=i_disagree"
|
||||||
|
|
||||||
CMD echo "${BOILERPLATE}" \
|
COPY entrypoint.auto.sh ./entrypoint.sh
|
||||||
; [[ "${TERMS_OF_USE}" = i_agree ]] || exit 1 \
|
CMD ["bash", "-c", "entrypoint.sh"]
|
||||||
; echo "Disk is being copied between layers... Please wait a minute..." \
|
|
||||||
; sudo touch /dev/kvm /dev/snd "${IMAGE_PATH}" "${BOOTDISK}" "${ENV}" 2>/dev/null || true \
|
|
||||||
; sudo chown -R $(id -u):$(id -g) /dev/kvm /dev/snd "${IMAGE_PATH}" "${BOOTDISK}" "${ENV}" 2>/dev/null || true \
|
|
||||||
; [[ "${NOPICKER}" == true ]] && { \
|
|
||||||
sed -i '/^.*InstallMedia.*/d' Launch.sh \
|
|
||||||
&& export BOOTDISK="${BOOTDISK:=/home/arch/OSX-KVM/OpenCore/OpenCore-nopicker.qcow2}" \
|
|
||||||
; } \
|
|
||||||
|| export BOOTDISK="${BOOTDISK:=/home/arch/OSX-KVM/OpenCore/OpenCore.qcow2}" \
|
|
||||||
; [[ "${GENERATE_UNIQUE}" == true ]] && { \
|
|
||||||
./Docker-OSX/osx-serial-generator/generate-unique-machine-values.sh \
|
|
||||||
--master-plist-url="${MASTER_PLIST_URL}" \
|
|
||||||
--count 1 \
|
|
||||||
--tsv ./serial.tsv \
|
|
||||||
--bootdisks \
|
|
||||||
--width "${WIDTH:-1920}" \
|
|
||||||
--height "${HEIGHT:-1080}" \
|
|
||||||
--output-bootdisk "${BOOTDISK:=/home/arch/OSX-KVM/OpenCore/OpenCore.qcow2}" \
|
|
||||||
--output-env "${ENV:=/env}" \
|
|
||||||
|| exit 1 ; } \
|
|
||||||
; [[ "${GENERATE_SPECIFIC}" == true ]] && { \
|
|
||||||
source "${ENV:=/env}" 2>/dev/null \
|
|
||||||
; ./Docker-OSX/osx-serial-generator/generate-specific-bootdisk.sh \
|
|
||||||
--master-plist-url="${MASTER_PLIST_URL}" \
|
|
||||||
--model "${DEVICE_MODEL}" \
|
|
||||||
--serial "${SERIAL}" \
|
|
||||||
--board-serial "${BOARD_SERIAL}" \
|
|
||||||
--uuid "${UUID}" \
|
|
||||||
--mac-address "${MAC_ADDRESS}" \
|
|
||||||
--width "${WIDTH:-1920}" \
|
|
||||||
--height "${HEIGHT:-1080}" \
|
|
||||||
--output-bootdisk "${BOOTDISK:=/home/arch/OSX-KVM/OpenCore/OpenCore.qcow2}" \
|
|
||||||
|| exit 1 ; } \
|
|
||||||
; { [[ "${DISPLAY}" = ':99' ]] || [[ "${HEADLESS}" == true ]] ; } && { \
|
|
||||||
nohup Xvfb :99 -screen 0 1920x1080x16 \
|
|
||||||
& until [[ "$(xrandr --query 2>/dev/null)" ]]; do sleep 1 ; done \
|
|
||||||
; } \
|
|
||||||
; stat "${IMAGE_PATH}" \
|
|
||||||
; echo "Large image is being copied between layers, please wait a minute..." \
|
|
||||||
; ./enable-ssh.sh \
|
|
||||||
; [[ -e ~/.ssh/id_docker_osx ]] || { \
|
|
||||||
/usr/bin/ssh-keygen -t rsa -f ~/.ssh/id_docker_osx -q -N "" \
|
|
||||||
&& chmod 600 ~/.ssh/id_docker_osx \
|
|
||||||
; } \
|
|
||||||
; /bin/bash -c ./Launch.sh \
|
|
||||||
& echo "Booting Docker-OSX in the background. Please wait..." \
|
|
||||||
; until [[ "$(sshpass -p${PASSWORD:=alpine} ssh-copy-id -f -i ~/.ssh/id_docker_osx.pub -p 10022 ${USERNAME:=user}@127.0.0.1)" ]]; do \
|
|
||||||
echo "Disk is being copied between layers. Repeating until able to copy SSH key into OSX..." \
|
|
||||||
; sleep 1 \
|
|
||||||
; done \
|
|
||||||
; grep id_docker_osx ~/.ssh/config || { \
|
|
||||||
tee -a ~/.ssh/config <<< 'Host 127.0.0.1' \
|
|
||||||
; tee -a ~/.ssh/config <<< " User ${USERNAME:=user}" \
|
|
||||||
; tee -a ~/.ssh/config <<< ' Port 10022' \
|
|
||||||
; tee -a ~/.ssh/config <<< ' IdentityFile ~/.ssh/id_docker_osx' \
|
|
||||||
; tee -a ~/.ssh/config <<< ' StrictHostKeyChecking no' \
|
|
||||||
; tee -a ~/.ssh/config <<< ' UserKnownHostsFile=/dev/null' \
|
|
||||||
; } \
|
|
||||||
&& echo 'Default username: user' \
|
|
||||||
&& echo 'Default password: alpine' \
|
|
||||||
&& echo 'Change it immediately using the command: passwd' \
|
|
||||||
&& ssh -i ~/.ssh/id_docker_osx ${USERNAME:=user}@127.0.0.1 -p 10022 "${OSX_COMMANDS}"
|
|
||||||
|
|
||||||
# username: user
|
# username: user
|
||||||
# password: alpine
|
# password: alpine
|
||||||
|
@ -217,38 +217,8 @@ VOLUME ["/tmp/.X11-unix"]
|
|||||||
# the default serial numbers are already contained in ./OpenCore/OpenCore.qcow2
|
# the default serial numbers are already contained in ./OpenCore/OpenCore.qcow2
|
||||||
# And the default serial numbers
|
# And the default serial numbers
|
||||||
|
|
||||||
CMD sudo touch /dev/kvm /dev/snd "${IMAGE_PATH}" "${BOOTDISK}" "${ENV}" 2>/dev/null || true \
|
COPY entrypoint.monterey.sh ./entrypoint.sh
|
||||||
; sudo chown -R $(id -u):$(id -g) /dev/kvm /dev/snd "${IMAGE_PATH}" "${BOOTDISK}" "${ENV}" 2>/dev/null || true \
|
CMD ["bash", "-c", "entrypoint.sh"]
|
||||||
; [[ "${NOPICKER}" == true ]] && { \
|
|
||||||
sed -i '/^.*InstallMedia.*/d' Launch.sh \
|
|
||||||
&& export BOOTDISK="${BOOTDISK:=/home/arch/OSX-KVM/OpenCore/OpenCore-nopicker.qcow2}" \
|
|
||||||
; } \
|
|
||||||
|| export BOOTDISK="${BOOTDISK:=/home/arch/OSX-KVM/OpenCore/OpenCore.qcow2}" \
|
|
||||||
; [[ "${GENERATE_UNIQUE}" == true ]] && { \
|
|
||||||
./Docker-OSX/osx-serial-generator/generate-unique-machine-values.sh \
|
|
||||||
--master-plist-url="${MASTER_PLIST_URL}" \
|
|
||||||
--count 1 \
|
|
||||||
--tsv ./serial.tsv \
|
|
||||||
--bootdisks \
|
|
||||||
--width "${WIDTH:-1920}" \
|
|
||||||
--height "${HEIGHT:-1080}" \
|
|
||||||
--output-bootdisk "${BOOTDISK:=/home/arch/OSX-KVM/OpenCore/OpenCore.qcow2}" \
|
|
||||||
--output-env "${ENV:=/env}" \
|
|
||||||
|| exit 1 ; } \
|
|
||||||
; [[ "${GENERATE_SPECIFIC}" == true ]] && { \
|
|
||||||
source "${ENV:=/env}" 2>/dev/null \
|
|
||||||
; ./Docker-OSX/osx-serial-generator/generate-specific-bootdisk.sh \
|
|
||||||
--master-plist-url="${MASTER_PLIST_URL}" \
|
|
||||||
--model "${DEVICE_MODEL}" \
|
|
||||||
--serial "${SERIAL}" \
|
|
||||||
--board-serial "${BOARD_SERIAL}" \
|
|
||||||
--uuid "${UUID}" \
|
|
||||||
--mac-address "${MAC_ADDRESS}" \
|
|
||||||
--width "${WIDTH:-1920}" \
|
|
||||||
--height "${HEIGHT:-1080}" \
|
|
||||||
--output-bootdisk "${BOOTDISK:=/home/arch/OSX-KVM/OpenCore/OpenCore.qcow2}" \
|
|
||||||
|| exit 1 ; } \
|
|
||||||
; ./enable-ssh.sh && /bin/bash -c ./Launch.sh
|
|
||||||
|
|
||||||
# virt-manager mode: eta son
|
# virt-manager mode: eta son
|
||||||
# CMD virsh define <(envsubst < Docker-OSX.xml) && virt-manager || virt-manager
|
# CMD virsh define <(envsubst < Docker-OSX.xml) && virt-manager || virt-manager
|
||||||
|
@ -166,39 +166,5 @@ ENV HEIGHT=1080
|
|||||||
ENV LIBGUESTFS_DEBUG=1
|
ENV LIBGUESTFS_DEBUG=1
|
||||||
ENV LIBGUESTFS_TRACE=1
|
ENV LIBGUESTFS_TRACE=1
|
||||||
|
|
||||||
CMD sudo touch /dev/kvm /dev/snd "${IMAGE_PATH}" "${BOOTDISK}" "${ENV}" 2>/dev/null || true \
|
COPY entrypoint.naked.sh ./entrypoint.sh
|
||||||
; sudo chown -R $(id -u):$(id -g) /dev/kvm /dev/snd "${IMAGE_PATH}" "${BOOTDISK}" "${ENV}" 2>/dev/null || true \
|
CMD ["bash", "-c", "entrypoint.sh"]
|
||||||
; { [[ "${DISPLAY}" = ':99' ]] || [[ "${HEADLESS}" == true ]] ; } && { \
|
|
||||||
nohup Xvfb :99 -screen 0 1920x1080x16 \
|
|
||||||
& until [[ "$(xrandr --query 2>/dev/null)" ]]; do sleep 1 ; done \
|
|
||||||
; } \
|
|
||||||
; [[ "${NOPICKER}" == true ]] && { \
|
|
||||||
sed -i '/^.*InstallMedia.*/d' Launch.sh \
|
|
||||||
&& export BOOTDISK="${BOOTDISK:=/home/arch/OSX-KVM/OpenCore/OpenCore-nopicker.qcow2}" \
|
|
||||||
; } \
|
|
||||||
|| export BOOTDISK="${BOOTDISK:=/home/arch/OSX-KVM/OpenCore/OpenCore.qcow2}" \
|
|
||||||
; [[ "${GENERATE_UNIQUE}" == true ]] && { \
|
|
||||||
./Docker-OSX/osx-serial-generator/generate-unique-machine-values.sh \
|
|
||||||
--master-plist-url="${MASTER_PLIST_URL}" \
|
|
||||||
--count 1 \
|
|
||||||
--tsv ./serial.tsv \
|
|
||||||
--bootdisks \
|
|
||||||
--width "${WIDTH:-1920}" \
|
|
||||||
--height "${HEIGHT:-1080}" \
|
|
||||||
--output-bootdisk "${BOOTDISK:=/home/arch/OSX-KVM/OpenCore/OpenCore.qcow2}" \
|
|
||||||
--output-env "${ENV:=/env}" \
|
|
||||||
|| exit 1 ; } \
|
|
||||||
; [[ "${GENERATE_SPECIFIC}" == true ]] && { \
|
|
||||||
source "${ENV:=/env}" 2>/dev/null \
|
|
||||||
; ./Docker-OSX/osx-serial-generator/generate-specific-bootdisk.sh \
|
|
||||||
--master-plist-url="${MASTER_PLIST_URL}" \
|
|
||||||
--model "${DEVICE_MODEL}" \
|
|
||||||
--serial "${SERIAL}" \
|
|
||||||
--board-serial "${BOARD_SERIAL}" \
|
|
||||||
--uuid "${UUID}" \
|
|
||||||
--mac-address "${MAC_ADDRESS}" \
|
|
||||||
--width "${WIDTH:-1920}" \
|
|
||||||
--height "${HEIGHT:-1080}" \
|
|
||||||
--output-bootdisk "${BOOTDISK:=/home/arch/OSX-KVM/OpenCore/OpenCore.qcow2}" \
|
|
||||||
|| exit 1 ; } \
|
|
||||||
; ./enable-ssh.sh && /bin/bash -c ./Launch.sh
|
|
||||||
|
@ -183,63 +183,5 @@ ENV TERMS_OF_USE=i_agree
|
|||||||
|
|
||||||
ENV BOILERPLATE="By using this Dockerfile, you hereby agree that you are a security reseacher or developer and agree to use this Dockerfile to make the world a safer place. Examples include: making your apps safer, finding your mobile phone, compiling security products, etc. You understand that Docker-OSX is an Open Source project, which is released to the public under the GNU Pulic License version 3 and above. You acknowledge that the Open Source project is absolutely unaffiliated with any third party, in any form whatsoever. Any trademarks or intelectual property which happen to be mentioned anywhere in or around the project are owned by their respective owners. By using this Dockerfile, you agree to agree to the EULA of each piece of upstream or downstream software. The following code is released for the sole purpose of security research, under the GNU Public License version 3. If you are concerned about the licensing, please note that this project is not AGPL. A copy of the license is available online: https://github.com/sickcodes/Docker-OSX/blob/master/LICENSE. In order to use the following Dockerfile you must read and understand the terms. Once you have read the terms, use the -e TERMS_OF_USE=i_agree or -e TERMS_OF_USE=i_disagree"
|
ENV BOILERPLATE="By using this Dockerfile, you hereby agree that you are a security reseacher or developer and agree to use this Dockerfile to make the world a safer place. Examples include: making your apps safer, finding your mobile phone, compiling security products, etc. You understand that Docker-OSX is an Open Source project, which is released to the public under the GNU Pulic License version 3 and above. You acknowledge that the Open Source project is absolutely unaffiliated with any third party, in any form whatsoever. Any trademarks or intelectual property which happen to be mentioned anywhere in or around the project are owned by their respective owners. By using this Dockerfile, you agree to agree to the EULA of each piece of upstream or downstream software. The following code is released for the sole purpose of security research, under the GNU Public License version 3. If you are concerned about the licensing, please note that this project is not AGPL. A copy of the license is available online: https://github.com/sickcodes/Docker-OSX/blob/master/LICENSE. In order to use the following Dockerfile you must read and understand the terms. Once you have read the terms, use the -e TERMS_OF_USE=i_agree or -e TERMS_OF_USE=i_disagree"
|
||||||
|
|
||||||
CMD echo "${BOILERPLATE}" \
|
COPY entrypoint.naked-auto.sh ./entrypoint.sh
|
||||||
; [[ "${TERMS_OF_USE}" = i_agree ]] || exit 1 \
|
CMD ["bash", "-c", "entrypoint.sh"]
|
||||||
; echo "Disk is being copied between layers... Please wait a minute..." \
|
|
||||||
; sudo touch /dev/kvm /dev/snd "${IMAGE_PATH}" "${BOOTDISK}" "${ENV}" 2>/dev/null || true \
|
|
||||||
; sudo chown -R $(id -u):$(id -g) /dev/kvm /dev/snd "${IMAGE_PATH}" "${BOOTDISK}" "${ENV}" 2>/dev/null || true \
|
|
||||||
; [[ "${NOPICKER}" == true ]] && { \
|
|
||||||
sed -i '/^.*InstallMedia.*/d' Launch.sh \
|
|
||||||
&& export BOOTDISK="${BOOTDISK:=/home/arch/OSX-KVM/OpenCore/OpenCore-nopicker.qcow2}" \
|
|
||||||
; } \
|
|
||||||
|| export BOOTDISK="${BOOTDISK:=/home/arch/OSX-KVM/OpenCore/OpenCore.qcow2}" \
|
|
||||||
; [[ "${GENERATE_UNIQUE}" == true ]] && { \
|
|
||||||
./Docker-OSX/osx-serial-generator/generate-unique-machine-values.sh \
|
|
||||||
--master-plist-url="${MASTER_PLIST_URL}" \
|
|
||||||
--count 1 \
|
|
||||||
--tsv ./serial.tsv \
|
|
||||||
--bootdisks \
|
|
||||||
--width "${WIDTH:-1920}" \
|
|
||||||
--height "${HEIGHT:-1080}" \
|
|
||||||
--output-bootdisk "${BOOTDISK:=/home/arch/OSX-KVM/OpenCore/OpenCore.qcow2}" \
|
|
||||||
--output-env "${ENV:=/env}" \
|
|
||||||
|| exit 1 ; } \
|
|
||||||
; [[ "${GENERATE_SPECIFIC}" == true ]] && { \
|
|
||||||
source "${ENV:=/env}" 2>/dev/null \
|
|
||||||
; ./Docker-OSX/osx-serial-generator/generate-specific-bootdisk.sh \
|
|
||||||
--master-plist-url="${MASTER_PLIST_URL}" \
|
|
||||||
--model "${DEVICE_MODEL}" \
|
|
||||||
--serial "${SERIAL}" \
|
|
||||||
--board-serial "${BOARD_SERIAL}" \
|
|
||||||
--uuid "${UUID}" \
|
|
||||||
--mac-address "${MAC_ADDRESS}" \
|
|
||||||
--width "${WIDTH:-1920}" \
|
|
||||||
--height "${HEIGHT:-1080}" \
|
|
||||||
--output-bootdisk "${BOOTDISK:=/home/arch/OSX-KVM/OpenCore/OpenCore.qcow2}" \
|
|
||||||
|| exit 1 ; } \
|
|
||||||
; { [[ "${DISPLAY}" = ':99' ]] || [[ "${HEADLESS}" == true ]] ; } && { \
|
|
||||||
nohup Xvfb :99 -screen 0 1920x1080x16 \
|
|
||||||
& until [[ "$(xrandr --query 2>/dev/null)" ]]; do sleep 1 ; done \
|
|
||||||
; } \
|
|
||||||
; stat "${IMAGE_PATH}" \
|
|
||||||
; echo "Large image is being copied between layers, please wait a minute..." \
|
|
||||||
; ./enable-ssh.sh \
|
|
||||||
; [[ -e ~/.ssh/id_docker_osx ]] || { \
|
|
||||||
/usr/bin/ssh-keygen -t rsa -f ~/.ssh/id_docker_osx -q -N "" \
|
|
||||||
&& chmod 600 ~/.ssh/id_docker_osx \
|
|
||||||
; } \
|
|
||||||
; /bin/bash -c ./Launch.sh \
|
|
||||||
& echo "Booting Docker-OSX in the background. Please wait..." \
|
|
||||||
; until [[ "$(sshpass -p${PASSWORD:=alpine} ssh-copy-id -f -i ~/.ssh/id_docker_osx.pub -p 10022 ${USERNAME:=user}@127.0.0.1)" ]]; do \
|
|
||||||
echo "Disk is being copied between layers. Repeating until able to copy SSH key into OSX..." \
|
|
||||||
; sleep 1 \
|
|
||||||
; done \
|
|
||||||
; grep id_docker_osx ~/.ssh/config || { \
|
|
||||||
tee -a ~/.ssh/config <<< 'Host 127.0.0.1' \
|
|
||||||
; tee -a ~/.ssh/config <<< " User ${USERNAME:=user}" \
|
|
||||||
; tee -a ~/.ssh/config <<< ' Port 10022' \
|
|
||||||
; tee -a ~/.ssh/config <<< ' IdentityFile ~/.ssh/id_docker_osx' \
|
|
||||||
; tee -a ~/.ssh/config <<< ' StrictHostKeyChecking no' \
|
|
||||||
; tee -a ~/.ssh/config <<< ' UserKnownHostsFile=/dev/null' \
|
|
||||||
; } \
|
|
||||||
&& ssh -i ~/.ssh/id_docker_osx ${USERNAME:=user}@127.0.0.1 -p 10022 "${OSX_COMMANDS}"
|
|
||||||
|
30
README.md
30
README.md
@ -54,7 +54,9 @@ First time here? try [initial setup](#initial-setup), otherwise try the instruct
|
|||||||
## Any questions, ideas, or just want to hang out?
|
## Any questions, ideas, or just want to hang out?
|
||||||
# [https://discord.gg/sickchat](https://discord.gg/sickchat)
|
# [https://discord.gg/sickchat](https://discord.gg/sickchat)
|
||||||
|
|
||||||
### Catalina [](https://hub.docker.com/r/sickcodes/docker-osx/tags?page=1&ordering=last_updated)
|
Release names and their version:
|
||||||
|
|
||||||
|
### Catalina (10.15) [](https://hub.docker.com/r/sickcodes/docker-osx/tags?page=1&ordering=last_updated)
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
docker run -it \
|
docker run -it \
|
||||||
@ -66,7 +68,7 @@ docker run -it \
|
|||||||
|
|
||||||
# docker build -t docker-osx .
|
# docker build -t docker-osx .
|
||||||
```
|
```
|
||||||
### Big Sur [](https://hub.docker.com/r/sickcodes/docker-osx/tags?page=1&ordering=last_updated)
|
### Big Sur (11) [](https://hub.docker.com/r/sickcodes/docker-osx/tags?page=1&ordering=last_updated)
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
docker run -it \
|
docker run -it \
|
||||||
@ -79,7 +81,7 @@ docker run -it \
|
|||||||
# docker build -t docker-osx --build-arg SHORTNAME=big-sur .
|
# docker build -t docker-osx --build-arg SHORTNAME=big-sur .
|
||||||
```
|
```
|
||||||
|
|
||||||
### Monterey [](https://hub.docker.com/r/sickcodes/docker-osx/tags?page=1&ordering=last_updated)
|
### Monterey (12) [](https://hub.docker.com/r/sickcodes/docker-osx/tags?page=1&ordering=last_updated)
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
|
|
||||||
@ -95,7 +97,7 @@ docker run -it \
|
|||||||
# docker build -t docker-osx --build-arg SHORTNAME=monterey .
|
# docker build -t docker-osx --build-arg SHORTNAME=monterey .
|
||||||
```
|
```
|
||||||
|
|
||||||
### Ventura [](https://hub.docker.com/r/sickcodes/docker-osx/tags?page=1&ordering=last_updated)
|
### Ventura (13) [](https://hub.docker.com/r/sickcodes/docker-osx/tags?page=1&ordering=last_updated)
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
|
|
||||||
@ -111,7 +113,7 @@ docker run -it \
|
|||||||
# docker build -t docker-osx --build-arg SHORTNAME=ventura .
|
# docker build -t docker-osx --build-arg SHORTNAME=ventura .
|
||||||
```
|
```
|
||||||
|
|
||||||
### Sonoma [](https://hub.docker.com/r/sickcodes/docker-osx/tags?page=1&ordering=last_updated)
|
### Sonoma (14) [](https://hub.docker.com/r/sickcodes/docker-osx/tags?page=1&ordering=last_updated)
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
|
|
||||||
@ -145,7 +147,7 @@ docker run -it \
|
|||||||
sickcodes/docker-osx:auto
|
sickcodes/docker-osx:auto
|
||||||
|
|
||||||
# username is user
|
# username is user
|
||||||
# passsword is alpine
|
# password is alpine
|
||||||
```
|
```
|
||||||
|
|
||||||
### Older Systems
|
### Older Systems
|
||||||
@ -399,13 +401,13 @@ Pick one of these while **building**, irrelevant when using docker pull:
|
|||||||
|
|
||||||
There are currently multiple images, each with different use cases (explained [below](#container-images)):
|
There are currently multiple images, each with different use cases (explained [below](#container-images)):
|
||||||
|
|
||||||
- High Sierra
|
- High Sierra (10.13)
|
||||||
- Mojave
|
- Mojave (10.14)
|
||||||
- Catalina
|
- Catalina (10.15)
|
||||||
- Big Sur
|
- Big Sur (11)
|
||||||
- Monterey
|
- Monterey (12)
|
||||||
- Ventura
|
- Ventura (13)
|
||||||
- Sonoma
|
- Sonoma (14)
|
||||||
- Auto (pre-made Catalina)
|
- Auto (pre-made Catalina)
|
||||||
- Naked (use your own .img)
|
- Naked (use your own .img)
|
||||||
- Naked-Auto (user your own .img and SSH in)
|
- Naked-Auto (user your own .img and SSH in)
|
||||||
@ -1816,7 +1818,7 @@ docker run -it \
|
|||||||
sickcodes/docker-osx:auto
|
sickcodes/docker-osx:auto
|
||||||
|
|
||||||
# username is user
|
# username is user
|
||||||
# passsword is alpine
|
# password is alpine
|
||||||
# Wait 2-3 minutes until you drop into the shell.
|
# Wait 2-3 minutes until you drop into the shell.
|
||||||
```
|
```
|
||||||
|
|
||||||
|
65
entrypoint.auto.sh
Executable file
65
entrypoint.auto.sh
Executable file
@ -0,0 +1,65 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
echo "${BOILERPLATE}" \
|
||||||
|
; [[ "${TERMS_OF_USE}" = i_agree ]] || exit 1 \
|
||||||
|
; echo "Disk is being copied between layers... Please wait a minute..." \
|
||||||
|
; sudo touch /dev/kvm /dev/snd "${IMAGE_PATH}" "${BOOTDISK}" "${ENV}" 2>/dev/null || true \
|
||||||
|
; sudo chown -R $(id -u):$(id -g) /dev/kvm /dev/snd "${IMAGE_PATH}" "${BOOTDISK}" "${ENV}" 2>/dev/null || true \
|
||||||
|
; [[ "${NOPICKER}" == true ]] && { \
|
||||||
|
sed -i '/^.*InstallMedia.*/d' Launch.sh \
|
||||||
|
&& export BOOTDISK="${BOOTDISK:=/home/arch/OSX-KVM/OpenCore/OpenCore-nopicker.qcow2}" \
|
||||||
|
; } \
|
||||||
|
|| export BOOTDISK="${BOOTDISK:=/home/arch/OSX-KVM/OpenCore/OpenCore.qcow2}" \
|
||||||
|
; [[ "${GENERATE_UNIQUE}" == true ]] && { \
|
||||||
|
./Docker-OSX/osx-serial-generator/generate-unique-machine-values.sh \
|
||||||
|
--master-plist-url="${MASTER_PLIST_URL}" \
|
||||||
|
--count 1 \
|
||||||
|
--tsv ./serial.tsv \
|
||||||
|
--bootdisks \
|
||||||
|
--width "${WIDTH:-1920}" \
|
||||||
|
--height "${HEIGHT:-1080}" \
|
||||||
|
--output-bootdisk "${BOOTDISK:=/home/arch/OSX-KVM/OpenCore/OpenCore.qcow2}" \
|
||||||
|
--output-env "${ENV:=/env}" \
|
||||||
|
|| exit 1 ; } \
|
||||||
|
; [[ "${GENERATE_SPECIFIC}" == true ]] && { \
|
||||||
|
source "${ENV:=/env}" 2>/dev/null \
|
||||||
|
; ./Docker-OSX/osx-serial-generator/generate-specific-bootdisk.sh \
|
||||||
|
--master-plist-url="${MASTER_PLIST_URL}" \
|
||||||
|
--model "${DEVICE_MODEL}" \
|
||||||
|
--serial "${SERIAL}" \
|
||||||
|
--board-serial "${BOARD_SERIAL}" \
|
||||||
|
--uuid "${UUID}" \
|
||||||
|
--mac-address "${MAC_ADDRESS}" \
|
||||||
|
--width "${WIDTH:-1920}" \
|
||||||
|
--height "${HEIGHT:-1080}" \
|
||||||
|
--output-bootdisk "${BOOTDISK:=/home/arch/OSX-KVM/OpenCore/OpenCore.qcow2}" \
|
||||||
|
|| exit 1 ; } \
|
||||||
|
; { [[ "${DISPLAY}" = ':99' ]] || [[ "${HEADLESS}" == true ]] ; } && { \
|
||||||
|
nohup Xvfb :99 -screen 0 1920x1080x16 \
|
||||||
|
& until [[ "$(xrandr --query 2>/dev/null)" ]]; do sleep 1 ; done \
|
||||||
|
; } \
|
||||||
|
; stat "${IMAGE_PATH}" \
|
||||||
|
; echo "Large image is being copied between layers, please wait a minute..." \
|
||||||
|
; ./enable-ssh.sh \
|
||||||
|
; [[ -e ~/.ssh/id_docker_osx ]] || { \
|
||||||
|
/usr/bin/ssh-keygen -t rsa -f ~/.ssh/id_docker_osx -q -N "" \
|
||||||
|
&& chmod 600 ~/.ssh/id_docker_osx \
|
||||||
|
; } \
|
||||||
|
; /bin/bash -c ./Launch.sh \
|
||||||
|
& echo "Booting Docker-OSX in the background. Please wait..." \
|
||||||
|
; until [[ "$(sshpass -p${PASSWORD:=alpine} ssh-copy-id -f -i ~/.ssh/id_docker_osx.pub -p 10022 ${USERNAME:=user}@127.0.0.1)" ]]; do \
|
||||||
|
echo "Disk is being copied between layers. Repeating until able to copy SSH key into OSX..." \
|
||||||
|
; sleep 1 \
|
||||||
|
; done \
|
||||||
|
; grep id_docker_osx ~/.ssh/config || { \
|
||||||
|
tee -a ~/.ssh/config <<< 'Host 127.0.0.1' \
|
||||||
|
; tee -a ~/.ssh/config <<< " User ${USERNAME:=user}" \
|
||||||
|
; tee -a ~/.ssh/config <<< ' Port 10022' \
|
||||||
|
; tee -a ~/.ssh/config <<< ' IdentityFile ~/.ssh/id_docker_osx' \
|
||||||
|
; tee -a ~/.ssh/config <<< ' StrictHostKeyChecking no' \
|
||||||
|
; tee -a ~/.ssh/config <<< ' UserKnownHostsFile=/dev/null' \
|
||||||
|
; } \
|
||||||
|
&& echo 'Default username: user' \
|
||||||
|
&& echo 'Default password: alpine' \
|
||||||
|
&& echo 'Change it immediately using the command: passwd' \
|
||||||
|
&& ssh -i ~/.ssh/id_docker_osx ${USERNAME:=user}@127.0.0.1 -p 10022 "${OSX_COMMANDS}"
|
34
entrypoint.monterey.sh
Executable file
34
entrypoint.monterey.sh
Executable file
@ -0,0 +1,34 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
sudo touch /dev/kvm /dev/snd "${IMAGE_PATH}" "${BOOTDISK}" "${ENV}" 2>/dev/null || true \
|
||||||
|
; sudo chown -R $(id -u):$(id -g) /dev/kvm /dev/snd "${IMAGE_PATH}" "${BOOTDISK}" "${ENV}" 2>/dev/null || true \
|
||||||
|
; [[ "${NOPICKER}" == true ]] && { \
|
||||||
|
sed -i '/^.*InstallMedia.*/d' Launch.sh \
|
||||||
|
&& export BOOTDISK="${BOOTDISK:=/home/arch/OSX-KVM/OpenCore/OpenCore-nopicker.qcow2}" \
|
||||||
|
; } \
|
||||||
|
|| export BOOTDISK="${BOOTDISK:=/home/arch/OSX-KVM/OpenCore/OpenCore.qcow2}" \
|
||||||
|
; [[ "${GENERATE_UNIQUE}" == true ]] && { \
|
||||||
|
./Docker-OSX/osx-serial-generator/generate-unique-machine-values.sh \
|
||||||
|
--master-plist-url="${MASTER_PLIST_URL}" \
|
||||||
|
--count 1 \
|
||||||
|
--tsv ./serial.tsv \
|
||||||
|
--bootdisks \
|
||||||
|
--width "${WIDTH:-1920}" \
|
||||||
|
--height "${HEIGHT:-1080}" \
|
||||||
|
--output-bootdisk "${BOOTDISK:=/home/arch/OSX-KVM/OpenCore/OpenCore.qcow2}" \
|
||||||
|
--output-env "${ENV:=/env}" \
|
||||||
|
|| exit 1 ; } \
|
||||||
|
; [[ "${GENERATE_SPECIFIC}" == true ]] && { \
|
||||||
|
source "${ENV:=/env}" 2>/dev/null \
|
||||||
|
; ./Docker-OSX/osx-serial-generator/generate-specific-bootdisk.sh \
|
||||||
|
--master-plist-url="${MASTER_PLIST_URL}" \
|
||||||
|
--model "${DEVICE_MODEL}" \
|
||||||
|
--serial "${SERIAL}" \
|
||||||
|
--board-serial "${BOARD_SERIAL}" \
|
||||||
|
--uuid "${UUID}" \
|
||||||
|
--mac-address "${MAC_ADDRESS}" \
|
||||||
|
--width "${WIDTH:-1920}" \
|
||||||
|
--height "${HEIGHT:-1080}" \
|
||||||
|
--output-bootdisk "${BOOTDISK:=/home/arch/OSX-KVM/OpenCore/OpenCore.qcow2}" \
|
||||||
|
|| exit 1 ; } \
|
||||||
|
; ./enable-ssh.sh && /bin/bash -c ./Launch.sh
|
62
entrypoint.naked-auto.sh
Executable file
62
entrypoint.naked-auto.sh
Executable file
@ -0,0 +1,62 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
echo "${BOILERPLATE}" \
|
||||||
|
; [[ "${TERMS_OF_USE}" = i_agree ]] || exit 1 \
|
||||||
|
; echo "Disk is being copied between layers... Please wait a minute..." \
|
||||||
|
; sudo touch /dev/kvm /dev/snd "${IMAGE_PATH}" "${BOOTDISK}" "${ENV}" 2>/dev/null || true \
|
||||||
|
; sudo chown -R $(id -u):$(id -g) /dev/kvm /dev/snd "${IMAGE_PATH}" "${BOOTDISK}" "${ENV}" 2>/dev/null || true \
|
||||||
|
; [[ "${NOPICKER}" == true ]] && { \
|
||||||
|
sed -i '/^.*InstallMedia.*/d' Launch.sh \
|
||||||
|
&& export BOOTDISK="${BOOTDISK:=/home/arch/OSX-KVM/OpenCore/OpenCore-nopicker.qcow2}" \
|
||||||
|
; } \
|
||||||
|
|| export BOOTDISK="${BOOTDISK:=/home/arch/OSX-KVM/OpenCore/OpenCore.qcow2}" \
|
||||||
|
; [[ "${GENERATE_UNIQUE}" == true ]] && { \
|
||||||
|
./Docker-OSX/osx-serial-generator/generate-unique-machine-values.sh \
|
||||||
|
--master-plist-url="${MASTER_PLIST_URL}" \
|
||||||
|
--count 1 \
|
||||||
|
--tsv ./serial.tsv \
|
||||||
|
--bootdisks \
|
||||||
|
--width "${WIDTH:-1920}" \
|
||||||
|
--height "${HEIGHT:-1080}" \
|
||||||
|
--output-bootdisk "${BOOTDISK:=/home/arch/OSX-KVM/OpenCore/OpenCore.qcow2}" \
|
||||||
|
--output-env "${ENV:=/env}" \
|
||||||
|
|| exit 1 ; } \
|
||||||
|
; [[ "${GENERATE_SPECIFIC}" == true ]] && { \
|
||||||
|
source "${ENV:=/env}" 2>/dev/null \
|
||||||
|
; ./Docker-OSX/osx-serial-generator/generate-specific-bootdisk.sh \
|
||||||
|
--master-plist-url="${MASTER_PLIST_URL}" \
|
||||||
|
--model "${DEVICE_MODEL}" \
|
||||||
|
--serial "${SERIAL}" \
|
||||||
|
--board-serial "${BOARD_SERIAL}" \
|
||||||
|
--uuid "${UUID}" \
|
||||||
|
--mac-address "${MAC_ADDRESS}" \
|
||||||
|
--width "${WIDTH:-1920}" \
|
||||||
|
--height "${HEIGHT:-1080}" \
|
||||||
|
--output-bootdisk "${BOOTDISK:=/home/arch/OSX-KVM/OpenCore/OpenCore.qcow2}" \
|
||||||
|
|| exit 1 ; } \
|
||||||
|
; { [[ "${DISPLAY}" = ':99' ]] || [[ "${HEADLESS}" == true ]] ; } && { \
|
||||||
|
nohup Xvfb :99 -screen 0 1920x1080x16 \
|
||||||
|
& until [[ "$(xrandr --query 2>/dev/null)" ]]; do sleep 1 ; done \
|
||||||
|
; } \
|
||||||
|
; stat "${IMAGE_PATH}" \
|
||||||
|
; echo "Large image is being copied between layers, please wait a minute..." \
|
||||||
|
; ./enable-ssh.sh \
|
||||||
|
; [[ -e ~/.ssh/id_docker_osx ]] || { \
|
||||||
|
/usr/bin/ssh-keygen -t rsa -f ~/.ssh/id_docker_osx -q -N "" \
|
||||||
|
&& chmod 600 ~/.ssh/id_docker_osx \
|
||||||
|
; } \
|
||||||
|
; /bin/bash -c ./Launch.sh \
|
||||||
|
& echo "Booting Docker-OSX in the background. Please wait..." \
|
||||||
|
; until [[ "$(sshpass -p${PASSWORD:=alpine} ssh-copy-id -f -i ~/.ssh/id_docker_osx.pub -p 10022 ${USERNAME:=user}@127.0.0.1)" ]]; do \
|
||||||
|
echo "Disk is being copied between layers. Repeating until able to copy SSH key into OSX..." \
|
||||||
|
; sleep 1 \
|
||||||
|
; done \
|
||||||
|
; grep id_docker_osx ~/.ssh/config || { \
|
||||||
|
tee -a ~/.ssh/config <<< 'Host 127.0.0.1' \
|
||||||
|
; tee -a ~/.ssh/config <<< " User ${USERNAME:=user}" \
|
||||||
|
; tee -a ~/.ssh/config <<< ' Port 10022' \
|
||||||
|
; tee -a ~/.ssh/config <<< ' IdentityFile ~/.ssh/id_docker_osx' \
|
||||||
|
; tee -a ~/.ssh/config <<< ' StrictHostKeyChecking no' \
|
||||||
|
; tee -a ~/.ssh/config <<< ' UserKnownHostsFile=/dev/null' \
|
||||||
|
; } \
|
||||||
|
&& ssh -i ~/.ssh/id_docker_osx ${USERNAME:=user}@127.0.0.1 -p 10022 "${OSX_COMMANDS}"
|
38
entrypoint.naked.sh
Executable file
38
entrypoint.naked.sh
Executable file
@ -0,0 +1,38 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
sudo touch /dev/kvm /dev/snd "${IMAGE_PATH}" "${BOOTDISK}" "${ENV}" 2>/dev/null || true \
|
||||||
|
; sudo chown -R $(id -u):$(id -g) /dev/kvm /dev/snd "${IMAGE_PATH}" "${BOOTDISK}" "${ENV}" 2>/dev/null || true \
|
||||||
|
; { [[ "${DISPLAY}" = ':99' ]] || [[ "${HEADLESS}" == true ]] ; } && { \
|
||||||
|
nohup Xvfb :99 -screen 0 1920x1080x16 \
|
||||||
|
& until [[ "$(xrandr --query 2>/dev/null)" ]]; do sleep 1 ; done \
|
||||||
|
; } \
|
||||||
|
; [[ "${NOPICKER}" == true ]] && { \
|
||||||
|
sed -i '/^.*InstallMedia.*/d' Launch.sh \
|
||||||
|
&& export BOOTDISK="${BOOTDISK:=/home/arch/OSX-KVM/OpenCore/OpenCore-nopicker.qcow2}" \
|
||||||
|
; } \
|
||||||
|
|| export BOOTDISK="${BOOTDISK:=/home/arch/OSX-KVM/OpenCore/OpenCore.qcow2}" \
|
||||||
|
; [[ "${GENERATE_UNIQUE}" == true ]] && { \
|
||||||
|
./Docker-OSX/osx-serial-generator/generate-unique-machine-values.sh \
|
||||||
|
--master-plist-url="${MASTER_PLIST_URL}" \
|
||||||
|
--count 1 \
|
||||||
|
--tsv ./serial.tsv \
|
||||||
|
--bootdisks \
|
||||||
|
--width "${WIDTH:-1920}" \
|
||||||
|
--height "${HEIGHT:-1080}" \
|
||||||
|
--output-bootdisk "${BOOTDISK:=/home/arch/OSX-KVM/OpenCore/OpenCore.qcow2}" \
|
||||||
|
--output-env "${ENV:=/env}" \
|
||||||
|
|| exit 1 ; } \
|
||||||
|
; [[ "${GENERATE_SPECIFIC}" == true ]] && { \
|
||||||
|
source "${ENV:=/env}" 2>/dev/null \
|
||||||
|
; ./Docker-OSX/osx-serial-generator/generate-specific-bootdisk.sh \
|
||||||
|
--master-plist-url="${MASTER_PLIST_URL}" \
|
||||||
|
--model "${DEVICE_MODEL}" \
|
||||||
|
--serial "${SERIAL}" \
|
||||||
|
--board-serial "${BOARD_SERIAL}" \
|
||||||
|
--uuid "${UUID}" \
|
||||||
|
--mac-address "${MAC_ADDRESS}" \
|
||||||
|
--width "${WIDTH:-1920}" \
|
||||||
|
--height "${HEIGHT:-1080}" \
|
||||||
|
--output-bootdisk "${BOOTDISK:=/home/arch/OSX-KVM/OpenCore/OpenCore.qcow2}" \
|
||||||
|
|| exit 1 ; } \
|
||||||
|
; ./enable-ssh.sh && /bin/bash -c ./Launch.sh
|
34
entrypoint.sh
Normal file
34
entrypoint.sh
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
sudo touch /dev/kvm /dev/snd "${IMAGE_PATH}" "${BOOTDISK}" "${ENV}" 2>/dev/null || true \
|
||||||
|
; sudo chown -R $(id -u):$(id -g) /dev/kvm /dev/snd "${IMAGE_PATH}" "${BOOTDISK}" "${ENV}" 2>/dev/null || true \
|
||||||
|
; [[ "${NOPICKER}" == true ]] && { \
|
||||||
|
sed -i '/^.*InstallMedia.*/d' Launch.sh \
|
||||||
|
&& export BOOTDISK="${BOOTDISK:=/home/arch/OSX-KVM/OpenCore/OpenCore-nopicker.qcow2}" \
|
||||||
|
; } \
|
||||||
|
|| export BOOTDISK="${BOOTDISK:=/home/arch/OSX-KVM/OpenCore/OpenCore.qcow2}" \
|
||||||
|
; [[ "${GENERATE_UNIQUE}" == true ]] && { \
|
||||||
|
./Docker-OSX/osx-serial-generator/generate-unique-machine-values.sh \
|
||||||
|
--master-plist-url="${MASTER_PLIST_URL}" \
|
||||||
|
--count 1 \
|
||||||
|
--tsv ./serial.tsv \
|
||||||
|
--bootdisks \
|
||||||
|
--width "${WIDTH:-1920}" \
|
||||||
|
--height "${HEIGHT:-1080}" \
|
||||||
|
--output-bootdisk "${BOOTDISK:=/home/arch/OSX-KVM/OpenCore/OpenCore.qcow2}" \
|
||||||
|
--output-env "${ENV:=/env}" \
|
||||||
|
|| exit 1 ; } \
|
||||||
|
; [[ "${GENERATE_SPECIFIC}" == true ]] && { \
|
||||||
|
source "${ENV:=/env}" 2>/dev/null \
|
||||||
|
; ./Docker-OSX/osx-serial-generator/generate-specific-bootdisk.sh \
|
||||||
|
--master-plist-url="${MASTER_PLIST_URL}" \
|
||||||
|
--model "${DEVICE_MODEL}" \
|
||||||
|
--serial "${SERIAL}" \
|
||||||
|
--board-serial "${BOARD_SERIAL}" \
|
||||||
|
--uuid "${UUID}" \
|
||||||
|
--mac-address "${MAC_ADDRESS}" \
|
||||||
|
--width "${WIDTH:-1920}" \
|
||||||
|
--height "${HEIGHT:-1080}" \
|
||||||
|
--output-bootdisk "${BOOTDISK:=/home/arch/OSX-KVM/OpenCore/OpenCore.qcow2}" \
|
||||||
|
|| exit 1 ; } \
|
||||||
|
; ./enable-ssh.sh && /bin/bash -c ./Launch.sh
|
Loading…
Reference in New Issue
Block a user