question

MichalZurek avatar image
1 Vote"
MichalZurek asked MichalZurek answered

Windows 10 Instalation in Hyper-V VM fails

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.

8450-win10inst.png

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?





windows-10-setup
win10inst.png (22.8 KiB)
· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi, does it work in a attended setup ? just to be sure it's not an error in the unattended script

0 Votes 0 ·

It is result of unmodified setup. Just original ISO created using MCT.

0 Votes 0 ·
MichalZurek avatar image
0 Votes"
MichalZurek answered

I found an cause of issue. It was that I have set too restrictive firewall on network interface. Probably Windows API called using msoobe search for domain controller or something else over network and I have filtered it. I tested that in minimal configuration at leaset DHCP (UDP 67 out, UDP 67 in), DNS (UDP 53 out) and NetBios (TCP 137 and 138 in and out) must be allowed in these phase.

 $vmn = "giraffe"
 Add-VMNetworkAdapterExtendedAcl -Direction in -Action deny -VMName $vmn -Weight 100
 Add-VMNetworkAdapterExtendedAcl -Direction out -Action deny -VMName $vmn -Weight 100

 Add-VMNetworkAdapterExtendedAcl -Direction out -Protocol udp -RemotePort 67 -Action allow -VMName $vmn -Weight 101
 Add-VMNetworkAdapterExtendedAcl -Direction in -Protocol udp -LocalPort 68 -Action allow -VMName $vmn -Weight 101

 Add-VMNetworkAdapterExtendedAcl -Direction out -Protocol udp -RemotePort 53 -Action allow -VMName $vmn -Weight 102

 Add-VMNetworkAdapterExtendedAcl -Direction in -Protocol tcp -RemotePort 137 -LocalPort 137 -Action allow -VMName $vmn -Weight 103
 Add-VMNetworkAdapterExtendedAcl -Direction in -Protocol tcp -RemotePort 138 -LocalPort 138 -Action allow -VMName $vmn -Weight 104
 Add-VMNetworkAdapterExtendedAcl -Direction out -Protocol tcp -RemotePort 137 -LocalPort 137 -Action allow -VMName $vmn -Weight 103
 Add-VMNetworkAdapterExtendedAcl -Direction out -Protocol tcp -RemotePort 138 -LocalPort 138 -Action allow -VMName $vmn -Weight 104
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

TeemoTang-2039 avatar image
0 Votes"
TeemoTang-2039 answered MichalZurek edited

I notice that Failed to create the default account with hr=0x8007054B error appeared in setuperr.log, try the following in Hyper-V VM.


Step 1. On the error screen, press Shift + F10 to display the command prompt.

Step 2. Type the command "cd %windir%/system32/oobe/" (without quotes) and press Enter.

Step 3. Type "msoobe" next and press Enter.

Step 4. Set up an account and decent password there on the user account creation wizard that appears.

Step 5. Restart VM.

One more thing, if we want to use Education edition, the common procedure is:

Just download and install windows 10 Pro iso without any product key and activate windows after installation by going to settings. Your Windows edition will automatically change to Education.

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

It stucks on loading screen. It writes the same error to the log.

0 Votes 0 ·