I try to install Window 10 (Education, but I have tried other editions and nothing changes) in Hyper-V Gen2 based VM but instalation after reboot fails with following error (it is in Czech, in English it is: Windows could not complete the installation. To install windows on this computer, restart the installation.). But as you can expect, restarting instalation does not solve anything. Installer ISO is created using MediaCreationTool1909.exe and DISM says that presented version of Windows in that ISO is 10.0.18362, ServicePack build 592 and ServicePack level 0.
I found that installer stored a log in virtual disk at C:\Windows\Panther\UnattendGC\setuperr.log with the following content
2020-05-20 19:08:07, Error [msoobe.exe] Failed to create the default account with hr=0x8007054B 2020-05-20 19:08:07, Error [msoobe.exe] TASK: End failed running task PrepareUserOOBE with hr=0x8007054B. 2020-05-20 19:08:09, Error [msoobe.exe] COMMIT: failed for plugin LocalUser Plugin with hr=0x80070490 2020-05-20 19:08:11, Error [msoobe.exe] Failed user OOBE prep task with hr=0x8007054B 2020-05-20 19:08:11, Error [msoobe.exe] Failed to run OOBE Host with hr=0x80004005 2020-05-20 19:08:11, Error [msoobe.exe] OOBE failed with hr=0x80004005 2020-05-20 19:08:11, Error [oobeldr.exe] OOBE UI failed with exit code [0x80004005] 2020-05-20 19:08:11, Error [windeploy.exe] Command [%windir%\system32\oobe\oobeldr.exe /system] failed with exit code [0x80004005] 2020-05-20 19:08:11, Error [windeploy.exe] Failure occured during online installation; cannot complete at this time [0x80004005]
I found that error 0x80004005 code means attemp to create user with invalid domain specified but have no idea whats wrong and how does msoobe creates users. Do you know any workaround how to install Windows 10?