Virt-manager cursor issue

I’m trying to use a VM with virt-manager/libvirt/qemu but the graphical console is very hard to control. For some reason the guest cursor appears 2x the size of the system cursor and its acceleration is maybe 4x the regular. I’ve attached a video of it happening below.

guest
(Looks like the gif does it injustice… its about 4x faster in my eyes. Trust me… :slight_smile:)

I’m running Fedora 39 kernel 6.6.3-411.asahi.fc39.aarch64+16k with libvirt-libs-9.7.0-1.fc39.aarch64 and virt-manager-4.1.0-3.fc39.noarch. Here’s my I/O XML.

<input type="keyboard" bus="usb">
  <alias name="input0"/>
  <address type="usb" bus="0" port="1"/>
</input>
<input type="mouse" bus="usb">
  <alias name="input1"/>
  <address type="usb" bus="0" port="2"/>
</input>
<graphics type="spice" port="5900" autoport="yes" listen="127.0.0.1">
  <listen type="address" address="127.0.0.1"/>
</graphics>
<channel type="unix">
  <source mode="bind" path="/run/libvirt/qemu/channel/1-alma9/org.qemu.guest_agent.0"/>
  <target type="virtio" name="org.qemu.guest_agent.0" state="disconnected"/>
  <alias name="channel0"/>
  <address type="virtio-serial" controller="0" bus="0" port="1"/>
</channel>
<video>
  <model type="virtio" heads="1" primary="yes"/>
  <alias name="video0"/>
  <address type="pci" domain="0x0000" bus="0x09" slot="0x00" function="0x0"/>
</video>
<controller type="usb" index="0" model="qemu-xhci" ports="15">
  <alias name="usb"/>
  <address type="pci" domain="0x0000" bus="0x02" slot="0x00" function="0x0"/>
</controller>

I can also create an issue upstream if that’s more appropriate… not sure if this is an Asahi issue or not since it works fine on my x86_64 desktop running the same packages and a 4k display.

Try adding a spice agent to the VM configuration to allow auto-resize of the VM to fit the window:
Add Hardware → Channel → Spice agent (spicevmc)
Reboot the VM guest
In the VM window, click View → Scale Display → Auto resize VM with window

The XML config of the hardware should look like this:

<channel type="spicevmc">
  <target type="virtio" name="com.redhat.spice.0" state="connected"/>
  <alias name="channel1"/>
  <address type="virtio-serial" controller="0" bus="0" port="2"/>
</channel>

Screenshot of adding the hardware:

Screenshot of selecting auto resize VM with window:
image

1 Like

Worked great, thanks! Should’ve compared my desktop to my laptop to see what was missing… Appreciate the help!