Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Bug#1028511: initramfs-tools: Please include `hyperv-keyboard` to enter LUKS password in Gen2 Hyper-V machines

422 views
Skip to first unread message

Arnaud Rebillout

unread,
Jan 12, 2023, 2:10:03 AM1/12/23
to
Package: initramfs-tools
Version: 0.142
Severity: normal
Tags: patch
User: de...@kali.org
Usertags: origin-kali

Dear Maintainer,

As reported in the Kali Linux bug tracker, it's not possible to type the
LUKS password, in case of full disk encryption, in Gen2 Hyper-V virtual
machine. This is due to missing modules.

The original bug is at https://bugs.kali.org/view.php?id=7846, and I'll
quote the bits that are relevant:

> 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 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.

This issue also affects Debian, as discussed in:
<https://forums.debian.net/viewtopic.php?t=131468>

This issue was also reported in the Ubuntu tracker, back in 2016:
<https://bugs.launchpad.net/ubuntu/+source/initramfs-tools/+bug/1567107>
It was fixed in Ubuntu, but the changes never made it to Debian.

Please find a merge request at:
<https://salsa.debian.org/kernel-team/initramfs-tools/-/merge_requests/69>

Thanks,

Arnaud

Jinesh Choksi

unread,
Jun 11, 2023, 5:00:03 PM6/11/23
to
I found that when installing the base system, when you are prompted whether to install a generic kernel or a targetted kernel, if you choose to install the targetted kernel then the issue described in this bug report will not occur. I can enter the luks password in a Gen2 hyper-v VM without any issues. With a generic kernel, I can't.
0 new messages