Fix VM Keyboard Problems for Generation 2 Virtual Machine

Fix the keyboard problems for Windows 8 or Windows Server 2012 running in a Generation 2 virtual machine.

John Savill

October 15, 2013

1 Min Read
Fix VM Keyboard Problems for Generation 2 Virtual Machine

Q: I am installing Windows Server 2012 / Windows 8 into a Generation 2 Hyper-V virtual machine (VM), so why doesn't my keyboard work during OS installation?

A: It doesn't work because with a Generation 2 VM, there's no emulated keyboard device, and the software keyboard driver for Hyper-V isn't part of the Windows 8 PE environment. This means you can't use the keyboard to enter data such as the license key.

As a workaround, use the virtual keyboard.

If this is something you need to fix, then the solution is to install the Hyper-V integration services into the Windows PE environment. To do so,

1. Mount the PE image from the media:

dism /mount-image /imagefile:d:tempboot.wim /index:2 /mountdir:

2. Update the integration services:

dism /image: /add-package /packagepath:Windows6.2-HyperVIntegrationServices-x64.cab

3. Unmount the PE image:

dism /unmount-image /mountdir: /commit

4. Create new installation media using the oscdimg command.

About the Author

Sign up for the ITPro Today newsletter
Stay on top of the IT universe with commentary, news analysis, how-to's, and tips delivered to your inbox daily.

You May Also Like