Windows server 2012 R2 not booting

Our network adapter configuration recently change on the VM and all of a sudden the VM refuses to boot. We are using HyperV with windows server 2012 R2 as its host operation system.

I have attached the screenshot of the error. I will be grateful if someone can assist.
Error message status:0xc0000225
Info: the operating system coundn't be loaded the registry file is missing or contains errors
Thank you
error.png
AtourayAsked:
Who is Participating?
 
AtourayAuthor Commented:
Restoring the virtual machine was not possible because there was no backup. What we did was to attach another hard drive to the VM and installed another OS. After successfully installing the OS we were able to recover our data from another drive which wasn't booting. The server was not fully intact but the data was recovered.
0
 
Sajid Shaik MSr. System AdminCommented:
did you tried boot disabling the network adopter... ?

are you using the Hyper-V ?
0
 
bigeven2002Commented:
Hello,
Since the error pertains to the registry file missing or being corrupt, I found some steps online that pertain to Windows 7 but may work for Server 2012 as well.  Of course, try these steps at your own risk.

Here is the source link but the steps are posted below.  But use the link to see screenshots and more detail.

The following must be carried out exactly as stated here. Any deviation or change in output can further damage the Windows installation and require you to Clean Re-Install.

1. First, access the System Recovery Options (press F8 during POST)
2. Next, open a command prompt.
3. Check each drive's layout to find the Windows directory.
4. Change directories to the <drive letter>:\Windows\System32\ directory. In the below case, the drive letter was D:, so the result was the following command:
cd D:\Windows\System32

Open in new window

5. Copy your config directory to a backup in case the next steps do not work.
D:\Windows\System32>mkdir configBackup
D:\Windows\System32>copy config configBackup

Open in new window

6. Change directories to the config\RegBack directory:
cd config\RegBack

Open in new window

7. Type the following command to see the directory contents:
dir

Open in new window

If there are any size 0 files, do not continue.
8. Copy the files from the RegBack directory to the previous directory.
0
Improve Your Query Performance Tuning

In this FREE six-day email course, you'll learn from Janis Griffin, Database Performance Evangelist. She'll teach 12 steps that you can use to optimize your queries as much as possible and see measurable results in your work. Get started today!

 
AtourayAuthor Commented:
@Sajid, we disabled the adapter but no changes.
@bigeven2002 I am not getting the recovery option after pressing the f8 button
0
 
Cliff GaliherCommented:
Changing the network config of a VM would not cause what you are seeing. Correlation is not always causation. Restoring the VM from backup is the best course forward for that kind of corruption.
0
 
bigeven2002Commented:
It might be named differently for server 2012, I will check this evening.
0
 
bigeven2002Commented:
Ok I see what you mean with system recovery options not being present.  In the F8 menu, the last known good configuration option is present so you can try that.  Also, will safe mode boot?

Server 2012 R2 F8 Screen
0
 
AtourayAuthor Commented:
I don't have that option neither screenshot.png
0
 
bigeven2002Commented:
That's odd, this is new to me, I wonder why our editions differ.

What about safe mode?  Does that boot?
0
 
AtourayAuthor Commented:
No safe mode does not boot. Takes me back to the same error
0
 
bigeven2002Commented:
I see.  Ok going back to what Cliff said, do you have a backup you can restore from?  Did you by any chance take a snapshot before the network adapter configuration change?

Is it possible to load the Server 2012 R2 setup disc to see if you can run a repair from there?

I found an article that shows some steps for a few methods with this procedure.  The steps below were taken from this  page.

Repairing Windows 2012 R2 Startup

Method 1:
===============
1. Put the Windows Server 2012 R2 installation disc into the disc drive, and then start the computer.
2. Press a key when the message indicating “Press any key to boot from CD or DVD …”. appears.
3. Select a language, a time, a currency, and a keyboard or another input method, and then click Next.
4. Click Repair your computer.
5. Click the operating system that you want to repair, and then click Next.
6. In the System Recovery Options dialog box, click Command Prompt.
7. Type sfc /scannow, and then press ENTER.

Method 2:
===============
1. Put the Windows Server 2012 R2 installation disc in the disc drive, and then start the computer.
2. Press any key when the message indicating “Press any key to boot from CD or DVD …”. appears.
3. Select a language, time, currency, and a keyboard or another input method. Then click Next.
4. Click Repair your computer.
5. Click the operating system that you want to repair, and then click Next.
6. In the System Recovery Options dialog box, click Command Prompt.
7. Type Bootrec /RebuildBcd, and then press ENTER.

Method 3:
===============
1. Put the Windows Server 2012 R2 installation disc into the disc drive, and then start the computer.
2. Press a key when the message indicating “Press any key to boot from CD or DVD …”. appears.
3. Select a language, a time, a currency, and a keyboard or another input method, and then click Next.
4. Click Repair your computer.
5. Click the operating system that you want to repair, and then click Next.
6. In the System Recovery Options dialog box, click Command Prompt.
7. Type BOOTREC /FIXMBR, and then press ENTER.
8. Type BOOTREC /FIXBOOT, and then press ENTER.
9. Type Drive:\boot\Bootsect.exe /NT60 All, and then press ENTER.

Note: In this command, Drive is the drive where the Windows Server 2012 R2 installation media is located.
1
 
AtourayAuthor Commented:
I have tried all 3 methods but none worked so far
0
 
bigeven2002Commented:
I see, well I am out of ideas, I think the only solution is to restore from backup or contact Microsoft.  Sorry i couldn't be of more help.
0
 
AtourayAuthor Commented:
I was able to recover my data using my method.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.