Solved

Server 2012 R2 Hyper-V and Sysprepping a VM

Posted on 2016-09-13
11
30 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

 
LVL 39

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

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

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

You might have come across a situation when you have Exchange 2013 server in two different sites (Production and DR). After adding the Database copy in ECP console it displays Database copy status unknown for the DR exchange server. Issue is strange…
Sometimes drives fill up and we don't know why.  If you don't understand the best way to use the tools available, you may end up being stumped as to why your drive says it's not full when you have no space left!  Here's how you can find out...
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.…
In this Micro Tutorial viewers will learn how to restore single file or folder from Bare Metal backup image of their system. Tutorial shows how to restore files and folders from system backup. Often it is not needed to restore entire system when onl…

617 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