Professional Geek
RSS icon Email icon Bullet (black)
  • Adding Roles and Features To an Offline Virtual Machine

    A few days ago I restarted a virtual machine and was presented with the message.

    We couldn’t complete the updates

    Undoing changes

    Don’t turn off your computer 

    chnages

    Very helpful.

    The server just sat there for ages, apparently doing nothing.

    After a brief search I came across a post on the Microsoft forums that indicated an update was giving some problems (KB2920189)

    One of the suggested actions was to disable secure boot, start the virtual machine, allow the update to install and then re-enable secure boot.

    It’s a Windows 2012 R2 Gen2 virtual machine so it had that option.

    I turned it off but this didn’t doing anything.

    A further post on the forum pointed to a known issue with that update. The fix for that is to install the BitLocker features as the update is looking it. You don’t need to encrypt any drives, just have the feature installed. My specific problem wasn’t exactly described in that article but it wouldn’t hurt to add the feature and find out.

    But how to do that if the server won’t even boot?

    Well as the title probably already suggests you can do this with a virtual machine when it’s offline.

    Shut the virtual machine down

    Start server manager and select the “Add roles and features” option

    image

    Click through the first couple of pages on the wizard until you get the server selection page.

    From here you need the “Select a virtual hard” option at the top of the screen

    Then choose the virtual hard disk that has your operating system at the bottom of the screen.

    image

    From here it’s exactly the same as method to add a role or feature as normal.

    image

    image

    After that i started the machine, the update installed and all was good.