当前位置:   article > 正文

ubuntu 20 kvm 安装macos_ubuntu通过kvm安装macos

ubuntu通过kvm安装macos

macOS-Simple-KVM

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
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18

https://www.jianshu.com/p/6f8c6da20cd0

https://www.jianshu.com/p/e95c458d78bd

OSX-KVM

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
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13

mac 更多分辨率

打开「系统偏好设置」-「显示器」后,按住「Option」键再点击「缩放」。

黑苹果支持列表

https://blog.daliansky.net/Mojave-Hardware-Support-List.html

mac brew

https://zhuanlan.zhihu.com/p/90508170

kvm虚拟化的嵌套

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
  • 1

确认内核是否支持iommu

cat /proc/cmdline | grep iommu
  • 1

如果没有输出结果,则添加

vim /etc/default/grub
  • 1

GRUB_CMDLINE_LINUX_DEFAULT 中增加

acpi_osi=linux intel_iommu=on nomodeset
  • 1

更新

update-grub
  • 1
lspci -nn |grep VGA
  • 1

输出

Kernel driver in use: amdgpu
  • 1

声卡

lspci -vv -s 3b:00.0 | grep driver
  • 1

输出

 Kernel driver in use: snd_hda_intel
  • 1

禁用显卡的默认驱动

将其添加到/etc/modprobe.d/blacklist.conf文件最后

blacklist amdgpu
blacklist snd_hda_intel
  • 1
  • 2

将显卡从宿主机解绑定

modprobe pci_stub
  • 1

配置

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
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7

查看显卡设备所在组

find /sys/kernel/iommu_groups/ -type l
或
find /sys/kernel/iommu_groups/ -type l |grep 3b
  • 1
  • 2
  • 3

OpenCore引导配置说明

黑苹果博客
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

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/Li_阴宅/article/detail/973336
推荐阅读
相关标签
  

闽ICP备14008679号