In-place Upgrade Azure VM withe message 0x8007000D - 0x20006 The installation failed in the SAFE_OS phase with an error during Replicate_OC operation

AdamGilbert-4210 0 Reputation points
2023-02-22T07:22:33.17+00:00

HI Folks,

I'm attempting to upgrade an Azure WIndows Server 2016 VM to Server 2022 following the steps in the articlet

https://learn.microsoft.com/en-us/azure/virtual-machines/windows-in-place-upgrade?tryIt=true&source=docs#code-try-0

Upgrade fails with message: "0x8007000D - 0x20006 The installation failed in the SAFE_OS phase with an error during Replicate_OC operation"

C: drive has over 150 GB of free space. It is also up to date with all MS patches.

I have tried the following:

1.Use Windows Update Troubleshooter.

open Settings ,Go to Update & Security > Troubleshoot

In the right pane, select Windows Update and click Run the troubleshooter.

User's image

2.Reset Windows Update Components.

Press Windows + R to invoke Run window.

Input cmd and press Enter to run Command Prompt with administrator.

Type the following command and hit Enter key after each to stop the Windows Update components,

net stop wuauserv

net stop cryptsvc

net stop bits

net stop msiserver

Now, you need to rename SoftwareDistribution and Catroot2 folders.

Type the following command line and press Enter after each.

ren C:\Windows\SoftwareDistribution SoftwareDistribution.old

ren C:\Windows\System32\catroot2 Catroot2.old

After renaming the folders, restarted the involved components mentioned above. Enter the following command. Again, do not forget to press Enter after each command.

net start wuauserv

net start cryptsvc

net start bits

net start msiserver

5.Clear Windows Update Cache.

Sometimes, the cached Windows Update files might be corrupted or incomplete, which could prevent Windows update from installing and cause 0x8007001F - 0x20006 error.

In this case, you need to clear your Windows update cache, and try downloading and installing updates again.

You need to delete $Windows.~BT folder in File Explorer.

6.Run Windows Updates in Clean Boot.

Next, choose to hide all Microsoft services box.

Then, click the "Disable All" button.

Next, open the Startup tab and click Open Task Manager.

In the Startup tab, select each item and click Disable.

Close the task manager.

In the "System Configuration" window, click "OK" and restart your PC.

Regards,

Adam

Windows for business | Windows Server | User experience | Other
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Limitless Technology 44,776 Reputation points
    2023-02-23T10:25:12.2166667+00:00

    You can try the following additional steps:

    Check the system requirements for upgrading to Windows Server 2022, such as the minimum hardware requirements, supported virtualization technologies, and processor architecture. Make sure that your Azure VM meets all the requirements.

    Disable any antivirus or security software temporarily to eliminate the possibility of interference during the upgrade process.

    Try to upgrade the Azure VM using an ISO file instead of the online upgrade method. You can download the Windows Server 2022 ISO file from the Microsoft website and attach it to the Azure VM.

    Check the setuperr.log and setupact.log files in the %windir%\Panther directory for any specific error messages related to the upgrade process. These log files may provide more details about the issue and help you identify the root cause.

    If the issue still persists, you may consider creating a new Azure VM with Windows Server 2022 and then migrating your data and applications to the new VM. This approach may take longer than an in-place upgrade, but it may be a more reliable and efficient way to upgrade your VM.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.