Posted on March 25th, 2015 11 comments
A few days ago I restarted a virtual machine and was presented with the message.
We couldn’t complete the updates
Don’t turn off your computer
The server just sat there for ages, apparently doing nothing.
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
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.
From here it’s exactly the same as method to add a role or feature as normal.
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.
11 Responses to “Adding Roles and Features To an Offline Virtual Machine”
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.
Thanks for the comment. Glad this was of some help!
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.
Glad this helped! 🙂
Phill Holbrook November 27th, 2015 at 1:21 am
Awesome. Thanks for this. You da man!!
Thanks Phil 🙂
Boris Sigalov April 23rd, 2016 at 5:25 am
It worked. Any other resolution didn’t help!
BIG LIKE for you!
This worked for me after spendiing numerous hours trying to figure out what was going on installing the bitlocker
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.
Glad you’re sorted!
Leave a Reply