WinPE within HyperV (Gen 2)

I'm trying to deploy Windows 8 over PXE within a Hyper-V VM.

I used the Assessment and Deployment Kit to create a PE environment that is served through my (Linux) TFTP server. But I have problems with getting the keyboard / mouse / network to work within Hyper-V.

The environment was created with the following command:

copype amd64 C:\tmp\pe

The boot.wim created in c:\tmp\pe\sources I have mounted with the following command:

dism.exe /mount-wim /wimfile:c:\tmp\pe\sources\boot.wim /index:1 /mountdir:c:\tmp\mount

For injecting the Hyper-V drivers I used the Windows6.2-HyperVIntegrationServices-x86.cab file within c:\windows\system32\vmguest.iso.

After extracting this cab file I have inserted every driver within it with the following command:

forfiles /p c:\tmp\drivers /s /m *inf /c  "cmd /c dism /image:c:\tmp\mount /add-driver /driver:@path /forceunsigned"

Which returns it successfully added the drivers.

The Hyper-V VM is created as Gen 2 without the Secure Boot option. The Windows PE environment starts perfectly, but at the end, when the command prompt is opened and after wpeinit is executed, the keyboard / mouse, or network for that matter, is not working.

Can someone point me out which step I have forgotten to make this work?

Thanks in advance !


  • Edited by jalphenaar Thursday, January 22, 2015 7:31 PM
January 22nd, 2015 7:29pm

Hello,

Why do you import the driver ? I never import the driver and it's work properly for me. 

Free Windows Admin Tool Kit Click here and download it now
January 22nd, 2015 8:40pm

The first time i did it without importing the driver, they weren't working either then. So after some googeling I found out you could import the Hyper-V drivers which I thought was required by then.

But if it is not required, any idea why it isn't working for me?

January 22nd, 2015 8:43pm

You had an error? can you give me more info
Free Windows Admin Tool Kit Click here and download it now
January 22nd, 2015 11:53pm

There is no error :(
When booting you see the PXE screen that it's loading boot.wim. After that is loaded startnet.cmd is started which runs wpeinit and then you get the normal prompt.

I have edited startnet.cmd to do a ipconfig, thats how I could see network isn't working either.

I can type as much as I want in this command prompt but there is no text coming.
If I use the Type clipboard text function of Hyper-V, I get the following error:

Could not send keys to virtual machine
Interacting with the virtual machine's keyboard device failed

January 23rd, 2015 5:13am

Can you try this

http://blogs.technet.com/b/jhoward/archive/2013/10/29/hyper-v-generation-2-virtual-machines-part-4.aspx

You find on this post the command line for add the hyper-v integration pack

Free Windows Admin Tool Kit Click here and download it now
January 23rd, 2015 7:43am

Yes, it works now !

So just adding the entire cab file as package, instead of adding the drivers seems to fix it.

Thanks a lot !

January 23rd, 2015 12:48pm

Hello,

im trying set up a test environment, specifically trying to image a VM using SCCM2012 R2 and a local installation of hyper v on my workstation

I created a new virtual hard disk with my PE media inside, but when I boot off of it from my VM I receive an error from the PE environment immediately.

"Unable to read task sequence configuration disk. for more information contact your system administrator or helpdesk operator."

when I hit F8 I see that there is no network information assigned via IPCONFIG. do I need to inject some sort of driver into my boot image for this to work? I am using a GEN 2 VM so the legacy NIC situation shouldn't apply here.

I would very much appreciate any assistance.

Free Windows Admin Tool Kit Click here and download it now
March 19th, 2015 3:56pm

Sorry, wrong account. please see below

Hello,

im trying set up a test environment, specifically trying to image a VM using SCCM2012 R2 and a local installation of hyper v on my workstation

I created a new virtual hard disk with my PE media inside, but when I boot off of it from my VM I receive an error from the PE environment immediately.

"Unable to read task sequence configuration disk. for more information contact your system administrator or helpdesk operator."

when I hit F8 I see that there is no network information assigned via IPCONFIG. do I need to inject some sort of driver into my boot image for this to work? I am using a GEN 2 VM so the legacy NIC situation shouldn't apply here.

I would very much appreciate any assistance.

March 19th, 2015 4:05pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics