sandia-minimega / minimega

minimega
GNU General Public License v3.0
148 stars 67 forks source link

VNC record kb not working on QEMU 6.2 #1521

Closed jacdavi closed 7 months ago

jacdavi commented 9 months ago

Describe your environment

  1. latest 2.8
  2. Ubuntu 18.04
  3. 1.20.7
  4. Windows, linux kvms

Describe the bug VNC record of kb/mouse doesn't work. Works fine on qemu 2.11

To Reproduce Steps to reproduce the behavior:

  1. vnc record kb <vm> <file>
  2. Perform actions through VNC (moving mouse, typing, etc.)
  3. vnc stop kb <vm>
  4. Observe file contents is empty Compare to qemu 2.11 and observe file has contents

Expected behavior Output that matches older qemu versions

jacdavi commented 8 months ago

Will be fixed by #1520 . Issue was that QEMU and noVNC negotiated extended clipboard support which uses a negative length. The mm vnc shim read the value as unsigned and was stuck trying to read 2 billion bytes.