How can I install a macOS VM Guest under VirtualBox on a Mac host?Stuck on UEFI interactive shell with Mac OS...
Knife as defense against stray dogs
Animating wave motion in water
Emojional cryptic crossword
Why are there no stars visible in cislunar space?
Was World War I a war of liberals against authoritarians?
Writing in a Christian voice
Jem'Hadar, something strange about their life expectancy
Nested Dynamic SOQL Query
How to find the largest number(s) in a list of elements, possibly non-unique?
Hot air balloons as primitive bombers
UK Tourist Visa- Enquiry
Should a narrator ever describe things based on a characters view instead of fact?
How can an organ that provides biological immortality be unable to regenerate?
Why is indicated airspeed rather than ground speed used during the takeoff roll?
Weird lines in Microsoft Word
Why didn’t Eve recognize the little cockroach as a living organism?
Is this Pascal's Matrix?
Have any astronauts/cosmonauts died in space?
Why doesn't the chatan sign the ketubah?
is this saw blade faulty?
Help with identifying unique aircraft over NE Pennsylvania
Interior of Set Notation
Why is this tree refusing to shed its dead leaves?
How can a new country break out from a developed country without war?
How can I install a macOS VM Guest under VirtualBox on a Mac host?
Stuck on UEFI interactive shell with Mac OS X High Sierra VMVirtualBox: Accessing guest Linux filesystem from host MacOSVirtualBox Host-only: guests can't talk between themselves?VirtualBox, macOS, Ubuntu guest screen flickering redVirtualBox Mac OS X High Sierra guest crashes when connecting iPhone device with USB passthroughVirtualBox: MacOS host cannot connect to guest, but guest can connect to hostCannot install VirtualBox on a Mac running macOS High Sierra (10.13.6)VirtualBox crashes on a macOS host when attempting to shutdown Ubuntu guest OSAudio not working on VirtualBox Windows 10 guest (macOS host)Mac Pro late 2013 stucked, can't install mojavehow to share folders with a windows 10 host and a mac guest?
How can I install macOS Mojave, macOS High Sierra, and macOS Yosemite as VirtualBox VM Guests on Mac hardware?
macos mac virtualbox installation
add a comment |
How can I install macOS Mojave, macOS High Sierra, and macOS Yosemite as VirtualBox VM Guests on Mac hardware?
macos mac virtualbox installation
add a comment |
How can I install macOS Mojave, macOS High Sierra, and macOS Yosemite as VirtualBox VM Guests on Mac hardware?
macos mac virtualbox installation
How can I install macOS Mojave, macOS High Sierra, and macOS Yosemite as VirtualBox VM Guests on Mac hardware?
macos mac virtualbox installation
macos mac virtualbox installation
edited Dec 30 '18 at 11:53
AndreRoberge
10812
10812
asked Aug 22 '18 at 20:13
clearlightclearlight
304313
304313
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
Here's the configuration I installed:
Late 2015 Retina iMac (probably any new enough Mac will work)
----- VirtualBox 5.2.19 (no foreseeable reason future revs of VirtualBox won't work)
--------- macOS High Sierra 10.13.6 (probably works with several macOS release versions)
First download High Sierra installer from app store. (App store app puts it into
/Applications
and launches it.
The autorun installer can be quit so that it can be converted to an ISO)You can convert the installer DMG to an ISO, using the script at the end of this answer. Some other approaches work too. You may need or want to tweak the file names or the name of the OS/Installer app depending on what OS you're trying to install, etc...
After creating the ISO, create a Virtual Machine with the following configuration settings:
OS Type: macOS 10.13 High Sierra (64-bit)
Base Memory: 4096 GB RAM
Disk Size: 32 GB disk size
Video RAM: 128 MB
2 CPUs
disable floppy
disable serial port
disable audio
From command line create the following VirtualBox extra data values for the VM.
NOTE: These seemed to be critical for me to get the installer to boot and run.
These extra data settings I found to be omitted from most or all of the Mac installation instructions that I found online. I borrowed these values from Windows VirtualBox install instructions, and modified the system product to match my iMac's (iMac17,1). Without these extra data settings, the installer failed mid-boot, infinitely looping with some error pertaining to trying to reboot MACH).
VBoxManage setextradata {vm name or ID} "VBoxInternal/Devices/efi/0/Config/DmiSystemProduct" "iMac17,1"
VBoxManage setextradata {vm name or ID} "VBoxInternal/Devices/efi/0/Config/DmiSystemVersion" "1.0"
VBoxManage setextradata {vm name or ID} "VBoxInternal/Devices/efi/0/Config/DmiBoardProduct" "Iloveapple"
VBoxManage setextradata {vm name or ID} "VBoxInternal/Devices/smc/0/Config/DeviceKey" "ourhardworkbythesewordsguardedpleasedontsteal(c)AppleComputerInc"
VBoxManage setextradata {vm name or ID} "VBoxInternal/Devices/smc/0/Config/GetKeyFromRealSMC" 1
- Point the VM to the ISO you created in step 2, and boot it.
When the recovery partition's GUI comes up (wherein you have the option to reinstall (also used for initial install)), first choose Disk Utility, and find and format (e.g. Erase), the virtual disk you created during the initial creation of the VirtualBox Guest VM. In Disk Utility, the hard disk will show up as a disk on the left. Erase/format it as Mac OS Extended Journaled.
If you don't first explicitly format the virtual disk, the macOS installer will not find any disks to install macOS on. If you haven't formatted the disk, the installer will not err out but will just sit there expecting you to choose a disk, with none listed, and no option to continue with the installation.
After the first reboot during installation, I got stuck at the UEFI shell prompt, which is obtuse and confusing for the uninitiated (i.e. I didn't know what to do about it).
The reason I got dumped in the UEFI boot shell is that macOS wasn't installed yet in the boot partition, and the boot loader doesn't automatically boot into the recovery partition if the first partition isn't valid.
To manually boot/execute code in recovery partition in order to complete the installation, do the following (credit to VirtualBox forums for this information):
- At UEFI shell prompt: Type exit
- You'll be brought into an EFI text-mode GUI.
- Select Boot Maintenance Manager and click.
- Select Boot From File and click
You should see a list populated with two cryptic looking entries (PCI bus paths)
The first is the PCI path to a boot partition that is not valid because you haven't installed macOS on it yet. After installing macOS the boot should find that partition and boot normally, without dumping you out at the UEFI shell.
The 2nd partition is the recovery partition, the one you need to boot from to do the macOS installation.
- Click the 2nd entry, you should see (and then click): macOS Install Data
- Then click: Locked Files
- And finally click: boot.efi
At that point the installer boot will continue and you should get to the point where macOS can be installed.
Bash script to convert macOS installer app downloaded from app store to ISO
#!/bin/bash
installer="/Applications/Install macOS High Sierra.app"
hdiutil create -o /tmp/HighSierra.cdr -size 5500m -layout SPUD -fs HFS+J
hdiutil attach /tmp/HighSierra.cdr.dmg -noverify -mountpoint /Volumes/install_build
sudo "$installer"/Contents/Resources/createinstallmedia --volume /Volumes/install_build
mv /tmp/HighSierra.cdr.dmg ~/Downloads/InstallSystem.dmg
hdiutil detach /Volumes/Install macOS High Sierra
hdiutil convert ~/Downloads/InstallSystem.dmg -format UDTO -o ~/Downloads/HighSierra.iso
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "3"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1351460%2fhow-can-i-install-a-macos-vm-guest-under-virtualbox-on-a-mac-host%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
Here's the configuration I installed:
Late 2015 Retina iMac (probably any new enough Mac will work)
----- VirtualBox 5.2.19 (no foreseeable reason future revs of VirtualBox won't work)
--------- macOS High Sierra 10.13.6 (probably works with several macOS release versions)
First download High Sierra installer from app store. (App store app puts it into
/Applications
and launches it.
The autorun installer can be quit so that it can be converted to an ISO)You can convert the installer DMG to an ISO, using the script at the end of this answer. Some other approaches work too. You may need or want to tweak the file names or the name of the OS/Installer app depending on what OS you're trying to install, etc...
After creating the ISO, create a Virtual Machine with the following configuration settings:
OS Type: macOS 10.13 High Sierra (64-bit)
Base Memory: 4096 GB RAM
Disk Size: 32 GB disk size
Video RAM: 128 MB
2 CPUs
disable floppy
disable serial port
disable audio
From command line create the following VirtualBox extra data values for the VM.
NOTE: These seemed to be critical for me to get the installer to boot and run.
These extra data settings I found to be omitted from most or all of the Mac installation instructions that I found online. I borrowed these values from Windows VirtualBox install instructions, and modified the system product to match my iMac's (iMac17,1). Without these extra data settings, the installer failed mid-boot, infinitely looping with some error pertaining to trying to reboot MACH).
VBoxManage setextradata {vm name or ID} "VBoxInternal/Devices/efi/0/Config/DmiSystemProduct" "iMac17,1"
VBoxManage setextradata {vm name or ID} "VBoxInternal/Devices/efi/0/Config/DmiSystemVersion" "1.0"
VBoxManage setextradata {vm name or ID} "VBoxInternal/Devices/efi/0/Config/DmiBoardProduct" "Iloveapple"
VBoxManage setextradata {vm name or ID} "VBoxInternal/Devices/smc/0/Config/DeviceKey" "ourhardworkbythesewordsguardedpleasedontsteal(c)AppleComputerInc"
VBoxManage setextradata {vm name or ID} "VBoxInternal/Devices/smc/0/Config/GetKeyFromRealSMC" 1
- Point the VM to the ISO you created in step 2, and boot it.
When the recovery partition's GUI comes up (wherein you have the option to reinstall (also used for initial install)), first choose Disk Utility, and find and format (e.g. Erase), the virtual disk you created during the initial creation of the VirtualBox Guest VM. In Disk Utility, the hard disk will show up as a disk on the left. Erase/format it as Mac OS Extended Journaled.
If you don't first explicitly format the virtual disk, the macOS installer will not find any disks to install macOS on. If you haven't formatted the disk, the installer will not err out but will just sit there expecting you to choose a disk, with none listed, and no option to continue with the installation.
After the first reboot during installation, I got stuck at the UEFI shell prompt, which is obtuse and confusing for the uninitiated (i.e. I didn't know what to do about it).
The reason I got dumped in the UEFI boot shell is that macOS wasn't installed yet in the boot partition, and the boot loader doesn't automatically boot into the recovery partition if the first partition isn't valid.
To manually boot/execute code in recovery partition in order to complete the installation, do the following (credit to VirtualBox forums for this information):
- At UEFI shell prompt: Type exit
- You'll be brought into an EFI text-mode GUI.
- Select Boot Maintenance Manager and click.
- Select Boot From File and click
You should see a list populated with two cryptic looking entries (PCI bus paths)
The first is the PCI path to a boot partition that is not valid because you haven't installed macOS on it yet. After installing macOS the boot should find that partition and boot normally, without dumping you out at the UEFI shell.
The 2nd partition is the recovery partition, the one you need to boot from to do the macOS installation.
- Click the 2nd entry, you should see (and then click): macOS Install Data
- Then click: Locked Files
- And finally click: boot.efi
At that point the installer boot will continue and you should get to the point where macOS can be installed.
Bash script to convert macOS installer app downloaded from app store to ISO
#!/bin/bash
installer="/Applications/Install macOS High Sierra.app"
hdiutil create -o /tmp/HighSierra.cdr -size 5500m -layout SPUD -fs HFS+J
hdiutil attach /tmp/HighSierra.cdr.dmg -noverify -mountpoint /Volumes/install_build
sudo "$installer"/Contents/Resources/createinstallmedia --volume /Volumes/install_build
mv /tmp/HighSierra.cdr.dmg ~/Downloads/InstallSystem.dmg
hdiutil detach /Volumes/Install macOS High Sierra
hdiutil convert ~/Downloads/InstallSystem.dmg -format UDTO -o ~/Downloads/HighSierra.iso
add a comment |
Here's the configuration I installed:
Late 2015 Retina iMac (probably any new enough Mac will work)
----- VirtualBox 5.2.19 (no foreseeable reason future revs of VirtualBox won't work)
--------- macOS High Sierra 10.13.6 (probably works with several macOS release versions)
First download High Sierra installer from app store. (App store app puts it into
/Applications
and launches it.
The autorun installer can be quit so that it can be converted to an ISO)You can convert the installer DMG to an ISO, using the script at the end of this answer. Some other approaches work too. You may need or want to tweak the file names or the name of the OS/Installer app depending on what OS you're trying to install, etc...
After creating the ISO, create a Virtual Machine with the following configuration settings:
OS Type: macOS 10.13 High Sierra (64-bit)
Base Memory: 4096 GB RAM
Disk Size: 32 GB disk size
Video RAM: 128 MB
2 CPUs
disable floppy
disable serial port
disable audio
From command line create the following VirtualBox extra data values for the VM.
NOTE: These seemed to be critical for me to get the installer to boot and run.
These extra data settings I found to be omitted from most or all of the Mac installation instructions that I found online. I borrowed these values from Windows VirtualBox install instructions, and modified the system product to match my iMac's (iMac17,1). Without these extra data settings, the installer failed mid-boot, infinitely looping with some error pertaining to trying to reboot MACH).
VBoxManage setextradata {vm name or ID} "VBoxInternal/Devices/efi/0/Config/DmiSystemProduct" "iMac17,1"
VBoxManage setextradata {vm name or ID} "VBoxInternal/Devices/efi/0/Config/DmiSystemVersion" "1.0"
VBoxManage setextradata {vm name or ID} "VBoxInternal/Devices/efi/0/Config/DmiBoardProduct" "Iloveapple"
VBoxManage setextradata {vm name or ID} "VBoxInternal/Devices/smc/0/Config/DeviceKey" "ourhardworkbythesewordsguardedpleasedontsteal(c)AppleComputerInc"
VBoxManage setextradata {vm name or ID} "VBoxInternal/Devices/smc/0/Config/GetKeyFromRealSMC" 1
- Point the VM to the ISO you created in step 2, and boot it.
When the recovery partition's GUI comes up (wherein you have the option to reinstall (also used for initial install)), first choose Disk Utility, and find and format (e.g. Erase), the virtual disk you created during the initial creation of the VirtualBox Guest VM. In Disk Utility, the hard disk will show up as a disk on the left. Erase/format it as Mac OS Extended Journaled.
If you don't first explicitly format the virtual disk, the macOS installer will not find any disks to install macOS on. If you haven't formatted the disk, the installer will not err out but will just sit there expecting you to choose a disk, with none listed, and no option to continue with the installation.
After the first reboot during installation, I got stuck at the UEFI shell prompt, which is obtuse and confusing for the uninitiated (i.e. I didn't know what to do about it).
The reason I got dumped in the UEFI boot shell is that macOS wasn't installed yet in the boot partition, and the boot loader doesn't automatically boot into the recovery partition if the first partition isn't valid.
To manually boot/execute code in recovery partition in order to complete the installation, do the following (credit to VirtualBox forums for this information):
- At UEFI shell prompt: Type exit
- You'll be brought into an EFI text-mode GUI.
- Select Boot Maintenance Manager and click.
- Select Boot From File and click
You should see a list populated with two cryptic looking entries (PCI bus paths)
The first is the PCI path to a boot partition that is not valid because you haven't installed macOS on it yet. After installing macOS the boot should find that partition and boot normally, without dumping you out at the UEFI shell.
The 2nd partition is the recovery partition, the one you need to boot from to do the macOS installation.
- Click the 2nd entry, you should see (and then click): macOS Install Data
- Then click: Locked Files
- And finally click: boot.efi
At that point the installer boot will continue and you should get to the point where macOS can be installed.
Bash script to convert macOS installer app downloaded from app store to ISO
#!/bin/bash
installer="/Applications/Install macOS High Sierra.app"
hdiutil create -o /tmp/HighSierra.cdr -size 5500m -layout SPUD -fs HFS+J
hdiutil attach /tmp/HighSierra.cdr.dmg -noverify -mountpoint /Volumes/install_build
sudo "$installer"/Contents/Resources/createinstallmedia --volume /Volumes/install_build
mv /tmp/HighSierra.cdr.dmg ~/Downloads/InstallSystem.dmg
hdiutil detach /Volumes/Install macOS High Sierra
hdiutil convert ~/Downloads/InstallSystem.dmg -format UDTO -o ~/Downloads/HighSierra.iso
add a comment |
Here's the configuration I installed:
Late 2015 Retina iMac (probably any new enough Mac will work)
----- VirtualBox 5.2.19 (no foreseeable reason future revs of VirtualBox won't work)
--------- macOS High Sierra 10.13.6 (probably works with several macOS release versions)
First download High Sierra installer from app store. (App store app puts it into
/Applications
and launches it.
The autorun installer can be quit so that it can be converted to an ISO)You can convert the installer DMG to an ISO, using the script at the end of this answer. Some other approaches work too. You may need or want to tweak the file names or the name of the OS/Installer app depending on what OS you're trying to install, etc...
After creating the ISO, create a Virtual Machine with the following configuration settings:
OS Type: macOS 10.13 High Sierra (64-bit)
Base Memory: 4096 GB RAM
Disk Size: 32 GB disk size
Video RAM: 128 MB
2 CPUs
disable floppy
disable serial port
disable audio
From command line create the following VirtualBox extra data values for the VM.
NOTE: These seemed to be critical for me to get the installer to boot and run.
These extra data settings I found to be omitted from most or all of the Mac installation instructions that I found online. I borrowed these values from Windows VirtualBox install instructions, and modified the system product to match my iMac's (iMac17,1). Without these extra data settings, the installer failed mid-boot, infinitely looping with some error pertaining to trying to reboot MACH).
VBoxManage setextradata {vm name or ID} "VBoxInternal/Devices/efi/0/Config/DmiSystemProduct" "iMac17,1"
VBoxManage setextradata {vm name or ID} "VBoxInternal/Devices/efi/0/Config/DmiSystemVersion" "1.0"
VBoxManage setextradata {vm name or ID} "VBoxInternal/Devices/efi/0/Config/DmiBoardProduct" "Iloveapple"
VBoxManage setextradata {vm name or ID} "VBoxInternal/Devices/smc/0/Config/DeviceKey" "ourhardworkbythesewordsguardedpleasedontsteal(c)AppleComputerInc"
VBoxManage setextradata {vm name or ID} "VBoxInternal/Devices/smc/0/Config/GetKeyFromRealSMC" 1
- Point the VM to the ISO you created in step 2, and boot it.
When the recovery partition's GUI comes up (wherein you have the option to reinstall (also used for initial install)), first choose Disk Utility, and find and format (e.g. Erase), the virtual disk you created during the initial creation of the VirtualBox Guest VM. In Disk Utility, the hard disk will show up as a disk on the left. Erase/format it as Mac OS Extended Journaled.
If you don't first explicitly format the virtual disk, the macOS installer will not find any disks to install macOS on. If you haven't formatted the disk, the installer will not err out but will just sit there expecting you to choose a disk, with none listed, and no option to continue with the installation.
After the first reboot during installation, I got stuck at the UEFI shell prompt, which is obtuse and confusing for the uninitiated (i.e. I didn't know what to do about it).
The reason I got dumped in the UEFI boot shell is that macOS wasn't installed yet in the boot partition, and the boot loader doesn't automatically boot into the recovery partition if the first partition isn't valid.
To manually boot/execute code in recovery partition in order to complete the installation, do the following (credit to VirtualBox forums for this information):
- At UEFI shell prompt: Type exit
- You'll be brought into an EFI text-mode GUI.
- Select Boot Maintenance Manager and click.
- Select Boot From File and click
You should see a list populated with two cryptic looking entries (PCI bus paths)
The first is the PCI path to a boot partition that is not valid because you haven't installed macOS on it yet. After installing macOS the boot should find that partition and boot normally, without dumping you out at the UEFI shell.
The 2nd partition is the recovery partition, the one you need to boot from to do the macOS installation.
- Click the 2nd entry, you should see (and then click): macOS Install Data
- Then click: Locked Files
- And finally click: boot.efi
At that point the installer boot will continue and you should get to the point where macOS can be installed.
Bash script to convert macOS installer app downloaded from app store to ISO
#!/bin/bash
installer="/Applications/Install macOS High Sierra.app"
hdiutil create -o /tmp/HighSierra.cdr -size 5500m -layout SPUD -fs HFS+J
hdiutil attach /tmp/HighSierra.cdr.dmg -noverify -mountpoint /Volumes/install_build
sudo "$installer"/Contents/Resources/createinstallmedia --volume /Volumes/install_build
mv /tmp/HighSierra.cdr.dmg ~/Downloads/InstallSystem.dmg
hdiutil detach /Volumes/Install macOS High Sierra
hdiutil convert ~/Downloads/InstallSystem.dmg -format UDTO -o ~/Downloads/HighSierra.iso
Here's the configuration I installed:
Late 2015 Retina iMac (probably any new enough Mac will work)
----- VirtualBox 5.2.19 (no foreseeable reason future revs of VirtualBox won't work)
--------- macOS High Sierra 10.13.6 (probably works with several macOS release versions)
First download High Sierra installer from app store. (App store app puts it into
/Applications
and launches it.
The autorun installer can be quit so that it can be converted to an ISO)You can convert the installer DMG to an ISO, using the script at the end of this answer. Some other approaches work too. You may need or want to tweak the file names or the name of the OS/Installer app depending on what OS you're trying to install, etc...
After creating the ISO, create a Virtual Machine with the following configuration settings:
OS Type: macOS 10.13 High Sierra (64-bit)
Base Memory: 4096 GB RAM
Disk Size: 32 GB disk size
Video RAM: 128 MB
2 CPUs
disable floppy
disable serial port
disable audio
From command line create the following VirtualBox extra data values for the VM.
NOTE: These seemed to be critical for me to get the installer to boot and run.
These extra data settings I found to be omitted from most or all of the Mac installation instructions that I found online. I borrowed these values from Windows VirtualBox install instructions, and modified the system product to match my iMac's (iMac17,1). Without these extra data settings, the installer failed mid-boot, infinitely looping with some error pertaining to trying to reboot MACH).
VBoxManage setextradata {vm name or ID} "VBoxInternal/Devices/efi/0/Config/DmiSystemProduct" "iMac17,1"
VBoxManage setextradata {vm name or ID} "VBoxInternal/Devices/efi/0/Config/DmiSystemVersion" "1.0"
VBoxManage setextradata {vm name or ID} "VBoxInternal/Devices/efi/0/Config/DmiBoardProduct" "Iloveapple"
VBoxManage setextradata {vm name or ID} "VBoxInternal/Devices/smc/0/Config/DeviceKey" "ourhardworkbythesewordsguardedpleasedontsteal(c)AppleComputerInc"
VBoxManage setextradata {vm name or ID} "VBoxInternal/Devices/smc/0/Config/GetKeyFromRealSMC" 1
- Point the VM to the ISO you created in step 2, and boot it.
When the recovery partition's GUI comes up (wherein you have the option to reinstall (also used for initial install)), first choose Disk Utility, and find and format (e.g. Erase), the virtual disk you created during the initial creation of the VirtualBox Guest VM. In Disk Utility, the hard disk will show up as a disk on the left. Erase/format it as Mac OS Extended Journaled.
If you don't first explicitly format the virtual disk, the macOS installer will not find any disks to install macOS on. If you haven't formatted the disk, the installer will not err out but will just sit there expecting you to choose a disk, with none listed, and no option to continue with the installation.
After the first reboot during installation, I got stuck at the UEFI shell prompt, which is obtuse and confusing for the uninitiated (i.e. I didn't know what to do about it).
The reason I got dumped in the UEFI boot shell is that macOS wasn't installed yet in the boot partition, and the boot loader doesn't automatically boot into the recovery partition if the first partition isn't valid.
To manually boot/execute code in recovery partition in order to complete the installation, do the following (credit to VirtualBox forums for this information):
- At UEFI shell prompt: Type exit
- You'll be brought into an EFI text-mode GUI.
- Select Boot Maintenance Manager and click.
- Select Boot From File and click
You should see a list populated with two cryptic looking entries (PCI bus paths)
The first is the PCI path to a boot partition that is not valid because you haven't installed macOS on it yet. After installing macOS the boot should find that partition and boot normally, without dumping you out at the UEFI shell.
The 2nd partition is the recovery partition, the one you need to boot from to do the macOS installation.
- Click the 2nd entry, you should see (and then click): macOS Install Data
- Then click: Locked Files
- And finally click: boot.efi
At that point the installer boot will continue and you should get to the point where macOS can be installed.
Bash script to convert macOS installer app downloaded from app store to ISO
#!/bin/bash
installer="/Applications/Install macOS High Sierra.app"
hdiutil create -o /tmp/HighSierra.cdr -size 5500m -layout SPUD -fs HFS+J
hdiutil attach /tmp/HighSierra.cdr.dmg -noverify -mountpoint /Volumes/install_build
sudo "$installer"/Contents/Resources/createinstallmedia --volume /Volumes/install_build
mv /tmp/HighSierra.cdr.dmg ~/Downloads/InstallSystem.dmg
hdiutil detach /Volumes/Install macOS High Sierra
hdiutil convert ~/Downloads/InstallSystem.dmg -format UDTO -o ~/Downloads/HighSierra.iso
edited 6 mins ago
answered Aug 22 '18 at 20:13
clearlightclearlight
304313
304313
add a comment |
add a comment |
Thanks for contributing an answer to Super User!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1351460%2fhow-can-i-install-a-macos-vm-guest-under-virtualbox-on-a-mac-host%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown