Installing Monterey as Guest with Ventura Host?

Discussion in 'macOS Virtual Machine' started by Mile5Teg, Aug 11, 2022.

  1. Mile5Teg

    Mile5Teg Bit poster

    Messages:
    6
    How would I install Monterey as a guest OS with a Mac running the Ventura beta (and PD 17)? The option to install from the recovery disk only allows you to install Ventura. I created a bootable USB but Parallels didn't recognize it. I downloaded the "Install Monterey.app" but Parallels says it couldn't create a bootable image from it.
     
  2. MikeyH

    MikeyH Hunter

    Messages:
    102
    Best Answer
    There is a fix in PD18 for Failed to create bootable disk image and for Ventura you probably want to be using PD18.

    My PD17 workaround requires editing:
    /Applications/Parallels Desktop.app/Contents/Resources/repack_osx_install_app.sh:attach_dmg:67

    Code:
       output="$(hdiutil attach "$dmg_path" -nomount -plist "$@")"
       mount_path="$(echo $output | grep -A1 "mount-point" | sed -n 's:.*<string>\(.*\)</string>.*:\1:p' || true)"
       if [ -z "$mount_path" ]; then
           dev_entry="$(echo $output | grep -A1 "GUID_partition_scheme" | sed -n 's:.*<string>/dev/\(disk[0-9]*\)</string>.*:\1:p' || true)"
           if [ -n "$dev_entry" ]; then
               hdiutil detach $dev_entry
           fi
           for i in {1..10}; do
               mount_path="$(hdiutil attach "$dmg_path" -mount required -mountrandom "$mount_root" -plist "$@" | grep -A1 "mount-point" | sed -n 's:.*<string>\(.*\)</string>.*:\1:p' || true)"
               if [ -n "$mount_path" ]; then
                   temp_dmg_mounts+=("$mount_path")
                   break
               fi
               sleep 3
           done
       fi
    
     
    Mile5Teg likes this.
  3. Mile5Teg

    Mile5Teg Bit poster

    Messages:
    6
    Thank you so much.
     

Share This Page