Skip to content

[Bug] - Exported disk image of AL2023 not recognizing keyboard actions in Redhat Virtualization #738

@a89h4ya

Description

@a89h4ya

Describe the bug
I am working in a enterprise environment and we just recently moved all our EC2 instances to AL2023. However, we are running a CICD System with Agents/Runners and some of them are on-premise to reach certain network zones. To have a homogenous environment we desired to run them with AL2023 aswell. We followed the documentation at https://docs.aws.amazon.com/vm-import/latest/userguide/vmexport_image.html to export them.

We had some issues properly booting the disk image which were solved by adding virtio modules into the initial ramdisk:

dracut -f initramfs-6.1.82-99.168.amzn2023.x86_64.img 6.1.82-99.168.amzn2023.x86_64 --add-drivers "virtio virtio_pci virtio_blk virtio_net"

This worked well with qemu. However, the destination is a Red Hat Virtualization System. There, the VM also boots, but no console input is possible. This could also be an Issue with Red Hat Virtualization, so we opened a case with Redhat. However, during the bootloading we are able to navigate the EFI menu with the keyboard.

My current assumption is, that the kernel of AL2023 might be missing some modules needed to properly identify the keyboard. In contrast, the EFI contains the proper drivers and thus allows keyboard usage.

I investigated a bit into virtio and found that there are besides "virtio virtio_pci virtio_blk virtio_net" also "virtio_input" and "virtio_console". But I cant add them via dracut, they seem to be missing (And I would need to add them to the kernel instead of the initrd anyway, right?)

This topic is leaving my field of expertise, so I would appreciate for any confirmation of my thoughts, different ideas or troubleshooting suggestions.

To Reproduce
Steps to reproduce the behavior:

  1. Export AL2023 AMI as stated in https://docs.aws.amazon.com/vm-import/latest/userguide/vmexport_image.html
  2. Add virtio modules to initrd
  3. Import disk image to Red Hat Virtualization and boot from it
  4. See error (Not beeing able to use keyboard)

Expected behavior
Keyboard can be used to login to console after boot

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions