Solved

Hyper-V virtual desktop collection creation error "Failed: The provisioned virtual machine could not connect to its primary domain"

Posted on 2015-01-19
8
704 Views
Last Modified: 2015-01-30
I'm trying to create a manged pool of personal desktops in Hyper-V. When I run the wizard I get the following error: "Failed: The provisioned virtual machine could not connect to its primary domain".

Server 2012 R2 was installed on the server, and the Hyper-V role was added, and called HV1. Two instances of Server 2012 R2 were created, one was set up as the Domain Controller (DC), called DC1, and the other as the Remote Desktop Services installation (RDSI), and called RDSI1. The RDS was installed according to this step by step tutorial (Technet blogpost).

The two Server 2012 R2 installations (HV1 and RDSI1) were joined to the third DC (DC1) one.

At this stage I attempted to create a collection of managed personal desktops, and am getting the above error.

The template I'm using is Gen1 (I tried Gen2, but Hyper-V said that they can't be used for a managed pool) Win 8.1 Pro sysprepped image (Sysprep /generalize /oobe /shutdown /mode:VM). I've created a VM from that image and it connects to the Internet, can run Windows Update, etc.

Please help!
0
Comment
Question by:ssvarc
  • 5
  • 2
8 Comments
 
LVL 38

Expert Comment

by:Philip Elder
ID: 40560175
Are you able to ping the DC by name from the host and RDSH servers?
0
 

Author Comment

by:ssvarc
ID: 40560220
Yes. I typed "ping DC1" into command windows on both machines and got swift replies.
0
 
LVL 38

Expert Comment

by:Philip Elder
ID: 40560249
Was the desktop OS image created from an already domain joined OS?
0
VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

 

Author Comment

by:ssvarc
ID: 40560400
No. I used the 8.1 ISO, installed to a Gen 1 VM, opened a browser to make sure it could connect, ran Windows Update, and then sysprepped using the above command.
0
 
LVL 36

Assisted Solution

by:Mahesh
Mahesh earned 250 total points
ID: 40560500
Have you setup DHCP server which can provide IP configuration and DNS to personnel desktop collection
Otherwise I think it won't allow you to connect to DC
I have seen this problem with pooled VDI.
0
 

Author Comment

by:ssvarc
ID: 40560521
Right now my router is providing DHCP. The VM's that I've created have had no issues, only the managed collection.

DC1 has the DNS role.

What needs to be done?
0
 

Accepted Solution

by:
ssvarc earned 0 total points
ID: 40569936
Finally got it. I read this Technet article which discusses how-to setup the DHCP role in Server 2012 R2, as well as reading the chapter about it in Windows Server 2012 R2 Storage, Security, & Networking Pocket Consultant by William Stanek.

There are a few gotchas, such as needing to authorize the role, adding the correct permissions in AD, etc.
0
 

Author Closing Comment

by:ssvarc
ID: 40579366
While the expert gave a technically correct answer, he provided no assistance in how to implement the solution. My answer gives a few resources, so others faced with this issue can find some self help, as well as pointing out some common gotchas in implementing the solution.
0

Featured Post

Backup Your Microsoft Windows Server®

Backup all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

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

This Micro Tutorial will teach you how to reformat your flash drive. Sometimes your flash drive may have issues carrying files so this will completely restore it to manufacturing settings. Make sure to backup all files before reformatting. This w…
Windows 8 came with a dramatically different user interface known as Metro. Notably missing from that interface was a Start button and Start Menu. Microsoft responded to negative user feedback of the Metro interface, bringing back the Start button a…

770 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