參考網址:https://computingforgeeks.com/how-to-ru ... -kvm-qemu/
sudo apt update
sudo apt -y install qemu-kvm libvirt-daemon qemu-system qemu-utils python3 python3-pip bridge-utils virtinst libvirt-daemon-system virt-manager
$ sudo modprobe vhost_net
$ lsmod | grep vhost
//$ echo vhost_net | sudo teaa -a /etc/modules
sudo systemctl start libvirtd
sudo systemctl enable libvirtd
//sudo pacman -S qemu virt-manager virt-viewer dnsmasq vde2 bridge-utils openbsd-netcat python python-pip ebtables iptables
$ sudo apt -y install git
git clone https://github.com/foxlet/macOS-Simple-KVM.git
cd macOS-Simple-KVM
./jumpstart.sh --catalina
pip install click
$ qemu-img create -f qcow2 macOS.qcow2 100G
nano basic.sh
加入
-drive id=SystemDisk,if=none,file=macOS.qcow2 \
-device ide-hd,bus=sata.4,drive=SystemDisk \
./basic.sh
單擊macOS圖標以安裝macOS基本系統。
在下一個屏幕中選擇“磁盤工具”。
格式化您為安裝macOS基本系統而創建的磁盤。
格式化後,磁盤應顯示大小和分區類型。
關閉磁盤工具,然後選擇“重新安裝macOS ”。
點擊“繼續”按鈕確認操作系統安裝。
選擇先前分區的磁盤。
開始安裝時請耐心等待,這可能需要很長時間,具體取決於互聯網速度。
sudo ./make.sh --add
運行上述命令後,在新添加的VM條目的屬性中將macOS.qcow2添加為存儲。
sudo -s
diskutil list
EFI disk0s1
diskutil mount disk0s1
config.plist
1920x1080
1600x900
1280x720
=========================
sudo apt install build-essential cmake clang libfuse-dev libbz2-dev libudev-dev libxml2-dev linux-headers-generic pkg-config zlib1g-dev libicu-dev openssl
sudo apt install dmg2img p7zip
./fetch-macOS.py --big-sur