Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Server 2012 R2 Hyper-V and Sysprepping a VM

Posted on 2016-09-13
11
Medium Priority
?
76 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 59

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 59

Expert Comment

by:Cliff Galiher
ID: 41796742
Try it without removing modern apps. Helps isolate issues.
0
NFR key for Veeam Agent for Linux

Veeam is happy to provide a free NFR license for one year.  It allows for the non‑production use and valid for five workstations and two servers. Veeam Agent for Linux is a simple backup tool for your Linux installations, both on‑premises and in the public cloud.

 
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 59

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 59

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

Are your AD admin tools letting you down?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

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

Know what services you can and cannot, should and should not combine on your server.
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 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…
This tutorial will walk an individual through the process of configuring their Windows Server 2012 domain controller to synchronize its time with a trusted, external resource. Use Google, Bing, or other preferred search engine to locate trusted NTP …

715 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