I have problems with sending shortcuts to the Ubuntu guest. Like Alt +
Tab, Ctrl + Alt + T, Alt + F4, etc... It's sent to the host instead
even though the QEMU window is active. Is there a way to
change/configure such behavior?

For example Alt + F4 closes the guest itself, not the active guest
window which is counter-intuitive.
Here is how I use QEMU:

I compiled and installed qemu-6.1.0 as specified in the instruction
https://www.qemu.org/download/:

wget https://download.qemu.org/qemu-6.1.0.tar.xz
tar xvJf qemu-6.1.0.tar.xz
cd qemu-6.1.0
./configure
make -j8

Then I created image as

qemu-img create ubuntu.img 30G

and then installed Ubuntu 20.04.3 using official Ubuntu ISO running it as

sudo qemu-system-x86_64 -cpu host -enable-kvm -boot d -cdrom
Downloads/ubuntu-20.04.3-desktop-amd64.iso -m 8G ubuntu.img

running the guest as

sudo qemu-system-x86_64 -cpu host -enable-kvm -m 8G ubuntu.img

reproduces such shortcuts behavior.

--

Regards,
Dmitrii

Reply via email to