虚拟机安装Macintosh探索

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了虚拟机安装Macintosh探索相关的知识,希望对你有一定的参考价值。

想跟virtualbox安装一个mac os,在pcbeta找到网友分享的原版镜像,挂载安装,结果在安装的时候不是卡在进入界面,就是不停地安装,显然没有那么简单。virtualbox 在用户手册写着支持原生osx。

3.1.1. Mac OS X guests

Starting with version 3.2, VirtualBox has experimental support for Mac OS X guests. This allows you to install and execute unmodified versions of Mac OS X on supported host hardware.

Whereas competing solutions perform modifications to the Mac OS X install DVDs (e.g. different boot loader and replaced files), VirtualBox is the first product to provide the modern PC architecture expected by OS X without requiring any "hacks".

You should be aware of a number of important issues before attempting to install a Mac OS X guest:

  1. Mac OS X is commercial, licensed software and contains both license and technical restrictions that limit its use to certain hardware and usage scenarios. It is important that you understand and obey these restrictions.

    In particular, for most versions of Mac OS X, Apple prohibits installing them on non-Apple hardware.

    These license restrictions are also enforced on a technical level. Mac OS X verifies whether it is running on Apple hardware, and most DVDs that that come with Apple hardware even check for an exact model. These restrictions are not circumvented by VirtualBox and continue to apply.

  2. Only CPUs known and tested by Apple are supported. As a result, if your Intel CPU is newer than the build of Mac OS X, or if you have a non-Intel CPU, it will most likely panic during bootup with an "Unsupported CPU" exception. It is generally best to use the Mac OS X DVD that came with your Apple hardware.

  3. The Mac OS X installer expects the harddisk to be partitioned so when it does not offer a selection, you have to launch the Disk Utility from the "Tools" menu and partition the hard disk. Then close the Disk Utility and proceed with the installation.

  4. In addition, as Mac OS X support in VirtualBox is currently still experimental, please refer also to Chapter 14, Known limitations.

不知道到底什么缘故,是不是下载的镜像不对,需要购买正版镜像才行。

到处折腾了一番,知道了一些关于黑苹果的东西:

-------------

硬件

自从苹果从powepc宣布转到intel平台之后,让采用intel的各类机器增加使用osx的可能。由此衍生了一些项目组osx86之类。

由于苹果mac机的型号就那么几个,官方需要支持的硬件就那么些,官方只需要提供那么些驱动。如果你的硬件对不上,虽然是intel平台的,但没有驱动也就安装不上了。

另外,虚拟机的硬件到底是什么,只是发现,在virtualbox里有一个主板的芯片组特地为osx设置为了ICH9,(可以用mac osx的启动镜像查一下,看看显示的什么。)

为了能让兼容机使用上osx,很多黑客,改动了软件,什么内核补丁之类的东西,让其他一些兼容机能使用上。另外如果你的芯片型号如果和苹果一样可能会更方便吧。

---------------

原版的镜像

网上流传的应该是苹果在线更新下载下来,之后被共享的镜像,没有找到类似msdn.itellyou之类的网站,不知道有没有?

hack途径

- 内核hack. 之前提到,神。

-  EFI hack . EFI 作为bios的替代品,硬件和系统通讯的中介,EFI由于没有更改osx的代码,被认为是合法的方式。只用efi hack正常用上osx,那是不是前提是硬件一样。

----------------

hackintosh

找了个hack过的镜像文件iATKOS_S3_version2,版本的对应10.6

查看提供镜像的支持文件,似乎没什么用,关键是不知道虚拟机的硬件情况。

镜像里的工具叫做变色龙,可能是能指定启动参数叫这个名字。比如,以什么模式启动系统,比如-v,这个选项表示启动可看见调试信息。

安装准备:在virtualbox里安装,关掉了EFI。virtualbox里写的是EFI提供给一些特殊的系统比如osx,但是到了这里没办法又得取消。安装到最后,出现严重错误,kernel panic内核问题。

安装过程:可在安装向导自定义安装hack过的内核及驱动。安装到最后,virtualbox报严重错误。kenerl panic 内核错误。

重启:能启动,但是不能关机,-v启动,一关机可发现还是内核错误,直接出现提示需要长按电源键的几国语言提示。

-----------------

在虚拟机上安装box,发现wiki引用了两条,

http://lifehacker.com/5938332/how-to-run-mac-os-x-on-any-windows-pc-using-virtualbox

http://www.redmondpie.com/how-to-install-mac-os-x-snow-leopard-in-virtualbox-on-windows-7/

 

参考:

http://wiki.osx86project.org/wiki/

https://en.wikipedia.org/wiki/OSx86

以上是关于虚拟机安装Macintosh探索的主要内容,如果未能解决你的问题,请参考以下文章

Xamarin+Prism开发详解四:简单Mac OS 虚拟机安装方法与Visual Studio for Mac 初体验

如何安装vmware虚拟机系统

window10系统下安装虚拟机

如何在虚拟机下安装iis

虚拟机不能安装虚拟机工具VMware Tools

如何安装虚拟机,Vmware 10.0安装过程详解