Boot from a Windows Server 2012 R2 ISO or DVD. Select your language and click "Repair your computer" in the bottom-left corner.
Sometimes the BCD store is corrupted. Rename it and rebuild: windows server 2012 r2 boot repair
Disable dynamic memory or integration services temporarily, as these can cause boot loops. Boot from a Windows Server 2012 R2 ISO or DVD