我之前写过关于将您的 Windows PC 转换为虚拟机并在虚拟机中安装新的 Windows 副本的(installing a fresh copy of Windows in a virtual machine)文章,但是如果您有一台Mac并且想要在虚拟机中运行OS X获得相同的好处怎么办?
正如我之前提到的,在虚拟机中运行操作系统(operating system)的另一个副本可以通过两种方式帮助您:保护您的隐私并保护您免受病毒/恶意软件的侵害。从OS X Lion (10.7) 开始,您可以将操作系统(operating system)多次安装到虚拟机中,只要它位于同一硬件上即可。
因此,如果您有一台安装了OS X El Capitan的(OS X El Capitan)MacBook Pro ,您可以将尽可能多的(MacBook Pro)El Capitan副本安装到同一台机器上的虚拟机中。在本文中,我将引导您完成使用VMware Fusion安装OS X的步骤。有一个名为VirtualBox的免费程序,但它有一些缺点。
VMware Fusion不是免费的,但具有更多功能,通常比(VMware Fusion)VirtualBox更强大且更易于使用。VirtualBox需要使用终端(Terminal)命令来安装OS X。此外,它甚至不适用于最新版本的OS X。
请注意,在VMware fusion上安装(VMware fusion)OS X有两种方法:从App Store下载OS X并使用它来安装或使用 恢复分区(recovery partition)重新安装OS X。我将在本文中解释这两种方法。
下载 OS X
您可以将OS X Lion、Mountain Lion、Mavericks、Yosemite或El Capitan安装到Mac 计算机(Mac computer)上的虚拟机中。在开始使用下载方法(download method)之前,您需要从App Store获取(App Store)OS X 安装程序(OS X installer)的副本。
为此,请打开App Store并下载您的OS X版本。在我的示例中,我正在运行El Capitan,这就是我将下载的内容。它列在链接列表的右侧(hand side)。
单击下载(Download)按钮,安装应用程序(install app)将下载到OS X中的(OS X)Applications文件夹。下载大小为几GB(GBs),因此下载完成可能需要一段时间。
在 VMware Fusion 中安装 OS X
请注意,如果要安装El Capitan ,则需要安装(El Capitan)VMware Fusion 8。您可以随时查看兼容性指南,了解不同版本的(Compatibility Guide)VMware 软件(VMware software)支持哪些操作系统。只需(Simply)向下滚动Product Release Version列表框(list box)并选择您的VMware Fusion版本。
现在打开VMware Fusion,然后单击File and New开始创建新的虚拟机。
将弹出一个窗口,您可以在其中从光盘或映像(disc or image)安装,也可以从其他几个选项中进行选择。
这是我们可以采用两种方式之一的地方。如果您从App Store下载(App Store)OS X,您将选择从光盘或映像安装(Install from disc or image)。如果您只是想 在您的Mac上使用(Mac)恢复分区(recovery partition),您将选择从恢复分区安装 OS( Install OS X from the recovery partition) X。
从光盘或映像安装
选择此选项,然后单击继续(Continue)。您现在需要选择光盘或映像(disc or image)以继续安装。继续并单击屏幕底部的使用另一张光盘或光盘映像按钮,( Use another disc or disc image)然后浏览(screen and browse)到OS X 安装(OS X install)应用程序的位置,该位置应位于Applications 文件夹(Applications folder)下。
单击打开(Open),它现在应该显示在列表中。您现在可以选择它并单击继续(Continue)开始安装。
向导的最后一个屏幕将为您提供所有设置的摘要。
如果一切正常,请继续并单击完成(Finish)以启动虚拟机。系统将要求您保存虚拟机,以便为其命名并选择一个位置。单击保存(Save),虚拟机应在几分钟后启动。然后您会看到Apple 徽标(Apple logo)出现和进度条(progress bar)。
完成后,您将看到选择语言的屏幕。单击(Click)箭头,您将看到OS X 实用程序(OS X Utilities)屏幕。
选择安装 OS X(Install OS X)并单击继续(Continue)。现在您将看到您的OS X(OS X. Click)版本的安装屏幕。单击“(installation screen)继续(Continue)”开始安装。
同意(Agree)许可协议,然后选择要安装(license agreement)OS X的硬盘。它应该说Macintosh HD并且是您为虚拟机设置的大小。
单击安装(Install),现在将安装OS X。虚拟机将重新启动,您将再次获得带有进度条的(progress bar)Apple 徽标(Apple logo)。安装完成后,OS X应该会加载并且您应该能够登录到桌面。哇!一个漫长(Kind)的过程,但非常简单。
从恢复分区安装
如果您选择从恢复分区安装(Install from recovery partition)选项,则过程几乎相同。首先(First),它将加载一个屏幕,它将在其中查找恢复分区(recovery partition),如果找到它,它将弹出一个对话框来保存您的虚拟机。为虚拟机命名和位置(name and location),然后单击Save。
接下来,您将获得与上图相同的完成(Finish) 配置屏幕(configuration screen),其中提供了虚拟机设置的摘要。单击(Click) 完成(Finish),虚拟机窗口(machine window)将加载。
接下来,Apple 标志(Apple logo)将与进度条(progress bar)一起出现。同样(Again),您将获得选择语言的屏幕,然后是OS X Utilities 屏幕(OS X Utilities screen)。这里唯一的区别是您选择Reinstall OS X而不是Install OS X,这是前一种方法中的选项。
现在您将获得相同的OS X 安装(OS X install)屏幕,因此单击安装(Install)按钮继续。但是,对于这种方法,您必须从 Apple 的服务器上下载OS X。因此,您会收到一条消息,说明您的资格必须经过验证。单击继续(Continue)。
接受许可协议,然后选择要安装OS X(OS X)的硬盘。单击安装(Click install),然后您将获得一个屏幕,您必须在其中登录Apple 商店(Apple store)。
此时,将下载OS X,这可能需要一段时间,具体取决于您的Internet 连接(Internet connection)。
完成后,虚拟机将重新启动,并出现Apple 标志和进度条(Apple logo and progress bar)。OS X将安装,安装完成后您将能够登录。在虚拟机中设置OS X确实需要相当多的时间,但它运行良好。
完成并加载虚拟机后,您需要单击虚拟机(Virtual Machine),然后单击安装 VMware Tools(Install VMware Tools)。这将安装OS X虚拟机工具,它可以让您将分辨率提高到 HD 并让虚拟机运行更流畅。
希望本文能帮助您在Mac上的虚拟机中正常运行OS(OS X) X。可以在 PC 上安装OS X,但这是不合法的,而且要困难得多,尤其是使用最新版本的OS(OS X) X。如果您有任何问题,请随时发表评论。享受!
How to Install Mac OS X using VMware Fusion
I’ve previously written about converting your Windows PC into a virtual machine and installing a fresh copy of Windows in a virtual machine, but what if you have a Mac and you want the same benefits of running OS X in a virtual machine?
As I mentioned earlier, running another copy of the operating system in a virtual machine can help you in two ways: protect your privacy and keep your safe from viruses/malware. Starting with OS X Lion (10.7), you can install the operating system as many times as you like into a virtual machine as long as it is on the same hardware.
So if you have a MacBook Pro with OS X El Capitan installed, you can install as many copies of El Capitan into virtual machines on that same machine. In this article, I’ll walk you through the steps to get OS X installed using VMware Fusion. There is a free program called VirtualBox, but it has some drawbacks.
VMware Fusion is not free, but has more features and is generally more powerful and easier to use than VirtualBox. VirtualBox requires using Terminal commands to get OS X installed. In addition, it doesn’t even work properly for the latest version of OS X.
Note that there are two ways to install OS X on VMware fusion: download OS X from the App Store and use that for installing or to use the recovery partition to reinstall OS X. I’ll explain both methods in this post.
Download OS X
You can install OS X Lion, Mountain Lion, Mavericks, Yosemite, or El Capitan into a virtual machine on your Mac computer. Before you get started with the download method, you need to grab a copy of the OS X installer from the App Store.
To do this, open the App Store and download your version of OS X. In my example, I am running El Capitan, so that is what I will download. It’s listed on the right hand side in the list of links.
Click the Download button and the install app will be downloaded to your Applications folder in OS X. The download will be several GBs in size, so it could take a while for the download to complete.
Install OS X in VMware Fusion
Note that you will need VMware Fusion 8 installed if you want to install El Capitan. You can always check the Compatibility Guide to see which operating systems are supported by different versions of VMware software. Simply scroll down the Product Release Version list box and choose your version of VMware Fusion.
Now open VMware Fusion and then click on File and New to start creating a new virtual machine.
A window will pop up where you can either install from a disc or image or you can choose from a couple of other options.
Here is where we can go either of two ways. If you downloaded OS X from the App Store, you’re going to choose Install from disc or image. If you simply want to use the recovery partition on your Mac, you’re going to choose Install OS X from the recovery partition.
Install from Disc or Image
Select this option and then click Continue. You’ll now need to choose the disc or image to continue the install. Go ahead and click on the Use another disc or disc image button at the bottom of the screen and browse to the location of the OS X install app, which should be located under the Applications folder.
Click Open and it should now show up in the list. You can now select it and click Continue to start the installation.
The last screen of the wizard will give you a summary of all the settings.
If everything looks good, go ahead and click Finish to start the virtual machine. You’ll be asked to save the virtual machine so give it a name and pick a location. Click Save and the virtual machine should start up after a few minutes. You’ll then see the Apple logo appear and the progress bar.
Once this finishes, you’ll get the screen where you choose your language. Click the arrow and you’ll see the OS X Utilities screen.
Choose Install OS X and click Continue. Now you’ll get the installation screen for your version of OS X. Click Continue to start the installation.
Agree to the license agreement and then choose the hard drive you want to install OS X to. It should say Macintosh HD and be the size you setup for the virtual machine.
Click Install and OS X will now be installed. The virtual machine will restart and you’ll get the Apple logo again with a progress bar. Once the installation is complete, OS X should load up and you should be able to log into the desktop. Whew! Kind of a long process, but pretty straight-forward.
Install from Recovery Partition
If you choose the Install from recovery partition option, the procedure is pretty much the same. First, it will load a screen where it will look for the recovery partition and if it finds it, it will bring up a dialog to save your virtual machine. Give the virtual machine a name and location and click Save.
Next, you’ll get the same Finish configuration screen like shown above where it gives you a summary of the virtual machine settings. Click Finish and the virtual machine window will load up.
Next, the Apple logo will appear with the progress bar. Again, you’ll get the screen where you have to choose your language and then the OS X Utilities screen. The only difference here is that you choose Reinstall OS X instead of Install OS X, which is the option in the previous method.
Now you’ll get the same OS X install screen, so click the Install button to continue. For this method, however, you have to download OS X off Apple’s servers. So you’ll get a message stating that your eligibility has to be verified. Click Continue.
Accept the license agreement and then choose the hard disk you want to install OS X onto. Click install and then you’ll get a screen where you have to sign into the Apple store.
At this point, OS X will be downloaded and it could take a while depending on your Internet connection.
After it finishes, the virtual machine will restart and the Apple logo and progress bar will appear. OS X will install and you’ll be able to login once the installation is complete. It does take quite a bit of time to setup OS X in a virtual machine, but it works well.
After you are done and your virtual machine is loaded, you need to click on Virtual Machine and then Install VMware Tools. This will install the OS X virtual machine tools, which allows you to increase the resolution to HD and allows the virtual machine to run more smoothly.
Hopefully, this article will help you get OS X running properly in a virtual machine on your Mac. It’s possible to install OS X on a PC, but it’s not legal and it’s much more difficult, especially with the latest versions of OS X. If you have any questions, feel free to comment. Enjoy!