Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Server 2012 R2 Hyper-V and Sysprepping a VM

Posted on 2016-09-13
11
Medium Priority
?
104 Views
Last Modified: 2016-11-22
Hello,

I have a Hyper-V host setup and am trying to setup a VDI for DELL WYSE clients.  This is my first attempt at such a setup.  

I am trying to create a set of pooled desktops.  I created a VM, PXE booted to WDS, pulled down my current Win10 Enterprise image.  
The first VM I created I pushed through MS Welcom setup, installed Google Earth, tested Google Earth with Remote FX.  Removed all modern apps, and kicked off sysprep.  Sysprep runs for a while visually (maybe 3-5 min) then seems to freeze, yet Hyper-V manager still shows minimal CPU usage 5%-6%.  I let this run for 10-12 hours, and then forefully turned off the machine.  Upon reboot, the computer was not sysprepped and took me to a normal login screen.

On my second attempt, I created the VM, PXE booted, pulled down the same image, except this time I went into audit mode, installed Google Earth, ran sysprep with option to shutdown the machine.  So far I have the same results.

I read the heartbeat may be confusing the Hyper-V host, so I disabled Heartbeat on the guest VM integration services.

Any insight on sysprepping Win 10 Enterprise VM on Hyper-V 2012 R2 Host?  Experience similar issues?

At a loss at the moment, wondering if I need to rebuild my Hyper-V host.
0
Comment
Question by:Zorniac
  • 6
  • 4
11 Comments
 
LVL 60

Expert Comment

by:Cliff Galiher
ID: 41796729
Did you remove modern apps on both attempts? Improperly removing a modern app will confuse sysprep in a big way.
0
 
LVL 1

Author Comment

by:Zorniac
ID: 41796737
yes I removed modern apps using

Get-AppxPackage -AllUsers | Remove-AppxPackage

I then verified the apps were gone using Get-AppxPackage -AllUsers

My latest sysprep attempt actually failed with an error message:  Driver_power_state_failure
upon reboot the system is saying 'Windows could not complete the installation.  To install Windows on this computer, restart the installation.'
0
 
LVL 60

Expert Comment

by:Cliff Galiher
ID: 41796742
Try it without removing modern apps. Helps isolate issues.
0
Creating Active Directory Users from a Text File

If your organization has a need to mass-create AD user accounts, watch this video to see how its done without the need for scripting or other unnecessary complexities.

 
LVL 40

Expert Comment

by:Philip Elder
ID: 41796745
IIRC, Win10 requires Server 2016 for a proper deployment?

Excellent VDI Step-by-Step.

I have an EE article that may be of help for Hyper-V: Some Hyper-V Hardware and Software Best Practices.
0
 
LVL 1

Author Comment

by:Zorniac
ID: 41796747
Ok will do.  
So PXE boot and pull image again.
Run through standard welcome setup, install google earth.
sysprep

or should I pull image, and go into audit mode to make google earth install?
0
 
LVL 60

Expert Comment

by:Cliff Galiher
ID: 41796856
In the very rare instances i embed an application into an inage (which i dont usually recommend), I always install programs in audit mode. That ls personal preference from experience for sure.
0
 
LVL 1

Author Comment

by:Zorniac
ID: 41797860
@Philip Elder...

I researched you comment about Win10 requiring Server 2016...  I didn't find any definitive, but I also didn't find anyone detailing a Server 2012 & Win 10 VDI setup either, which leads me to think this may be the case, and the crux of my issue...
0
 
LVL 60

Expert Comment

by:Cliff Galiher
ID: 41797883
It is not the case at all. MDT 2013 and SCCM both officially support windows 10 using WDS, and 2016 is not yet out. They could not support win10 if that were a requirement.
0
 
LVL 1

Author Comment

by:Zorniac
ID: 41797891
@Cliff Galiher
OK, gotcha.  I will proceed with the re-image and test as you stated yesterday, I will let you know shortly my results...
0
 
LVL 1

Accepted Solution

by:
Zorniac earned 0 total points
ID: 41848121
Hello,

Not sure if anyone is still following this question, but I apologize for not getting back to the EEs that were assisting me.  I pulled to another site, and am just now beginning to work on this project again.  

I was able to get my VMs to successfully complete a sysprep.  The resolution came from here:
http://www.thomasmaurer.ch/2016/05/windows-sysprep-for-virtual-machines/

and the solution was to run sysprep from the CLI using the following command:


sysprep.exe /oobe /generalize /shutdown /mode:vm
0
 
LVL 1

Author Closing Comment

by:Zorniac
ID: 41855837
found answer on another site
0

Featured Post

Simplify Active Directory Administration

Administration of Active Directory does not have to be hard.  Too often what should be a simple task is made more difficult than it needs to be.The solution?  Hyena from SystemTools Software.  With ease-of-use as well as powerful importing and bulk updating capabilities.

Question has a verified solution.

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

Exchange server is not supported in any cloud-hosted platform (other than Azure with Azure Premium Storage).
Restoring deleted objects in Active Directory has been a standard feature in Active Directory for many years, yet some admins may not know what is available.
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…
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…
Suggested Courses

885 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