hdiutil create -o /tmp/Mojave.cdr -size 8000m -layout SPUD -fs JHFS+
hdiutil attach /tmp/Mojave.cdr.dmg -noverify -nobrowse -mountpoint /Volumes/installer_goes_here
asr restore -source /Applications/Install macOS Mojave.app/Contents/SharedSupport/BaseSystem.dmg -target /Volumes/installer_goes_here -noprompt -noverify -erase
hdiutil detach /Volumes/OS X Base System
ls /Volumes
and see if it’s there, renamed).hdiutil convert /tmp/Mojave.cdr.dmg -format UDTO -o ~/Desktop/Mojave.iso
VBoxManage
to 'C:Program FilesOracleVirtualBoxVBoxManage.exe'
(if you didn’t change your Virtualbox install location).