git clone https://github.com/foxlet/macOS-Simple-KVM.git
cd macOS-Simple-KVM
./jumpstart.sh
重新生成 更大的 MyDisk.qcow2
qemu-img create -f qcow2 MyDisk.qcow2 200G
-drive id=SystemDisk,if=none,file=MyDisk.qcow2 \
-device ide-hd,bus=sata.4,drive=SystemDisk \
./make.sh --add
virsh define template.xml
开启启动
virsh autostart xxxx
https://www.jianshu.com/p/6f8c6da20cd0
https://www.jianshu.com/p/e95c458d78bd
apt install python3 python3-pip
cd ~
git clone https://github.com/kholia/OSX-KVM.git
cd OSX-KVM
./fetch-macOS.py
选择 9
然后执行
qemu-img convert BaseSystem.dmg -O raw BaseSystem.img
qemu-img create -f qcow2 mac_hdd_ng.img 200G
打开「系统偏好设置」-「显示器」后,按住「Option」键再点击「缩放」。
https://blog.daliansky.net/Mojave-Hardware-Support-List.html
https://zhuanlan.zhihu.com/p/90508170
https://www.cnblogs.com/jython/p/4458807.html
https://blog.csdn.net/u012124304/article/details/80955753
https://www.cnblogs.com/lunachy/p/5036713.html
https://www.jianshu.com/p/f85544b0deb9
https://blog.51cto.com/2035505/2486410
https://blog.csdn.net/dwj1979/article/details/85232191
有输出内容就好
egrep -o '(vmx|svm)' /proc/cpuinfo
确认内核是否支持iommu
cat /proc/cmdline | grep iommu
如果没有输出结果,则添加
vim /etc/default/grub
在 GRUB_CMDLINE_LINUX_DEFAULT
中增加
acpi_osi=linux intel_iommu=on nomodeset
更新
update-grub
lspci -nn |grep VGA
输出
Kernel driver in use: amdgpu
声卡
lspci -vv -s 3b:00.0 | grep driver
输出
Kernel driver in use: snd_hda_intel
将其添加到/etc/modprobe.d/blacklist.conf
文件最后
blacklist amdgpu
blacklist snd_hda_intel
modprobe pci_stub
配置
echo "1002 67ff" > /sys/bus/pci/drivers/pci-stub/new_id
echo 0000:3b:00.0 > /sys/bus/pci/devices/0000:3b:00.0/driver/unbind
echo 0000:3b:00.0 > /sys/bus/pci/drivers/pci-stub/bind
echo "1002 aae0" > /sys/bus/pci/drivers/pci-stub/new_id
echo 0000:3b:00.1 > /sys/bus/pci/devices/0000:3b:00.1/driver/unbind
echo 0000:3b:00.1 > /sys/bus/pci/drivers/pci-stub/bind
find /sys/kernel/iommu_groups/ -type l
或
find /sys/kernel/iommu_groups/ -type l |grep 3b
黑苹果博客
https://shuiyunxc.gitee.io/
https://blog.csdn.net/shuiyunxc/article/details/106214675
https://shuiyunxc.gitee.io/2020/03/10/instru/index/
https://mackie100projects.altervista.org/opencore-configurator/
https://shuiyunxc.gitee.io/2020/03/10/instru/index/
https://www.mogublog.net/post/2481.html
apt install libguestfs-tools
https://blog.csdn.net/shuaijiasanshao/article/details/51260673
https://github.com/thenickdude/KVM-Opencore
https://github.com/acidanthera/OpenCorePkg/blob/cbd60d9662cdcc9d6036bd28dcec524dbbf84a84/Include/Apple/IndustryStandard/AppleSmBios.h
/usr/share/libvirt/cpu_map