1
0
Fork 0
mirror of https://github.com/foxlet/macOS-Simple-KVM.git synced 2024-11-17 00:29:41 +01:00
macOS-Simple-KVM/setup.sh
2022-02-01 16:05:21 -05:00

20 lines
437 B
Bash
Executable file

#!/bin/bash
sudo apt-get install qemu-system qemu-utils python python-pip -y # for Ubuntu, Debian, Mint, and PopOS.
qemu-img create -f qcow2 macOS.qcow2 64G
python fetch-macOS.py
if [ -e BaseSystem.dmg ]
then
qemu-img convert BaseSystem.dmg -O raw BaseSystem.img
else
if [ -e RecoveryImage.dmg ]
then
qemu-img convert RecoveryImage.dmg -O raw BaseSystem.img
else
echo "macOS installer not found"
fi
sudo ./basic.sh