Windows 10 VirtualBox安装 macOS High Sierra

https://www.howtogeek.com/289594/how-to-install-macos-sierra-in-virtualbox-on-windows-10/

Step Two: Create Your Virtual Machine in VirtualBox

Next, head to your Windows machine, and install VirtualBox if you haven’t already, making sure you have the latest version (seriously, older versions may not work.)

 

Open it up and click the “New” button. Name your Virtual Machine “High Sierra,” and choose “Mac OS X” for the operating system and “Mac OS X (64-bit)” for the version (as of this writing, “macOS High Sierra” is not offered, but that’s fine.)

uploading.4e448015.gif转存失败重新上传取消

Continue through the process. For memory, we recommend you use at least 4096MB, though you can opt for more if you have enough RAM to spare on your Windows machine.

uploading.4e448015.gif转存失败重新上传取消

Next, you’ll be asked about your hard drive. Choose “Create a Virtual Hard Disk Now” and click Create.

uploading.4e448015.gif转存失败重新上传取消

Choose VDI for hard disk type and click Next. You’ll be asked if you want a dynamically sized drive or fixed. We recommend Fixed Size, since it’s a bit faster, though it’ll take up a bit more hard drive space on your Windows machine.

uploading.4e448015.gif转存失败重新上传取消

Click Next. You’ll be asked how big a drive you want; we recommend at least 25GB, which is big enough for the OS and a few applications. Depending on your storage situation, you could offer more, but we don’t think you can really use much less than that.

Click through the prompts, and you’ve created an entry for your virtual machine! Now it’s time to do a little configuration.

Step Three: Configure Your Virtual Machine in VirtualBox

You should see your virtual machine in VirtualBox’s main window.

uploading.4e448015.gif转存失败重新上传取消

Select it, then click the big yellow “Settings” button. First, head to “System” in the left sidebar. On the Motherboard tab, make sure that “Floppy” is unchecked.

uploading.4e448015.gif转存失败重新上传取消

Next head to the “Processor” tab, and make sure you have at least two CPUs allocated to the virtual machine.

uploading.4e448015.gif转存失败重新上传取消

Next, click “Display” in the left sidebar, and make sure Video Memory is set to at least 128MB.

uploading.4e448015.gif转存失败重新上传取消

Next, click “Storage” in the left sidebar, then click the “Empty” CD drive. Click the CD icon at the top right, then browse to the High Sierra ISO file you created earlier.

uploading.4e448015.gif转存失败重新上传取消

Be sure to click “OK” to finalize all the changes you’ve made, then close VirtualBox. No, seriously: close VirtualBox now, or the next steps won’t work.

Step Four: Configure Your Virtual Machine From The Command Prompt

We’ve made a few tweaks, but we need to make a few more more in order to convince the operating system it’s running on a real Mac. Sadly, there are no options for this from VirtualBox’s interface, so you’ll need to open the Command Prompt.

Open the Start Menu, search for “Command Prompt /prɒmpt/ ,” then right-click it and select “Run as administrator.”

uploading.4e448015.gif转存失败重新上传取消

You need to run a number commands, in order. Paste the following commands, pressing Enter after each one and waiting for it to complete:

cd "D:\SoftwareInstall\VirtualBox"

下面的 "MacOS10.13.6HighSierra" 指新建虚拟机时创建的Virtual Machine Name

 

VBoxManage.exe modifyvm "MacOS10.13.6HighSierra" --cpuidset 00000001 000306a9 04100800 7fbae3ff bfebfbff

 

VBoxManage setextradata "MacOS10.13.6HighSierra" "VBoxInternal/Devices/efi/0/Config/DmiSystemProduct" "MacBookPro11,3"

 

VBoxManage setextradata "MacOS10.13.6HighSierra" "VBoxInternal/Devices/efi/0/Config/DmiSystemVersion" "1.0"

 

VBoxManage setextradata "MacOS10.13.6HighSierra" "VBoxInternal/Devices/efi/0/Config/DmiBoardProduct" "Mac-2BD1B31983FE1663"

 

VBoxManage setextradata "MacOS10.13.6HighSierra" "VBoxInternal/Devices/smc/0/Config/DeviceKey" "ourhardworkbythesewordsguardedpleasedontsteal(c)AppleComputerInc"

 

VBoxManage setextradata "MacOS10.13.6HighSierra" "VBoxInternal/Devices/smc/0/Config/GetKeyFromRealSMC" 1

uploading.4e448015.gif转存失败重新上传取消

That’s it! If everything worked, you shouldn’t see any feedback; the commands will simply run. If the command did not work, make sure your virtual machine is named “High Sierra” exactly; if it isn’t, edit the commands above putting your machine’s name in the quotes. Go ahead and close the Command Prompt. We’re heading back to VirtualBox now.

Step Five: Boot and Run The Installer

Re-open VirtualBox, click your Sierra machine, then click “Start.” Your machine will start to boot. You will see a lot of superfluous /suːˈpɜːfluəs; sjuːˈpɜːfluəs 多余的;不必要的/  information as this happens—and I mean a lot—but don’t worry about it. It’s normal, even some of the things that look like errors.

uploading.4e448015.gif转存失败重新上传取消

You should only worry if a specific error hangs for five minutes or more. Just walk away and let it run for a bit. If you’ve done everything right, it’ll boot.

Eventually, you’ll see the installer asking you to pick a language:

uploading.4e448015.gif转存失败重新上传取消

Pick “English,” or whatever language you prefer, then click “Next.” Before you do anything else, however, click “Disk Utility” then “Continue.”

uploading.4e448015.gif转存失败重新上传取消

You won’t see the drive: don’t panic, High Sierra hides blank drives by default. In the menu bar, click “View” followed by “Show All Devices.”

uploading.4e448015.gif转存失败重新上传取消

You should now see your empty virtual drive in the sidebar. Click it, then click the “Erase” option.

uploading.4e448015.gif转存失败重新上传取消

Name the drive “Macintosh HD,” and leave the other two settings as-is: “Mac OS Extended Journaled” and “GUID Partition Map”. Do not create an AFS partition, because it will not work and you’ll have to start over with a new virtual hard drive. Click “Erase,” then close Disk Utility when the process is complete. You’ll be brought back to the main window.

uploading.4e448015.gif转存失败重新上传取消

Select “Reinstall macOS” then click “Continue.” You’ll be asked to agree with the terms.

uploading.4e448015.gif转存失败重新上传取消

Agree and you’ll eventually be asked to choose a hard drive; select the partition you just made.

uploading.4e448015.gif转存失败重新上传取消

The installation will begin! This might take a while, so be patient. Eventually your virtual machine will restart and take you…back to the installer. Don’t panic: this is to be expected.

Step Six: Boot Installer Stage Two From the Virtual Hard Drive

At this point the installer has copied files onto the virtual hard drive, and expects to boot from there. For whatever reason this does not work on the virtual machine, which is why you’re seeing the installer again.

 

Turn off your virtual machine and open its settings. Head to Storage, click “HighSierra.iso” in the “Storage Tree” panel, then click the CD icon at top-right and click “Remove Disk from Virtual Drive.” This will completely disconnect our installation ISO.

uploading.4e448015.gif转存失败重新上传取消

Now start up the virtual machine and you’ll see this lovely screen.

uploading.4e448015.gif转存失败重新上传取消

This is the EFI Internal Shell, and as long as you see “FS1” listed in yellow, you can use it to launch the rest of the installer. Click the virtual machine and allow it to capture you mouse and keyboard, then type fs1: and hit Enter. This will switch directories to FS1, where the rest of the installer is located.

Next we’re going to run a few commands in order to switch to the directory we need:

cd "macOS Install Data" cd "Locked Files" cd "Boot Files"

Now we can run the installer itself with the following command:

boot.efi

 

uploading.4e448015.gif转存失败重新上传取消

The installer will pick up where it left off. First you’ll see a series of text, like before, but eventually you’ll see the GUI installer come back. (Don’t worry, you only have to go through this process once.)

uploading.4e448015.gif转存失败重新上传取消

We’re getting there, just need a little bit more patience.

Step Eight: Log Into macOS High Sierra

Eventually the virtual machine will reboot again, this time into macOS High Sierra. If that doesn’t happen, try ejecting the ISO from the Virtual Machine. When High Sierra does boot, you’ll need to go through choosing your country, setting up a user, and the rest of the initial setup process.

uploading.4e448015.gif转存失败重新上传取消

Eventually, you’ll make it to the Mac desktop. Yay!

uploading.4e448015.gif转存失败重新上传取消

You can now try out any Mac software, though some functions, like FaceTime and Messages, won’t work because Apple won’t recognize your computer as a real Mac. But a lot of the basic stuff should work. Have fun!

Step Eight (Optional): Change Your Resolution

By default, your virtual machine will have a resolution of 1024×768, which is not a lot of room to work with. If you try to change the resolution from within macOS, however, you will see no option to do so. Instead, you need to enter a few commands.

Shut down your Virtual Machine by shutting down macOS: click the Apple in the menu bar, then click “Shut Down.” Next, close VirtualBox entirely (seriously, this step will not work if VirtualBox is still open!) and head back to Windows’ Command Prompt as an admin. You need to run the following two commands:

cd "C:Program FilesOracleVirtualBox"

 

VBoxManage setextradata "High Sierra" "VBoxInternal2/EfiGopMode" N

In the second command, you need to replace the N with a number from one to five, depending on what resolution you want:

  • 1 gives you a resolution of 800×600
  • 2 gives you a resolution of 1024×768
  • 3 gives you a resolution of 1280×1024
  • 4 gives you a resolution of 1440×900
  • 5 gives you a resolution of 1920×1200

Start up VirtualBox, load up your virtual machine, and it should boot to your preferred resolution!

 

RELATED: 10 VirtualBox Tricks and Advanced Features You Should Know About

From now on, you can open VirtualBox for any Mac-related testing you want to do. Again, you’ll see a lot of errors pop up during boot, but they’re fine; ignore them. Also, remember that audio won’t work, nor will things like FaceTime or iMessage, which require a real Mac. This isn’t going to be perfect, which is to be expected from an entirely unsupported setup. But it’s macOS, in a virtual machine, and that’s not bad! Be sure to check out our guide to VirtualBox’s advanced features to get the most out of your machine, too.

 

One more thing: a huge shout-out to Chad S. Samuels, without whom I could not have updated this guide for High Sierra. Thank you so much!

 

 

 

 

 

 

 

 

 

 

 

 

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值