1
0
mirror of https://github.com/foxlet/macOS-Simple-KVM.git synced 2024-07-01 10:58:33 +02:00
macOS-Simple-KVM/setup.sh

21 lines
438 B
Bash
Raw Normal View History

2021-12-10 21:32:38 +01:00
#!/bin/bash
2022-02-01 22:06:32 +01:00
sudo apt-get install qemu-system qemu-utils python python3-pip -y # for Ubuntu, Debian, Mint, and PopOS.
2021-12-10 21:32:38 +01:00
qemu-img create -f qcow2 macOS.qcow2 64G
2022-02-01 22:05:02 +01:00
python fetch-macOS.py
2022-01-27 19:12:54 +01:00
2022-02-01 22:05:02 +01:00
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
2022-01-28 13:21:59 +01:00
2021-12-10 21:32:38 +01:00
sudo ./basic.sh