I start the virtual machine with the command:
qemu-system-x86_64 -drive if=none,file=hd.qcow2,id=drive0,cache=unsafe,discard=unmap,format=qcow2 -drive file=CentOS-Stream-9-latest-x86_64-boot.iso,media=cdrom -name test -netdev user,id=user.0 -m 2048M -smp 2 -vnc 0.0.0.0:0 -device virtio-scsi-pci,id=scsi0-device scsi-hd,bus=scsi0.0,drive=drive0 -device virtio-net,netdev=user.0 -cpu Nehalem -machine pc,accel=kvm -device piix3-usb-uhci -device usb-mouse -device usb-kbd -boot once=d
The keyboard works on the boot screen. I select install and the keyboard does not work after the installer starts. The same problem with the installed system. USB controller is present, but keyboard are not detected. The lshw output shows UNCLAIMED next to usb.
kernel 5.14.0-402.el9 and newer - doesn't work
kernel 5.14.0-391.el9 - works