Failed to create a bootable disk image file for this version of macOS.

Discussion in 'Installation and Configuration' started by DaveP10, Dec 6, 2021.

  1. AlexC1

    AlexC1 Bit Poster

    Messages:
    8

    where did you try and save it? you need to point it towards an external drive and ideally formatted in Mac OS extended
     
  2. AlexC1

    AlexC1 Bit Poster

    Messages:
    8
    I am not surprised it didn't work if it was saved on the desktop. Save it to a USB drive.
     
  3. lukas7

    lukas7

    Messages:
    1
    WORKS! Nice debugging, thanks a lot.
     
  4. BenS28

    BenS28 Bit Poster

    Messages:
    3
    For what it's worth, this issue seems to be resolved in Parallels v18, at least for me anyway.
     
    Enrico5 likes this.
  5. Enrico5

    Enrico5 Bit Poster

    Messages:
    3
    I also confirm: in version 18 the problem has been solved.
     
  6. MikeB52

    MikeB52 Bit Poster

    Messages:
    1
    What is the configuration of your machine that may have contributed to "problem solved in version 18"? I have version 18 and what I feel is a vanilla environment - Macbook Pro 2.2 GHz Quad- Core Intel Core i7
     
  7. BenS28

    BenS28 Bit Poster

    Messages:
    3
    Not sure what you mean by configuration? I've installed macOS Big Sur v11.7.1 using Parallels Desktop v18.1.0 on my 2019 16-inch MacBook Pro 2.3GHz i9, 16GB RAM running macOS Ventura 13.0.1. This is exactly the same MacBook that I was using with Parallels Desktop v17.x
     
  8. G5tube

    G5tube Bit Poster

    Messages:
    1
    Ok the script
    '/Applications/Parallels Desktop.app/Contents/Resources/repack_osx_install_app.sh'
    Needs to be adapted for older versions. For instance EL Capitan from this page:
    https://support.apple.com/en-us/HT211683
    Does not include
    /Contents/SharedSupport/InstallESD.dmg
    but
    /Contents/SharedSupport/OSInstall.mpkg
    So obviously the script is not going to work:
    Code:
    sudo /bin/bash '/Applications/Parallels Desktop.app/Contents/Resources/repack_osx_install_app.sh' repack '/Applications/Install OS X El Capitan.app' '/Users/x299/Parallels/macOS_image_file.iso' -w 
    Password:
    + set -E
    + set -o pipefail
    + export -f BREAKPOINT
    + temp_dir=
    + temp_dmg=
    + declare -a temp_dmg_mounts
    + BLOCKSIZE=512
    + ADDON_DISK_SPACE=204800
    + ADDON_DISK_SPACE_BIGSUR=3145728
    + ERR_INVALID_ARG=1
    + ERR_FILE_EXISTS=2
    + ERR_UNEXPECTED=3
    + ERR_INTERRUPTED=4
    + trap 'cleanup; exit 3' ERR
    + trap 'cleanup; exit 4' SIGHUP SIGINT SIGTERM
    + [[ 4 -lt 1 ]]
    + action=repack
    + shift
    + case "$action" in
    + do_repack '/Applications/Install OS X El Capitan.app' /Users/x299/Parallels/macOS_image_file.iso -w
    + [[ 3 -lt 2 ]]
    + local 'source_app=/Applications/Install OS X El Capitan.app'
    + local result_dmg=/Users/x299/Parallels/macOS_image_file.iso
    + shift 2
    + local overwrite=n
    + local p7z_tool=
    + getopts wz: OPT
    + case "$OPT" in
    + overwrite=y
    + getopts wz: OPT
    + [[ -L /Applications/Install OS X El Capitan.app ]]
    + [[ ! -r /Applications/Install OS X El Capitan.app ]]
    + [[ -e /Users/x299/Parallels/macOS_image_file.iso ]]
    + [[ -n '' ]]
    + [[ -f /Applications/Install OS X El Capitan.app/Contents/SharedSupport/InstallESD.dmg ]]
    + [[ -n '' ]]
    + do_repack_createinstallmedia '/Applications/Install OS X El Capitan.app' /Users/x299/Parallels/macOS_image_file.iso
    + local 'source_app=/Applications/Install OS X El Capitan.app'
    + local result_dmg=/Users/x299/Parallels/macOS_image_file.iso
    + local temp_result_dir=
    ++ mktemp -d /Users/x299/Parallels/macOS_image_file.iso.tmp.XXXXXX
    + temp_dir=/Users/x299/Parallels/macOS_image_file.iso.tmp.r52Y6C
    + local temp_img_name=macOSInstallImage
    + local temp_img_file=/Users/x299/Parallels/macOS_image_file.iso.tmp.r52Y6C/macOSInstallImage.sparsebundle
    ++ calc_file_size '/Applications/Install OS X El Capitan.app'
    ++ du -H -s '/Applications/Install OS X El Capitan.app'
    ++ awk '{print $1}'
    + local size=6312080
    + hdiutil create -sectors 6312080 -fs hfs+ -volname macOSInstallImage -type SPARSEBUNDLE /Users/x299/Parallels/macOS_image_file.iso.tmp.r52Y6C/macOSInstallImage.sparsebundle
    created: /Users/x299/Parallels/macOS_image_file.iso.tmp.r52Y6C/macOSInstallImage.sparsebundle
    + attach_dmg temp_result_dir /Users/x299/Parallels/macOS_image_file.iso.tmp.r52Y6C/macOSInstallImage.sparsebundle /Users/x299/Parallels/macOS_image_file.iso.tmp.r52Y6C -nobrowse -noverify
    + local outvar=temp_result_dir
    + local dmg_path=/Users/x299/Parallels/macOS_image_file.iso.tmp.r52Y6C/macOSInstallImage.sparsebundle
    + local mount_root=/Users/x299/Parallels/macOS_image_file.iso.tmp.r52Y6C
    + shift 3
    + local mount_path=
    + '[' -e /Users/x299/Parallels/macOS_image_file.iso.tmp.r52Y6C/macOSInstallImage.sparsebundle ']'
    + [[ -nobrowse -noverify =~ -readonly ]]
    + '[' -z '' ']'
    + for i in '{1..10}'
    ++ hdiutil attach /Users/x299/Parallels/macOS_image_file.iso.tmp.r52Y6C/macOSInstallImage.sparsebundle -mount required -mountrandom /Users/x299/Parallels/macOS_image_file.iso.tmp.r52Y6C -plist -nobrowse -noverify
    ++ grep -A1 mount-point
    ++ sed -n 's:.*<string>\(.*\)</string>.*:\1:p'
    + mount_path=/Users/x299/Parallels/macOS_image_file.iso.tmp.r52Y6C/dmg.2iurzr
    + '[' -n /Users/x299/Parallels/macOS_image_file.iso.tmp.r52Y6C/dmg.2iurzr ']'
    + temp_dmg_mounts+=("$mount_path")
    + break
    + '[' -n /Users/x299/Parallels/macOS_image_file.iso.tmp.r52Y6C/dmg.2iurzr ']'
    + eval 'temp_result_dir=$mount_path'
    ++ temp_result_dir=/Users/x299/Parallels/macOS_image_file.iso.tmp.r52Y6C/dmg.2iurzr
    ++ '/Applications/Install OS X El Capitan.app/Contents/Resources/createinstallmedia' --volume /Users/x299/Parallels/macOS_image_file.iso.tmp.r52Y6C/dmg.2iurzr --nointeraction
    ++ grep 'available at'
    ++ sed 's/.*"\(.*\)".*/\1/'
    Usage: createinstallmedia --volume <path to volume to convert> --applicationpath <path to Install OS X El Capitan.app> [--force]
    
    Arguments--volume, A path to a volume that can be unmounted and erased to create the install media.
    --applicationpath, A path to copy of the OS installer application to create the bootable media from.
    --nointeraction, Erase the disk pointed to by volume without prompting for confirmation.
    
    Example: createinstallmedia --volume /Volumes/Untitled --applicationpath "/Applications/Install OS X El Capitan.app"
    +++ cleanup
    +++ dettach_dmg_all
    +++ '[' 1 -gt 0 ']'
    +++ local idx=0
    +++ local mount_path=/Users/x299/Parallels/macOS_image_file.iso.tmp.r52Y6C/dmg.2iurzr
    +++ unset 'temp_dmg_mounts[0]'
    +++ dettach_dmg /Users/x299/Parallels/macOS_image_file.iso.tmp.r52Y6C/dmg.2iurzr
    +++ local mount_path=/Users/x299/Parallels/macOS_image_file.iso.tmp.r52Y6C/dmg.2iurzr
    +++ hdiutil detach -verbose /Users/x299/Parallels/macOS_image_file.iso.tmp.r52Y6C/dmg.2iurzr
    hdiutil: detach: processing "/Users/x299/Parallels/macOS_image_file.iso.tmp.r52Y6C/dmg.2iurzr"
    LetDIDriverSettleDown: calling IOServiceWaitQuiet...
    DI_kextWaitQuiet: about to call IOServiceWaitQuiet...
    DI_kextWaitQuiet: IOServiceWaitQuiet took 0.000002 seconds
    LetDiskImageDriverSettleDown: wait took 0.000030 seconds
    +++ (( idx=0  ))
    +++ (( idx<0  ))
    +++ '[' 0 -gt 0 ']'
    +++ [[ -d /Users/x299/Parallels/macOS_image_file.iso.tmp.r52Y6C ]]
    +++ rm -rf -- /Users/x299/Parallels/macOS_image_file.iso.tmp.r52Y6C
    +++ temp_dir=
    +++ [[ -e '' ]]
    +++ exit 3
    + temp_result_dir='"disk31" ejected.'
    ++ cleanup
    ++ dettach_dmg_all
    ++ '[' 1 -gt 0 ']'
    ++ local idx=0
    ++ local mount_path=/Users/x299/Parallels/macOS_image_file.iso.tmp.r52Y6C/dmg.2iurzr
    ++ unset 'temp_dmg_mounts[0]'
    ++ dettach_dmg /Users/x299/Parallels/macOS_image_file.iso.tmp.r52Y6C/dmg.2iurzr
    ++ local mount_path=/Users/x299/Parallels/macOS_image_file.iso.tmp.r52Y6C/dmg.2iurzr
    ++ hdiutil detach -verbose /Users/x299/Parallels/macOS_image_file.iso.tmp.r52Y6C/dmg.2iurzr
    hdiutil: detach: processing "/Users/x299/Parallels/macOS_image_file.iso.tmp.r52Y6C/dmg.2iurzr"
    hdiutil: detach: result: 2
    hdiutil: detach failed - No such file or directory
    ++ (( idx=0  ))
    ++ (( idx<0  ))
    ++ '[' 0 -gt 0 ']'
    ++ [[ -d /Users/x299/Parallels/macOS_image_file.iso.tmp.r52Y6C ]]
    ++ [[ -e '' ]]
    ++ exit 3
    
    Common Parallels support please step in to the plate and fix the script.
     

Share This Page