
The one you added previously, not the one where you are installing macOS.
Remove the installer hard disk from the machine. Once it finishes, the machine automatically rebooted. Select "Install macOS" and click "Continue". Once it finishes, Quit the "Disk Utility". Verify that "Mac OS Extended (Journaled)" is the format selected and click "Erase". Select the disk where you are going to install macOS (probably the same you created when creating the machine). Select "Disk Utility" and click "Continue". Wait until you get to the screen where you have to choose the language. vdi file you created using VBoxManage convertfromraw. When asked click on "Choose existing disk" and select the. Select "Storage" and click to add a hard disk. Once the machine is created, go to the "Settings".
Create a new machine of Type "Mac OS X" and Version "macOS 10.13 High Sierra (64-bit)" (probably others work, but I just tried with that one).
Copy the file to some device which you can get access from Ubuntu (external drive or whatever works for you). Once the previous command finished, continue with the following steps. Go to the storage tab and click on the Empty box, then click on the CD icon, and Now. If you changed the value of the "Name" field in the step where you changed the "Size", then instead of "Untitled" the image probably appears with that name you entered. Lets add the macOS 10.15.3 Cataina ISO file to the Virtual machine. Run sudo /Applications/Install\ macOS\ High\ Sierra.app/Contents/Resources/createinstallmedia -volume /Volumes/Untitled. If the image is not mounted automatically, double-click the file you just created to do it. In the "Size" field, enter 13 GB and save it wherever you want.
Click on "File" > "New Image" > "Blank image.". If the High Sierra Installer starts, quit it. On macOS, download the High Sierra installer (even if you have Mojave installed):. #HOW TO INSTALL MAC OS DMG ON VIRTUAL BOX HOW TO#
But if you are curios how to do everything manually to install High Sierra, then this guide may be useful.Īfter reading a few articles I ended up with these steps: There is already a script which installs Mojave in a virtual machine here. Important: I'm writing this when the last version of macOS (and the one I have installed) is Mojave.