geerlingguy / macos-virtualbox-vm

Instructions and script to help you create a VirtualBox VM running macOS.
MIT License
2.55k stars 314 forks source link

hdiutil: attach failed - No such file or directory (Big Sur does not have InstallESD.dmg) #85

Closed RichardBronosky closed 2 years ago

RichardBronosky commented 2 years ago
% ./macos-virtualbox-vm/prepare-iso.sh

Mount the installer image
--------------------------------------------------------------------------
$ hdiutil attach /Applications/Install macOS Big Sur.app/Contents/SharedSupport/InstallESD.dmg -noverify -nobrowse -mountpoint /Volumes/install_app
hdiutil: attach failed - No such file or directory

This is not the same cause as https://github.com/geerlingguy/macos-virtualbox-vm/issues/64

% find /Applications/Install*/Contents/SharedSupport -ls
15070751        0 drwxr-xr-x    3 root             wheel                  96 Aug 25 14:17 /Applications/Install macOS Big Sur.app/Contents/SharedSupport
15070752 24298672 -rw-r--r--    1 root             wheel            12440916552 Aug 25 14:22 /Applications/Install macOS Big Sur.app/Contents/SharedSupport/SharedSupport.dmg

% find /Applications/Install* -iname '*dmg' -ls
15070752 24298672 -rw-r--r--    1 root             wheel            12440916552 Aug 25 14:22 /Applications/Install macOS Big Sur.app/Contents/SharedSupport/SharedSupport.dmg