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

    Posted on March 25th, 2015 Andy Parkes 11 comments

    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.

    The following two tabs change content below.
    Andy Parkes is Technical Director at Coventry based IT support company IBIT Solutions. He is also Microsoft Partner Area Lead for 2012-2013 and coordinates AMITPRO which is a peer group for IT Professionals in the Midlands area. He also isn't a fan of describing himself in the third person.

    Latest posts by Andy Parkes (see all)

     

    11 Responses to “Adding Roles and Features To an Offline Virtual Machine”

    1. Thanks for the article Andy. Just had a VM do this exact thing and it worked perfectly after installing BitLocker into the VHDX as you described.

    2. Hey Byron

      Thanks for the comment. Glad this was of some help!

    3. You just saved my life, we are deploying a new server with VM’s as our customer today and this issue had me fearing we wouldn’t make it and had to do the VM from scratch.
      Thanks!

    4. Glad this helped! 🙂

    5. Awesome. Thanks for this. You da man!!

    6. Thanks Phil 🙂

    7. Thanks!
      It worked. Any other resolution didn’t help!
      BIG LIKE for you!

    8. Thanks!

      Great solution.

      Regards.

    9. This worked for me after spendiing numerous hours trying to figure out what was going on installing the bitlocker

    10. Searched for a few hours for a fix without joy. Found yours and now my new VM server is booting and installing updates. You rock.

    11. Thanks Earl,

      Glad you’re sorted!

    Leave a Reply