Solved

Server 2012 R2 Hyper-V and Sysprepping a VM

Posted on 2016-09-13
11
25 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 58

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 58

Expert Comment

by:Cliff Galiher
ID: 41796742
Try it without removing modern apps. Helps isolate issues.
0
Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

 
LVL 38

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 58

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 58

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

Free eBook: Backup on AWS

Everything you need to know about backup and disaster recovery with AWS, for FREE!

Question has a verified solution.

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

In this article, I am going to show you how to simulate a multi-site Lab environment on a single Hyper-V host. I use this method successfully in my own lab to simulate three fully routed global AD Sites on a Windows 10 Hyper-V host.
Ransomware is a malware that is again in the list of security  concerns. Not only for companies, but also for Government security and  even at personal use. IT departments should be aware and have the right  knowledge to how to fight it.
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 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ā€¦

713 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