question

Laurens9259 avatar image
0 Votes"
Laurens9259 asked Laurens9259 answered

Hyper-v orphaned replica Cannot load a virtual machine configuration: Unspecified error (0x80004005). (Virtual machine ID B3992825-272F-40A2-9B82-6965AEF78863) in data.vmcx

Recently after a hard reboot Hyper-V Manager started without showing some of the target replica's.

a. I tried to reinitiate them from the source server, however this gave the dreaded 0x80004005.
b. I followed some of the online articles stating to remove the replica from the target server on C:\ProgramData\Microsoft\Windows\Hyper-V sub folders and other drives. c. Rebooted the target machine, in the log it now states Cannot load a virtual machine configuration: Unspecified error (0x80004005). (Virtual machine ID B3992825-272F-40A2-9B82-6965AEF78863)
d. double checked if no files were lingering
e. Retried to replicate from source server, same issue
f. Opened on the target server C:\ProgramData\Microsoft\Windows\Hyper-V\data.vmcx with notepad see that in the file there are references to B3992825-272F-40A2-9B82-6965AEF78863
g. used powershell Remove-VMReplication *
h. Reopened on the target server C:\ProgramData\Microsoft\Windows\Hyper-V\data.vmcx with notepad see that in the file there are references to B3992825-272F-40A2-9B82-6965AEF78863

Please help

windows-server-hyper-v
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.

XiaoweiHe-MSFT avatar image
0 Votes"
XiaoweiHe-MSFT answered

Hi,

May I know if the VM can still run normally on the source server?

To fix this, would you try copying the configuration file (.vmcx) on the source server to the replica host and see if it can be fixed?

If not, probably the file is corrupted due to the hard reboot.

To do a quick fix in this case, I suggest that you recreate the VM with the .vhdx file on the host, then recreate the replication relationship. This way you only need to reset the configuration file of the VM, and the production environment inside the VM would remain untouched.

Thanks for your time!
Best Regards,
Anne


If the Answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

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.

Laurens9259 avatar image
0 Votes"
Laurens9259 answered Laurens9259 edited

Hi Anne,

Thanks for the answer. Copying the .vmcx file to the target server changes the error message on start to:

The description for Event ID 16300 from source Microsoft-Windows-Hyper-V-VMMS cannot be found. Either the component that raises this event is not installed on your local computer or the installation is corrupted. You can install or repair the component on the local computer.

If the event originated on another computer, the display information had to be saved with the event.

The following information was included with the event:

B3992825-272F-40A2-9B82-6965AEF78863
%%2147942403
0x80070003

The locale specific resource for the desired message is not present


I think the 0x80070003 means that the files cannot be found. Any suggestions apart from copying the source files to the replica server?

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.

XiaoweiHe-MSFT avatar image
0 Votes"
XiaoweiHe-MSFT answered

Hi,

Thanks for your feedback.

If the first method doesn't work, would you please try the second method in the first reply?

We may try to recreate the VM with the VHDX file of the VM, so the configuration file of the VM will be recreated, then we recreate the replication between the servers.

Thanks for your time!
Best Regards,
Anne


If the Answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

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.

Laurens9259 avatar image
0 Votes"
Laurens9259 answered

Thanks for helping.

The guest on the source server is working, so how would I recreate the replica version on the replica server?

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.

XiaoweiHe-MSFT avatar image
0 Votes"
XiaoweiHe-MSFT answered

Hi,

To use the VHDX file to recreate a VM, we may try the following steps:

  1. Copy the VHDX file of the VM.

  2. Then create a new VM in Hyper V manager, rename with a different VM name, in the following step, select the copied VHDX of the VM:


83977-image.png

  1. Then start the recreate VM, check if it could work well as the original one, if yes, create the VM replication to the replica server. After all things set well, we may delete the old VM and use the new create VM.

Thanks for your time!
Best Regards,
Anne


If the Answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.



image.png (41.2 KiB)
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.

Laurens9259 avatar image
0 Votes"
Laurens9259 answered XiaoweiHe-MSFT commented

sorry I made a typo in my second post. I wrote vhdx instead of vmcx. So when I copied the vmcx to the replica server, when the replica server starts it produces the error:

The description for Event ID 16300 from source Microsoft-Windows-Hyper-V-VMMS cannot be found. Either the component that raises this event is not installed on your local computer or the installation is corrupted. You can install or repair the component on the local computer.

If the event originated on another computer, the display information had to be saved with the event.

The following information was included with the event:

B3992825-272F-40A2-9B82-6965AEF78863
%%2147942403
0x80070003

The locale specific resource for the desired message is not present


I think the 0x80070003 means that the files cannot be found.

By the way VM does not show in the Hyper-V Manager on the replica server or in powershell

· 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.

Hi,

That's OK, please try to second method, check if it could work.

Best Regards,
Anne

0 Votes 0 ·
Laurens9259 avatar image
0 Votes"
Laurens9259 answered

When you write:

"To do a quick fix in this case, I suggest that you recreate the VM with the .vhdx file on the host, then recreate the replication relationship. This way you only need to reset the configuration file of the VM, and the production environment inside the VM would remain untouched."

I need to recreate the VM on the target / replica server by creating a new machine and adding the .vhdx file as disk?

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.

Laurens9259 avatar image
0 Votes"
Laurens9259 answered

So on the replica target host I recreated the vm guest by creating a vm through the Hyper-V Manager with the same name and attaching the boot drive.

The following information was included with the event:

BC639C8F-2C92-446B-985A-F47A7A5FEC7B
%%2147942403
0x80070003

The locale specific resource for the desired message is not present

If the source guest has multiple drives, do all drives need to be present?

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.

Laurens9259 avatar image
0 Votes"
Laurens9259 answered

Restored the replica files from an old backup on the replica server. The VM guests reappeared in the Hyper-V Manager. Removed them with the Hyper-V Manager. Reinitiated the replication process from the source server. Every is now working fine. Thank you very much Microsoft for changing to our XML files to binary files. Why the hell would you use xml, json or ini like everyone else does. The person who made this decision needs to be kicked out.

Thanks everyone for the help.

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.