FreeBSD on QEMU and mouse

Host: Kubuntu
Guest (QEMU): FreeBSD 15.1

On host wireless usb mouse.

On guest mouse not present!!!

Code:
/usr/bin/qemu-system-x86_64 \
    -monitor stdio \
    -cpu qemu64 \
    -machine accel=tcg \
    -m 2048 \
    -drive file=hdd/freebsd-15.1.img,format=raw \
    -virtfs local,id=shared_folder_dev_0,path=shara,security_model=none,mount_tag=shared0 \
    -boot order=c \
    -rtc base=localtime \
    -name "FreeBSD" \
    -netdev bridge,br=br0,id=net0 \
    -device rtl8139,netdev=net0 \
    -device qemu-xhci,id=xhci \
    -device usb-tablet,bus=xhci.0

Detected:
ls -l /dev/psm0
Not detected:
ls -l /dev/ums*

I think, must present usb mouse?

Code:
-device qemu-xhci,id=xhci \
-device usb-tablet,bus=xhci.0

How to set up any mouse on console FreeBSD?
 
A short web search points to problems in QEMU not to drive the ps/2 devices actively - they stay, but are defunct - when USB pointer devices are defined. Maybe you could remove the tablet emulation and try again?
 
I don't have way of testing it right now but is there a reason you explicitly metioned these options?
Code:
    -cpu qemu64 \
    -machine accel=tcg \
    -boot order=c \
I suffered the 8139 realtek chips 25 years ago at uni, glad I don't use them now. Any reason why specifically targeting this device? Similarly why explicitly going for qemu-xhci but leaving out virtio drivers?
Same goes with other options - leaving them out would probably lead to better defaults.
 
Remove that usb-tablet device, it's the wrong one. Qemu will automagically add a PS/2 mouse (which is the psm(4) that got detected). Use usb-mouse if you want a USB mouse attached to the guest (ums(4)).
 
Back
Top