Can not move mouse in Ubuntu VM; keyboard works

nilsb

Dabbler
Joined
Dec 31, 2016
Messages
10
Hello,
I'm running 13.0U6.1 and trying to install an Ubuntu 23.10 VM as per https://www.truenas.com/docs/scale/scaletutorials/virtualization/creatingmanagingvmsscale/
Right from the start the keyboard works (tabbing between fields, entering text, etc.), the mouse does not, both with the in-browser VNC and also with an external VNC (Tiger vncviewer). Basically, I can move the mouse over the VNC view and the little "x" cursor moves, but the VM cursor is not captured and does not move with it.

I've tried the following:
DOESN'T WORK:
- Ubuntu 23.10 (normal desktop) and Xubuntu 23.10 (minimal)
- https://releases.ubuntu.com/jammy/ubuntu-22.04.4-desktop-amd64.iso
- https://cdimage.debian.org/debian-cd/current/amd64/iso-cd/debian-12.5.0-amd64-netinst.iso
WORKS:
- https://releases.ubuntu.com/18.04/ubuntu-18.04.6-desktop-amd64.iso - works, per the suggestion from https://www.truenas.com/community/threads/vm-ubuntu-22-mouse-and-kebord-dont-work.115171/post-815594
- https://releases.ubuntu.com/focal/ubuntu-20.04.6-desktop-amd64.iso - EDIT: mouse works during installation, does not work as of first "real" post-installation bootup

For the versions that don't work, I see the following when first starting, maybe it has something to do with this?

1712151731327.png


Any suggestions on what to try or configure to make it work / figure out what's going on?
Thanks!
 
Last edited:

nilsb

Dabbler
Joined
Dec 31, 2016
Messages
10
from the log in /var/log/libvirt/bhyve:

Code:
/usr/sbin/bhyve -c cpus=2,sockets=1,cores=1,threads=2 -m 2000 -A -w -H -s 0:0,hostbridge -l bootrom,/usr/local/share/uefi-firmware/BHYVE_UEFI.fd -s 3:0,ahci,cd:/mnt/maindata/backup/images/xubuntu-23.10-minimal-amd64.iso,hd:/dev/zvol/maindata/jails/unetvm-gmywq6 -s 30:0,xhci,tablet -s 31,lpc -s 2:0,ahci -s 4:0,e1000,tap2,mac=00:a0:98:54:b9:d0 -l com1,/dev/nmdm1A -s 29,fbuf,vncserver=0.0.0.0:35683,w=1024,h=768 1_unetvm
03/04/2024 15:53:19 Listening for VNC connections on TCP port 35683
03/04/2024 15:53:19 Listening for VNC connections on TCP6 port 35683
03/04/2024 15:53:22   0 other clients
03/04/2024 15:53:22 Client Protocol Version 3.8
03/04/2024 15:53:22 Protocol version sent 3.8, using 3.8
03/04/2024 15:53:22 rfbProcessClientSecurityType: executing handler for type 1
03/04/2024 15:53:22 rfbProcessClientSecurityType: returning securityResult for client rfb version >= 3.8
03/04/2024 15:53:22 Pixel format for client 127.0.0.1:
03/04/2024 15:53:22   32 bpp, depth 24, little endian
03/04/2024 15:53:22   true colour: max r 255 g 255 b 255, shift r 0 g 8 b 16
03/04/2024 15:53:22 Using image quality level 6 for client 127.0.0.1
03/04/2024 15:53:22 Using JPEG subsampling 0, Q79 for client 127.0.0.1
03/04/2024 15:53:22 Using compression level 2 for client 127.0.0.1
03/04/2024 15:53:22 Enabling NewFBSize protocol extension for client 127.0.0.1
03/04/2024 15:53:22 Enabling LastRect protocol extension for client 127.0.0.1
03/04/2024 15:53:22 rfbProcessClientNormalMessage: ignoring unsupported encoding type Enc(0xFFFFFEFE)
03/04/2024 15:53:22 Enabling ExtDesktopSize protocol extension for client 127.0.0.1
03/04/2024 15:53:22 rfbProcessClientNormalMessage: ignoring unsupported encoding type Enc(0xFFFFFEC8)
03/04/2024 15:53:22 rfbProcessClientNormalMessage: ignoring unsupported encoding type Enc(0xFFFFFEC7)
03/04/2024 15:53:22 rfbProcessClientNormalMessage: ignoring unsupported encoding type Enc(0xFFFFFECD)
03/04/2024 15:53:22 rfbProcessClientNormalMessage: ignoring unsupported encoding type Enc(0xC0A1E5CE)
03/04/2024 15:53:22 rfbProcessClientNormalMessage: ignoring unsupported encoding type Enc(0x574D5664)
03/04/2024 15:53:22 Enabling full-color cursor updates for client 127.0.0.1
03/04/2024 15:53:22 Using tight encoding for client 127.0.0.1
03/04/2024 15:53:22 Sending rfbEncodingExtDesktopSize for size (1024x768)
rdmsr to register 0x140 on vcpu 0
wrmsr to register 0x140(0) on vcpu 0
rdmsr to register 0x140 on vcpu 1
wrmsr to register 0x140(0) on vcpu 1
rdmsr to register 0x34 on vcpu 1
rdmsr to register 0xc0011029 on vcpu 1
Unhandled ps2 mouse command 0xe1
Unhandled ps2 mouse command 0x0a
Unhandled ps2 mouse command 0x01
Unhandled ps2 mouse command 0x41
Unhandled ps2 mouse command 0x88
 

Patrick M. Hausen

Hall of Famer
Joined
Nov 25, 2013
Messages
7,776
This is expected to be fixed with the upcoming TN CORE 13.3.
 
Top