Solved

SCVMM 2012R2 VM deployment not inheriting admin password

Posted on 2013-11-13
2
1,634 Views
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?

Thoughts?
0
Comment
Question by:annexit
  • 2
2 Comments
 

Author Comment

by:annexit
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.
0
 

Accepted Solution

by:
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.  :)
0

Featured Post

Free Gift Card with Acronis Backup Purchase!

Backup any data in any location: local and remote systems, physical and virtual servers, private and public clouds, Macs and PCs, tablets and mobile devices, & more! For limited time only, buy any Acronis backup products and get a FREE Amazon/Best Buy gift card worth up to $200!

Join & Write a Comment

VM backup deduplication is a method of reducing the amount of storage space needed to save VM backups. In most organizations, VMs contain many duplicate copies of data, such as VMs deployed from the same template, VMs with the same OS, or VMs that h…
Exchange server is not supported in any cloud-hosted platform (other than Azure with Azure Premium Storage).
In this Micro Tutorial viewers will learn how to use Windows Server Backup to create full image of their system. Tutorial shows how to install Windows Server Backup Feature on Windows 2012R2 and how to configure scheduled Bare Metal Recovery backup.…
This tutorial will walk an individual through the process of transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles from a Windows Server 2008 domain controller to a Windows Server 2012 domain controlle…

707 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now