View Issue Details

IDProjectCategoryView StatusLast Update
0007846Kali LinuxGeneral Bugpublic2023-04-09 06:30
Reporterviperomega Assigned Toarnaudr  
Status confirmedResolutionopen 
Summary0007846: [Hyper-V] hyperv_keyboard module needed for Generation 2 VMs

Because Generation 2 virtual machines in Hyper-V are presented with a minimal set of EFI hardware, the kernel module "hyperv_keyboard" must be present to interact with the console keyboard. On systems with disk encryption, the user will be prompted for the key to decrypt the disk, but cannot enter the password because no keyboard driver is present.

This issue appears to exist in 2022.2 release that support EFI and are therefore eligible to be used as Generation 2 VMs, most recently tried with kali-linux-2022.2-installer-amd64.iso

This module is present when the grub menu is presented and later when the kernel is fully loaded.
FYI, if some mechanism requires a mouse or touch, the hid_hyperv module will also be needed.

Steps To Reproduce

Install on a hyper-v gen2 with full disk encryption.
it is not possible to enter passphrase while boot.

Additional Information




2022-08-07 16:45

reporter   ~0016521

echo "$PREREQ"

case $1 in
exit 0

. /usr/share/initramfs-tools/hook-functions

force_load hyperv_keyboard



2023-03-14 10:01

administrator   ~0017649

This report has been filed against an old version of Kali. We will be closing this ticket due to inactivity.

Please could you see if you are able to replicate this issue with the latest version of Kali Linux (

If you are still facing the same problem, feel free to re-open the ticket. If you choose to do this, could you provide more information to the issue you are facing, and also give information about your setup?
For more information, please read:



2023-03-15 02:38

manager   ~0017668

Re-opening as this is still an issue.

I opened a bug report upstream:, and also proposed a MR: But no feedback so far. I need to ping again.

Issue History

Date Modified Username Field Change
2022-08-07 15:34 viperomega New Issue
2022-08-07 16:45 viperomega Note Added: 0016521
2023-03-14 10:01 g0tmi1k Note Added: 0017649
2023-03-14 10:01 g0tmi1k Status new => closed
2023-03-15 02:35 arnaudr Assigned To => arnaudr
2023-03-15 02:35 arnaudr Status closed => confirmed
2023-03-15 02:38 arnaudr Note Added: 0017668