Open MATEUSZROGALSKI opened 2 years ago
No installation media is given to the VM. If you mean the virtual machine's own virtual disk, that is supposed to be ejected by the script, else the VM cannot start (virtual disk is in use) and the rest of the script would then be unable to continue.
What does the script actually show when you run it?
What I meant was that there is a property that points to the ISO image which is then mounted as a virtual drive ( CD/DVD ). This image was never unmounted/ejected by just running the script so I had to manually eject it.
This caused, as you mentioned, a boot freeze.
EDIT: the script shows no errors and just by the looks of the output everything was called properly. My guess ( might be totally wrong though ) is that if it supposed to unmount the ISO image then maybe some property name is misspelled or just the function is never called ( commented maybe ). I havent got time yet to investigate so that's just a rough guess.
The script does not automatically "ejects" installation media from the virtual machine and because of that the machine freezes on boot. Tried with different configuration properties both with and without ejecting installation media and results are pointing that virtually inserted media drive caused this issue. I do not know shit about PowerShell or Hyper-V but will try to add another function to remove media drive after successful OS installation.