locked
Installing Hyper-V role fails on Windows Server 2012 R2 RRS feed

  • Question

  • Hi,

    I am trying to install the Hyper-V role on our company's server (with Windows 2012 R2 installed with Standard license).

    But for some reason after the progress bar has reached the end - and it does its required restart then after it starts up again, it says that it was unable to install it and then rolls back.

    When I checked the Event Viewer logs then I saw an error such as this:

    "Update Microsoft-Hyper-V-Offline of package Microsoft-Hyper-V-ServerEdition-Package failed to be turned on. Status: 0x800f0922.

    I feel like I should add to this that we have been failing some Windows Updates in a similar way, it restarts and then rolls back. I don't know if those can be connected somehow.. But it feels to me like there could be a connection, perhaps?
    I tried installing it through the Graphical interface the first time and then saw that somebody suggested trying to install it through PowerShell, but unfortunately that made no difference.

    Also, the server has other roles and services running as well - we are trying to run only one Virtual machine on top of all that. I tested a similar setup on a random desktop computer and I had no problems getting the Hyper-V role installed. The one that I tested didn't have as many features installed, but I tried to make the conditions similar.

    Kind regards,

    Rauno S.

    Thursday, December 22, 2016 6:21 PM

Answers

  • Hi Rauno,

    The issue seems really strange.

    I suppose maybe a reinstallation is easier than troubleshooting.

    Besides, I also suggest you consult the manufacturer to see if the device is supported.

    Best Regards,

    Leo


    Please remember to mark the replies as answers if they help.
    If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.

    • Marked as answer by Rauno S Thursday, January 5, 2017 11:52 AM
    Thursday, December 29, 2016 2:01 AM

All replies

  • you may need to try an SFC scan if there are inconsistencies with the packages

    disable anti-virus

    move the server's AD computer object into the Computers container to avoid conflicting GPOs and try again

    but this does sound like a windows update installation issue which has a whole different troubleshooting aspect

    • Proposed as answer by knebelkr Tuesday, April 24, 2018 8:30 PM
    Thursday, December 22, 2016 7:01 PM
  • If you are running 2012 R2 on an older server, you may have to go into the BIOS and set the pre-requisites - hardware virtualization and data execution prevention.  Some of the older machines also even needed to be powered off, not just reset, for the settings to take.  And just to make that more fun, different vendors have different names for those settings.

    . : | : . : | : . tim

    • Proposed as answer by Delian Mc Tuesday, April 7, 2020 1:20 AM
    Thursday, December 22, 2016 8:19 PM
  • Open C:\Windows\Logs\CBS\CBS.log and search for 0x800f0922. You might get more information on what's wrong.

    Eric Siron
    Altaro Hyper-V Blog
    I am an independent contributor, not an Altaro employee. I accept all responsibility for the content of my posts. You accept all responsibility for any actions that you take based on the content of my posts.

    Thursday, December 22, 2016 9:41 PM
  • Thank You Armin, Tim and Eric for Your responses! I will respond here one by one:

    1) Armin - I will try that. If this is a Windows Update issue - how bad can things be?

    2) Tim - I am aware of that and fortunately it is not an old machine! I doubt that this is the issue but it's worth checking of course - might still be disabled by default I guess! However I am working on it remotely from a different country so I would have to let somebody else do it.

    3) Eric - I will check the log and see if I can find some useful info!

    I will post here as soon as I've tried these methods!


    Rauno S.

    Friday, December 23, 2016 6:35 AM
  • Hello,

    I used the bcdedit tool to see if the hypervisor was Enabled or Disabled - it was indeed disabled and I enabled it and made sure later with bcdedit again that it is indeed enabled - it was. 

    But when trying to install Hyper-V again, I still have the same issue. I have no digged in the %WINDIR%\Logs\CBS\CBS.log file as well as Eric suggested and I found this:

    "

    2016-12-23 11:47:10, Info                  CBS    Progress: UI message updated. Operation type: Foundation. Stage: 1 out of 1. Percent progress: 98.
    2016-12-23 11:47:10, Info                  CBS    Winlogon: TiCoreOnCreateSession has been called
    2016-12-23 11:47:11, Error                 CBS    Startup: Failed to process advanced operation queue, startupPhase: 0.  A rollback transaction will be created. [HRESULT = 0x800f0922 - CBS_E_INSTALLERS_FAILED]
    2016-12-23 11:47:11, Info                  CBS    Setting ExecuteState key to: CbsExecuteStateInitiateRollback | CbsExecuteStateFlagAdvancedInstallersFailed
    2016-12-23 11:47:11, Info                  CBS    SetProgressMessage: progressMessageStage: -1, ExecuteState: CbsExecuteStateInitiateRollback | CbsExecuteStateFlagAdvancedInstallersFailed, SubStage: 0
    2016-12-23 11:47:11, Info                  CBS    Progress: UI message updated. Operation type: Foundation. Stage: 1 out of 1. Rollback.
    2016-12-23 11:47:11, Info                  CBS    Setting original failure status: 0x800f0922, last forward execute state: CbsExecuteStateResolvePending
    2016-12-23 11:47:11, Info                  CBS    Startup: Changing logon timeout to a static timeout: 10800000
    2016-12-23 11:47:11, Info                  CBS    Winlogon: TiCoreOnCreateSession has been called
    2016-12-23 11:47:12, Info                  CSI    000000e4 Rolling back transactions..."

    What does that mean??


    Kind regards,

    Rauno

    Friday, December 23, 2016 11:26 AM
  • "However I am working on it remotely from a different country so I would have to let somebody else do it."

    Actually, you can check it remotely.  There are different utilities you can run that report the capabilities of the system and whether or not the features are enabled or not.

    CPU-Z - http://www.cpuid.com/softwares/cpu-z.html

    Securable - https://www.grc.com/securable.htm


    . : | : . : | : . tim

    Friday, December 23, 2016 1:43 PM
  • There's no need for 3rd party tools. The built-in msinfo32.exe has enough detail to let you know if you can run Hyper-V. Bottom of the "System Summary" page:


    This system will run Hyper-V in WS2012R2 but not Client Hyper-V or Hyper-V in WS2016.

    The part of the CBS log that you found doesn't show much. Maybe scroll up and see if there are other error entries prior to that. If not, run the following in an elevated command prompt:

    dism /online /cleanup-image /restorehealth

    Then run:

    dism /online /cleanup-image /checkhealth
    Repeat the two above processes until it says "No component store corruption detected". Do not rely on the "restorehealth" output because it always claims that it corrected corruption even if there wasn't any, and it doesn't always clean up the entire component store in a single pass. Reboot. Run Windows Update until it's clean and reboot. Then try enabling Hyper-V.


    Eric Siron
    Altaro Hyper-V Blog
    I am an independent contributor, not an Altaro employee. I accept all responsibility for the content of my posts. You accept all responsibility for any actions that you take based on the content of my posts.

    Friday, December 23, 2016 4:08 PM
  • Hello Eric,

    Thank You for Your response!

    In the "System Summary" page, all 4 settings were: "Yes".

    I tried also the command line commands, already after the first /restorehealth, the /checkhealth command said that there were no corruptions. 

    After that I restarted the machine and tried installing Hyper-V again but still I have the same issue..

    I also mentioned earlier that perhaps there is a connection to not being able to install Windows Updates but, well, I could install Windows Updates successfully, at least I didn't have a problem with that particular one that I tried - so I guess it must be something else.


    Rauno

    Wednesday, December 28, 2016 6:40 AM
  • Hi Rauno,

    The issue seems really strange.

    I suppose maybe a reinstallation is easier than troubleshooting.

    Besides, I also suggest you consult the manufacturer to see if the device is supported.

    Best Regards,

    Leo


    Please remember to mark the replies as answers if they help.
    If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.

    • Marked as answer by Rauno S Thursday, January 5, 2017 11:52 AM
    Thursday, December 29, 2016 2:01 AM
  • Hello Leo,

    Thank You for Your repsonse!

    We wouldn't prefer a reinstall at this point though, I guess if we cannot figure this issue out and there are no suitable (for us) alternatives, then it has to be done - but I don't wanna believe that this is impossible to fix..

    After lots of digging and troubleshooting, it seems that very different solutions have helped people in different cases. For example:

    1) https://community.spiceworks.com/how_to/79541-update-error-code-800f0922-on-windows-server-2012
    Apparently the Secure Boot can cause some conflicts in cases like this? Is this procedure even safe? 

    2) https://social.technet.microsoft.com/Forums/windows/en-US/7060c961-3b7c-42ba-ad84-008c357478d8/installation-failure-windows-failed-to-install-the-following-update-with-error-0x800f0922?forum=w8itprogeneral
    Here someone has deleted the following registry keys to get it to work:
    "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\WINEVT\Publishers\{e7ef96be-969f-414f-97d7-3ddb7b558ccc}

    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\WINEVT\Publishers\{8c416c79-d49b-4f01-a467-e56d3aa8234c}"

    The first one doesn't exist in my case but the second one does. I am not sure what it is there for though and what could be the possible side-effects of deleting it?

    Would it, perhaps, help if I uploaded the CBS log file and posted it here?

    Kind regards,

    Rauno

    Thursday, December 29, 2016 11:46 AM
  • Hi Rauno,

    >>Apparently the Secure Boot can cause some conflicts in cases like this?

    Probably.

    The two links you have posted may not be suitable for your issue. But you could have a try.

    I did not find much technical reference about the two registry keys, remember to backup before modifying.

    Besides, I suggest you open a case with Microsoft, more in-depth investigation can be done so that you would get a more satisfying explanation and solution to this issue.
    Here is the link:
    https://support.microsoft.com/en-us/gp/contactus81?Audience=Commercial&wa=wsignin1.0

    Best Regards,
    Leo


    Please remember to mark the replies as answers if they help.
    If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.

    Friday, December 30, 2016 5:50 AM
  • Hi Leo,

    Thank You for Your response!
    Seems like I have no other choice but to open an investigation, yeah.

    Since this can take quite a bit of time, I would still happily accept other people's ideas as well, perhaps someone else has had the same issue and managed to overcome it.

    Kind regards,

    Rauno

    Friday, December 30, 2016 6:19 AM
  • Thanks!  That was it for me.

    We have over 20 of those old server still deployed worldwide. It seem the production specialist forgot to enable the virtualization in the BIOS of that specific machine. 

    Tuesday, April 7, 2020 1:22 AM