Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win


SCVMM 2012R2 VM deployment not inheriting admin password

Posted on 2013-11-13
Medium Priority
Last Modified: 2013-11-14
Greetings Experts -

We recently created an SCVMM 2012R2 server which is using WS2012R2 as its OS.  That box is managing a single Hyper-V server running WS2012R2.  Before I go into details about my setup I'll ask up front "the password entered into the template does not carry over into the deployed VM - why?".  Here's how I get to that question.

I've created the most basic template possible out of a 2012R2 VM.  I did this via:
-> in the SCVMM 2012R2 admin console I go to the "VMs and Services" screen
-> right-click the target VM to be templated and chose "Create > Create VM template"
-> for the template name I enter something like "2012R2 Controller"
-> I leave the "Configure Hardware" screen at defaults
-> on the "Configure Operating System" screen I confirm the "Operating System" field is correct, I put * for "Identity Information", I put in a complex Admin Password, I put in a known-good product key
-> on the "Select Library Server" screen I chose the only Library server we have
-> on the "Select Path" screen I browse to the "Library\Templates" folder
-> on the Summary screen I press "Create"
-> after that is done I go to the "Library" screen and then to "Templates > VM Templates"
-> I right-click "2012R2 Controller" that I just made and go to "Properties"
-> on the "Hardware Configuration" screen under "Cloud Capability Profiles" I checkmark Hyper-V
-> on the "OS Configuration" screen I confirm that all the info I entered during the template creation process is still there
-> I press "OK" to close the window

Then I create a new VM from that template via:
-> in the SCVMM 2012R2 admin console I go to the "VMs and Services" screen again
-> I click "Create Virtual Machine" from the menu ribbon up top
-> on the "Select Source" screen under "Use an existing virtual machine, VM template, or virtual hard disk" I look under "Type: VM Template" and choose "2012R2 Controller" that I made above
-> on the "Identity" screen I put in a name for the new VM such as "2012R2 test deploy"
-> I leave the "Configure Hardware" screen at defaults
-> I leave the "Configure Operating System" screen at defaults as all my previously entered data is still there
-> on the "Select Destination" screen I choose the default "Place the virtual machine on a host" with "Destination: All Hosts"
-> on the "Select Host" screen I choose our only host
-> I leave the "Configure Settings" screen at defaults
-> I leave the "Add Properties" screen at defaults
-> on the "Summary" screen I press "Create"

Deployment of the new VM begins, but when it gets to 81% it stops.  I right-click the VM and choose "Connect or View > Connect via Console".  I then see the VM sitting at the sysprep deployment screen asking for me to enter an Administrator password.  Huh?  Didn't I put this in earlier?

My question - why is the administrator password not inherited from the wizard as I put it in?  This was never an issue in SCVMM 2008R2 so I'm not sure what's going on here.  It seems pretty straight forward and seems like it should 'just work' but maybe I'm missing something?

Question by:annexit
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2

Author Comment

ID: 39648550
A quick follow-up.  After some additional testing I found that using the same procedure for a Windows 8.1 x64 template results in the deployed VM being stuck as well, but this time at the 'PC Name' screen... and the PC name is clearly set to * in the template, so it should be automatically generated.

Interestingly using the same procedure with Windows 7 x64 does NOT have any of these issues...

I'm starting to think this is a glitch in the admin console.

Accepted Solution

annexit earned 0 total points
ID: 39649201
I figured this out.  I copied these VMs from a SCVMM 2008R2 system where I had to manually sysprep the VMs before making them into non-customized templates (as SCVMM 2008R2 doesn't know how to template 8/2012+ via the usual GUI method).

When they were copied to the SCVMM 2012R2 system I forgot to delete the unattend.xml file inside the VM at C:\Windows\System32\Sysprep.  Apparently leaving an unattend.xml file there overrides the settings in the GUI during deployment as the unattend.xml settings were configured to prompt for a machine name (in 8.1) and for an admin password (in 2012R2).

After deleting the unattend.xml file and re-templating the VM I can now deploy these without issue.

Education experience for sure.  :)

Featured Post

When ransomware hits your clients, what do you do?

MSPs: Endpoint security isn’t enough to prevent ransomware.
As the impact and severity of crypto ransomware attacks has grown, Webroot fought back, not just by building a next-gen endpoint solution capable of preventing ransomware attacks but also by being a thought leader.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

OfficeMate Freezes on login or does not load after login credentials are input.
Giving access to ESXi shell console is always an issue for IT departments to other Teams, or Projects. We need to find a way so that teams can use ESXTOP for their POCs, or tests without giving them the access to ESXi host shell console with a root …
In this Micro Tutorial viewers will learn how to use Boot Corrector from Paragon Rescue Kit Free to identify and fix the boot problems of Windows 7/8/2012R2 etc. As an example is used Windows 2012R2 which lost its active partition flag (often happen…
How to install and configure Citrix XenApp 6.5 - Part 1. In this video tutorial we have explained step by step installation of Citrix XenApp 6.5 Server on Windows Server 2008 R2 is explained in this video. We have explained the difference between…

610 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question