Skip to content

No symbol characters when automating actions in QEMU/KVM VMs.  #269

@nick-george

Description

@nick-george

Please include the following information:

vncdotool version: vncdotool==1.2.0
VNC server and version: QEMU VNC Server, version 6.2+dfsg-2ubuntu6.12 (ubuntu 22.04)
Steps to reproduce

  • Start up any QEMU machine, I just downloaded a Debian Linux ISO and ran it with
    kvm -cdrom ~/Downloads/debian-12.1.0-amd64-netinst.iso -m 2048 -net nic -net user -vnc 127.0.0.1:2,password=off
  • Launch the rescue environment
  • Get to a shell (I pressed ALT-F2 to launch a bash shell)
  • Run vncdo -v -v -v -s localhost:2 type 'THISISaVncdotoolTest1234!@#$'
    Expected result
    I'd expect to see the following text on the shell
THISISaVncdotoolTest1234!@#$

Which erroneous result did you get instead
Screenshot from 2023-08-29 08-08-34

Additional information
This is my locale, do you think it could be somehow involved?

LANG=en_AU.UTF-8
LANGUAGE=en_AU:en
LC_CTYPE="en_AU.UTF-8"
LC_NUMERIC="en_AU.UTF-8"
LC_TIME="en_AU.UTF-8"
LC_COLLATE="en_AU.UTF-8"
LC_MONETARY="en_AU.UTF-8"
LC_MESSAGES="en_AU.UTF-8"
LC_PAPER="en_AU.UTF-8"
LC_NAME="en_AU.UTF-8"
LC_ADDRESS="en_AU.UTF-8"
LC_TELEPHONE="en_AU.UTF-8"
LC_MEASUREMENT="en_AU.UTF-8"
LC_IDENTIFICATION="en_AU.UTF-8"
LC_ALL=

I'm aware of the 'shift-' operations, but I was hoping not to have to write my own parser for every character sent. Looking through the issue history for this project, it seems the capitalisation issues were solved years ago, so I figure it's an issue with QEMU in particular? Have you got an suggestions on how I can fix?

Entering the same characters in a vnc viewer works fine.

Many thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions