Posted on 10-08-2018 10:53 PM
Hi all,
I have a macOS running within a VM. I would like to get to the recovery partition of this, however it doesn't respond to holding down Command+R, or Option key during start up. I think the VM session doesn't know it's a macOS yet.
So, does anyone if it is possible to ask the macOS to boot onto recovery partition? Without the keyboard holding onto anything.
Posted on 10-09-2018 05:14 AM
This works on normal devices so I can only assume it will work in a VM, hope it helps.
#!/bin/sh
sudo nvram "recovery-boot-mode=unused"
# reboot via shell or gui
sudo reboot