Solved

Server 2012 R2 Hyper-V and Sysprepping a VM

Posted on 2016-09-13
11
14 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 56

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 56

Expert Comment

by:Cliff Galiher
ID: 41796742
Try it without removing modern apps. Helps isolate issues.
0
 
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
Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

 
LVL 56

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 56

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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Every now and then, Microsoft does something that totally impresses me. It doesn't happen often, but in this case I must say I am thoroughly impressed with Windows Server Backup. One of the long time issues with Windows Backup has been the ability t…
A procedure for exporting installed hotfix details of remote computers using powershell
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 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…

758 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

18 Experts available now in Live!

Get 1:1 Help Now