SCVMM 2012R2 VM deployment not inheriting admin password

Posted on 2013-11-13
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

Edgartown IT Case Study

Learn about Edgartown's quest to ensure the safety and security of the entire town's employee and citizen data. Read the case study!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Remote Desktop not working 22 90
Microsoft Access 32-bit or 64-bit? 11 56
TDE for SQL Web Edition 1 37
Restore DC not visible on network 13 21
The following article is comprised of the pearls we have garnered deploying virtualization solutions since Virtual Server 2005 and subsequent 2008 RTM+ Hyper-V in standalone and clustered environments.
The recent Microsoft changes on update philosophy for Windows pre-10 and their impact on existing WSUS implementations.
This tutorial will walk an individual through the process of configuring basic necessities in order to use the 2010 version of Data Protection Manager. These include storage, agents, and protection jobs. Launch Data Protection Manager from the deskt…
This tutorial will walk an individual through the process of installing the necessary services and then configuring a Windows Server 2012 system as an iSCSI target. To install the necessary roles, go to Server Manager, and select Add Roles and Featu…

737 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