I wanted to know how to get an ISO file from MacOS Mojave to install in a virtual machine. I read, you just have to load the update from the Mac App Store and cancel the installation. And then somehow you have a program in the Finder to continue the update and then you have to click Show Package Contents and then enter any Terminal Command (see: https://www.macwelt.de/a/macos-10-14-mojave-in-virtuellen-umgebungen-betreiben,3439928).
Question: Does interrupting the MacOS update risks or can damage the laptop (see: https://www.macwelt.de/news/3-Update-unterbrechen-3086720.html)
A system update of ISOs at Apple usually ends in a crash.
Get the same Mojave ISO from the net.
I would proceed like this: First you create a bootable USB stick with https://diskmakerx.com. Then you go to the hard disk utility. App and create with a secondary click on the USB stick an image of it and select format DVD / CD Master. You can rename the suffix .cdr to .iso that's the same. So that the file does not become huge, it is advisable to partition the USB stick before creating the image.
Mojave is not an update.
You do not break the installation in the middle, but finish it before the first cut of the spade. Therefore, the procedure has no risk for the Mac. (If you want to have the OS Installer on an external medium, you proceed in a similar way: download, finish installation, use appropriate terminal command.)
Whether Mojave runs error-free in a VM, I dare to doubt.