我的博客

在Windows10上安装MacOS虚拟机(VirtualBox + AMD ryzen)

目录
  1. 安装依赖
  2. 开始安装

试了很多方法都失败了,最后找到了 https://github.com/myspaghetti/macos-virtualbox/

尝试使用 cywin 但是卡在这里了:

1
2
3
Please make sure the following packages are installed:
coreutils gzip unzip xxd wget
Please make sure the coreutils and gzip packages are the GNU variant.

然后尝试WSL,结果很好用

安装依赖

  1. unzip

    sudo apt install unzip

  2. dmg2image

    1
    2
    3
    sudo add-apt-repository universe
    sudo apt update
    sudo apt install dmg2img
  3. Oracle VM VirtualBox Extension Pack

    也是 virtualbox 下载页面下载https://www.virtualbox.org/wiki/Downloads

开始安装

git clone https://github.com/myspaghetti/macos-virtualbox.git

进入该目录后执行

1
2
chmod +x macos-guest-virtualbox.sh
./macos-guest-virtualbox.sh

可能是因为 AMD CPU 的问题,开机卡住了,最后一行是 EXITBS 之类的。

然后参考https://github.com/myspaghetti/macos-virtualbox/issues/8 解决,关闭虚拟机,到 virtual box 的安装目录执行 VBoxManage modifyvm "macOS" --cpu-profile "Intel Core i7-2635QM" 再次开机就可以了。

评论无需登录,可以匿名,欢迎评论!