Hello Yebubbleman,Are you trying to make a bootable USB? Or are you trying to make an ISO from a bootable macOS install drive to then present to a Windows guest OS as a mounted disk?
If the former:
...then you're over-complicating this by a ton. Just:
(a) download the lastest version of the "Install macOS Ventura" app either from the App Store/Software Update function, from Mr.Macintosh's Site (which links to Apple's CDN), or using the softwareupdate command with the fetchfullinstaller option (though, I find that the softwareupdate command can be hit and miss with this; Apple keeps doing things to break it on their end.
and then
(b) Run the createinstallmedia command from within the downloaded "Install macOS Ventura" app while targeting an empty GPT-schemed macOS Extended (Journaled) volume
If the latter:
...then use whatever virtualization program to present the USB drive to the guest operating system and, if your guest OS knows what to do with those file systems, they'll mount as though local. Making an ISO from the USB drive to then present to the guest OS is added work and will still get you the exact same result as presenting the USB drive to the guest.
Furthermore, I'm not sure what you mean by
Why would you want to install macOS 13.4.1 on a pre-existing Windows VM? Even if you're trying to do nested virtualization (which I'm pretty sure isn't possible on a Mac), you're not going to have an easy time getting a Mac VM to run on a Windows hypervisor. If you're trying to create a Mac VM, then you should just create that VM from scratch on whatever hypervisor app you're using.
Also, worth pointing out that this is a night-and-day different process between Intel and Apple Silicon Macs.
I needed to create a new VM using Parallels, on a Mac.
I was trying to download an iso for Ventura 13.4.1, since an iso is needed by Paralles to do this.
I used the "createinstallmedia command"
When I tried that using terminal, this message appeared:
This tool must be run as root.
So I logged in as Root.
But Terminal was unable to execute the command.
The same message appeared.
Here is the Terminal output:
Last login: Sun Jul 9 04:31:28 on ttys001
/Applications/Install\ macOS\ Ventura.app/Contents/Resources/createinstallmedia ; exit;
p@ps-MacBook-Pro ~ % /Applications/Install\ macOS\ Ventura.app/Contents/Resources/createinstallmedia ; exit;
Usage: createinstallmedia --volume <path to volume to convert>
Arguments
--volume, A path to a volume that can be unmounted and erased to create the install media.
--nointeraction, Erase the disk pointed to by volume without prompting for confirmation.
--downloadassets, Download on-demand assets that may be required for installation.
Example: createinstallmedia --volume /Volumes/Untitled
This tool must be run as root.
Saving session...
...copying shared history...
...saving history...truncating history files...
...completed.
[Process completed]
Do you have any ideas of how to overcome this problem?
Thanks.
Kind regards