USB mouse on MacOS arm64 client

Victor Toso victortoso at redhat.com
Mon May 27 15:12:15 UTC 2024


On Mon, May 20, 2024 at 06:52:34PM GMT, Andreas Yankopolus wrote:
> All—
> 
> I’m on an M1 MacBook Pro accessing VMs running on an amd86
> Linux server.
> 
> Is there a way to connect a USB device on the Mac to a VM?

That's the use case for USB redirection. Spice has spice-usbredir
channel which uses the usbredir library to do USB over tcp from
your client to remote QEMU.

As far as I know, usbredir works on Mac but I don't have one at
hand to test. If you are using spice-gtk, the client needs to be
built with that enabled.

> I’m not able to install additional software on the VMs and am
> trying to sort out mouse tracking, which is very laggy using
> the VirtIO Tablet device. Passing the mouse between MacOS and
> the VM seemed worth trying.
> 
> Maybe there’s another option?

If you are allowed to change QEMU command line arguments, you can
use setup usb device over a network port, that uses usbredir
protocol too. Then, you can use usbredirect binary (from usbredir
library) to redirect the local device.

All suggestions considering that usbredir works in your platform.

Cheers,
Victor
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/spice-devel/attachments/20240527/a4f6062f/attachment.sig>


More information about the Spice-devel mailing list