Quantcast
Channel: VMware Communities : All Content - All Communities
Viewing all articles
Browse latest Browse all 175326

Using the Recovery Environment (Recovery HD) in an OS X or macOS Virtual Machine

$
0
0

This document provides instructions for accessing and using the Recovery Environment ("Recovery HD") in an OS X virtual machine running inside VMware Fusion or inside ESXi on Apple-branded hardware.

 

Launching the Recovery Environment

 

The fastest way to launch the Recovery Environment is using the ⌘R key combination inside the virtual machine, just like you would on a physical machine.  It can take some practice to use the key combination in a virtual machine, though, since you can't hold the keys down before you power on the VM like you can on a physical Mac.  Beginning with the VM powered off, the steps are as follows:

 

1. Power on the virtual machine.

2. Quickly, in the blank black window or at the VMware splash screen, click inside the virtual machine window so that the mouse pointer disappears.  Now your keystrokes will go into the virtual machine.

3. Quickly, before the Apple logo appears, press and hold the Command (⌘) key and the R key together.

4. Once you see the Apple logo appear, release the keys.

 

If you completed steps 1 through 3 quickly enough, the virtual machine will boot into the Recovery Environment.

 

MountainLionRecoveryEnvironment.png

 

Making it a little easier...

 

If you can't press ⌘R key combination quickly enough, you can add a delay to the startup process.  Edit your VM's configuration file (Fusion instructions) to add

 

   bios.bootDelay = "5000"

 

to add a five-second delay in which to complete steps 2 and 3 above.  (Adjust the number as necessary – It's in milliseconds.)

 

Another neat/hacky way if things go too quickly...

 

1. From Fusion's Virtual Machine menu, choose Power On To Firmware, and wait for the blue Boot Manager to appear.

2. Click inside the virtual machine window.

3. With Boot normally still selected, press and hold Command+R, then, while continuing to hold those keys, press (and release) the Enter key.

4. Once you see the Apple logo appear, release the Command and R keys.

 

This technique takes advantage of the happy coincidence that the macOS bootloader looks for the Command+R keys when it starts, but the EFI Boot Manager menu completely ignores the Command and R keys, which makes it easy to ensure that the keys are held down in time for the macOS bootloader to "see" them.

 

Using the Recovery Environment

 

Once you're in the OS X Recovery Environment, use the available tools in the same way as you would on a physical Mac.  Refer to Apple's documentation for guidance.

 

Note that Time Machine backups might not be restorable in VMs created in older versions of VMware Fusion or vSphere – The error message in this situation reads: "You can't restore this backup because it was created by a different model of Mac".  As of Fusion 6, you can add

 

   board-id.reflectHost = "TRUE"

 

to your older VMs' configuration files to address the issue.  This option is now automatically added for all OS X virtual machines created by Fusion 6 and newer.

 

Internet Recovery

 

Recent Mac hardware allows you to boot the host directly from Apple's servers, even if the hard disk drive is completely blank.  This feature is not supported in a VMware virtual machine.


Viewing all articles
Browse latest Browse all 175326

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>