QEMU KVM Keyboard Problems Not Working Right Repeating Characters, Ctrl+C Copy and Paste not working right when using PS2 mouse in guests Solution

It seems that QEMU/KVM's default PS2 mouse and keyboard doesn't work right in most cases.  I have especially observed issues using Ctrl+C and Ctrl+V and in Linux you may see repeated key presses in the terminal and you will wonder why you copied something and it's not in the clipboard when you try to paste.  The way to temporarily fix it is to press the key that is repeating once (works in Linux but not really in Windows).

Sometimes when moving your mouse it will also select everything on the screen or click something on it's own (possible click repetition similar to the repeating key issue).

The way around this is to NEVER use the default QEMU PS2 mouse and keyboard (if you run qemu-system-x86_64 without specifying a USB keyboard and mouse, it gives you the bad / buggy PS2 by default).

The solution.

When starting QEMU just pass these flags to give yourself a USB keyboard and mouse:

-usb -device usb-mouse -device usb-kbd  -device usb-tablet


Tags:

qemu, kvm, keyboard, repeating, characters, ctrl, ps, solutionit, default, doesn, observed, linux, repeated, presses, terminal, copied, clipboard, temporarily, select, repetition, _, specifying, usb, buggy, flags, kbd, tablet,

Latest Articles

  • FreePBX 17 How To Add a Trunk
  • Docker Container Onboot Policy - How to make sure a container is always running
  • FreePBX 17 How To Add Phones / Extensions and Register
  • Warning: The driver descriptor says the physical block size is 2048 bytes, but Linux says it is 512 bytes. solution
  • Cisco How To Use a Third Party SIP Phone (eg. Avaya, 3CX)
  • Cisco Unified Communication Manager (CUCM) - How To Add Phones
  • pptp / pptpd not working in DD-WRT iptables / router
  • systemd-journald high memory usage solution
  • How to Install FreePBX 17 in Linux Debian Ubuntu Mint Guide
  • How To Install Cisco's CUCM (Cisco Unified Communication Manager) 12 Guide
  • Linux Ubuntu Redhat How To Extract Images from PDF
  • Linux and Windows Dual Boot Issue NIC Won't work After Booting Windows
  • Cisco CME How To Enable ACD hunt groups
  • How to install gns3 on Linux Ubuntu Mint
  • How to convert audio for Asterisk .wav format
  • Using Cisco CME Router with Asterisk as a dial-peer
  • Cisco CME How To Configure SIP Trunk VOIP
  • Virtualbox host Only Network Error Failed to save host network interface parameter - Cannot change gateway IP of host only network
  • Cisco CME and C7200 Router Testing and Learning Environment on Ubuntu 20+ Setup Tutorial Guide
  • Abusive IP ranges blacklist