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