windows 下虚拟机安装mac os

Windows下虚拟机安装Mac OS X —– VM12安装Mac OS X 10.11

随着Iphone在国内大行其道,越来越多的开发者涌入IOS开发大军 中,但都苦于没有苹果机,本文即将介绍WIN虚拟MAC的教程。

一、工具:
Mac OS X 10.11 镜像文件下载 提取密码是dqbi
unlocker208文件下载地址 提取密码是b2ac
VM可自行百度下载,本文中用的是VM12

二、基本步骤

1.首先下载 vmware workstation,以管理员身份运行,安装点击下一步即可。注册码百度一堆。

2.unlocker208安装

这里写图片描述

解压unlocker208文件,找到win-install.cmd文件,右键以管理员身份运行。这一步骤很关键,决定了后续VM会不会识别出OS X。我安装的时候,出现了VM无法识别Mac OS X 的问题,找到了好多 unlocker文件都没能解决,最后试了下208可以了。

3.载入Mac OS X 10.11

这里写图片描述

选择典型,点击下一步

这里写图片描述

选择安装程序光盘映像文件,点击选择CDR镜像文件路径

这里写图片描述

如果第二部unlocker文件没有处理好的话,这个地方可能就不会出现Apple Mac OS X。如果不行,可以多下载几个unlocker试试。版本根据实际版本选择,我的是10.11.

这里写图片描述

名称和安装位置自己定义一下

这里写图片描述

点击下一步即可。

这里写图片描述

点击完成

这里写图片描述

然后点击开启虚拟机。

这里写图片描述

出现这个错误,你需要找到你VM的根文件,找到根文件下的 OS X xx.xx.vmx,右键用记事本方式打开,找到 smc.present = “TRUE”,如下图。
这里写图片描述

这里写图片描述

在smc.present = “TRUE”后面,手动添加一句smc.version = 0。如下图

这里写图片描述

然后保存关闭,再重新启动虚拟机,就不会报错了。

这里写图片描述

我在安装的过程中,接下来又出现了蓝屏boot manager的现象,网上搜索了一下是我原来的镜像文件的问题,所以我又重新找到了现在的CDR镜像文件是可以安装成功的。

这里写图片描述

这里写图片描述

在磁盘工具里进行分区

这里写图片描述

后续都是基本配置的问题了。祝你安装成功!

转载:http://blog.csdn.net/hamber_bao/article/details/51335834

  • 1
    点赞
  • 8
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
unlocker208 是使用 VMware 安装 MacOS的必备补丁,亲测可用,详情参阅压缩包内有readme。 VMware 安装 MacOS的流程: =============================================== 1. 安装VMware Station Pro 12.0 2. 将Unlocker解压,右击win-install.cmd,选择“以管理员身份运行” 3. 为MacOS新建虚拟机,注意一定要下载懒人版安装包,格式为ISO或CDR 4. 新建完虚拟机之后,“开启此虚拟机”,VMWare会报错。这是因为虚拟机的隐藏参数设置错误,你要手动修改: 打开虚拟机所在文件夹,找到.vmx文件,右键使用其他程序打开,并选择记事本,在文件最后添加: smc.version = "0" 并保存。 ================================================= Mac OS X Unlocker for VMware V2.0 ================================= 1. Introduction --------------- Unlocker 2 is designed for Workstation 11, Player 7, ESXi 6 and Fusion 7. If you are using an earlier product please continue using Unlocker 1 Version 2 has been tested against: * Workstation 11/12 on Windows and Linux * Player 7 & Workstation Player 12 on Windows and Linux * Fusion 7/8 on Mavericks and Yosemite * ESXi 6.0 The patch code carries out the following modifications dependent on the product being patched: * Fix vmware-vmx and derivatives to allow Mac OS X to boot * Fix vmwarebase .dll or .so to allow Apple to be selected during VM creation * Fix libvmkctl.so on ESXi 6 to allow use with vCenter * Download a copy of the latest VMware Tools for OS X Note that not all products recognise the darwin.iso via install tools menu item. You will have to manually mount the darwin.iso for example on Workstation 11 and Player 7. The vmwarebase code does not need to be patched on OS X or ESXi so you will see a message on those systems telling you that it will not be patched. In all cases make sure VMware is not running, and any background guests have been shutdown. The code is now Python as it makes the Unlocker easier to run and maintain on ESXi. There are some challenges to write the code as ESXi has a subset of Python 2.7 which constrains some modules that can be used. 2. Prerequisites ---------------- The code requires Python 2.7 to work. Most Linux distros, ESXi and OS X ship with a compatible Python interpreter and should work without requiring any additional software. Windows has a packaged version of the Python script using PyInstaller, and so does not require Python to be installed. 3. Limitations -------------- If you are using VMware Player or Workstation on Windows you may get a core dump. Latest Linux and ESXi products are OK and do not show this problem. +-----------------------------------------------------------------------------+ | IMPORTANT: | | ========== | | | | If you create a new VM using version 11 or 12 hardware VMware may stop and | | create a core dump. There are two options to work around this issue: | | | | 1. Change the VM to be HW 10 - this does not affect performance. | | 2. Edit the VMX file and add: | | smc.version = "0" | | | +-----------------------------------------------------------------------------+ 4. Windows ---------- On Windows you will need to either run cmd.exe as Administrator or using Explorer right click on the command file and select "Run as administrator". win-install.cmd - patches VMware win-uninstall.cmd - restores VMware win-update-tools.cmd - retrieves latest OS X guest tools 5. Linux --------- On Linux you will need to be either root or use sudo to run the scripts. You may need to ensure the Linux scripts have execute permissions by running chmod +x against the 2 files. lnx-install.sh - patches VMware lnx-uninstall.sh - restores VMware lnx-update-tools.cmd - retrieves latest OS X guest tools 6. Mac OS X ----------- On Mac OS X you will need to be either root or use sudo to run the scripts. This is really only needed if you want to use client versions of Mac OS X. You may need to ensure the OS X scripts have execute permissions by running chmod +x against the 2 files. osx-install.sh - patches VMware osx-uninstall.sh - restores VMware 7. ESXi ------- You will need to transfer the zip file to the ESXi host either using vSphere client or SCP. Once uploaded you will need to either use the ESXi support console or use SSH to run the commands. Use the unzip command to extract the files. <<>> Please note that you will need to reboot the host for the patches to become active. The patcher is embbedded in a shell script local.sh which is run at boot from /etc/rc.local.d. You may need to ensure the ESXi scripts have execute permissions by running chmod +x against the 2 files. esxi-install.sh - patches VMware esxi-uninstall.sh - restores VMware Note: 1. Any changes you have made to local.sh will be lost. If you have made changes to that file, you will need to merge them into the supplied local.sh file. 2. The unlocker runs at boot time to patch the relevant files and it now survives an upgrade or patch to ESXi as local.sh is part of the persisted local state. 8. Thanks --------- Thanks to Zenith432 for originally building the C++ unlocker and Mac Son of Knife (MSoK) for all the testing and support. Thanks also to Sam B for finding the solution for ESXi 6 and helping me with debugging expertise. Sam also wrote the code for patching ESXi ELF files.

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值