title: virt-manager dual monitor mouse not working
body: <p>I set up a Windows 10 VM in virt-manager which works like a charm on my laptop. But when I'm at work I want to use my dual monitor setup. I tried adding a second QXL Monitor which I can activate in the windows settings but as soon as I do that, my cursor disappears and I don't know why.</p>
  
  <p>Here is my VM config:</p>
  
  <pre><code>&lt;domain type='kvm'&gt;
    &lt;name&gt;win10-dm&lt;/name&gt;
    &lt;uuid&gt;66354ae7-c40c-4f3c-aad0-6605e032004e&lt;/uuid&gt;
    &lt;metadata&gt;
      &lt;libosinfo:libosinfo xmlns:libosinfo="http://libosinfo.org/xmlns/libvirt/domain/1.0"&gt;
        &lt;libosinfo:os id="http://microsoft.com/win/10"/&gt;
      &lt;/libosinfo:libosinfo&gt;
    &lt;/metadata&gt;
    &lt;memory unit='KiB'&gt;12582912&lt;/memory&gt;
    &lt;currentMemory unit='KiB'&gt;12582912&lt;/currentMemory&gt;
    &lt;vcpu placement='static'&gt;6&lt;/vcpu&gt;
    &lt;os&gt;
      &lt;type arch='x86_64' machine='pc-q35-3.1'&gt;hvm&lt;/type&gt;
      &lt;bootmenu enable='yes'/&gt;
    &lt;/os&gt;
    &lt;features&gt;
      &lt;acpi/&gt;
      &lt;apic/&gt;
      &lt;hyperv&gt;
        &lt;relaxed state='on'/&gt;
        &lt;vapic state='on'/&gt;
        &lt;spinlocks state='on' retries='8191'/&gt;
      &lt;/hyperv&gt;
      &lt;vmport state='off'/&gt;
    &lt;/features&gt;
    &lt;cpu mode='host-model' check='partial'&gt;
      &lt;model fallback='allow'/&gt;
      &lt;topology sockets='1' cores='6' threads='1'/&gt;
    &lt;/cpu&gt;
    &lt;clock offset='localtime'&gt;
      &lt;timer name='hpet' present='yes'/&gt;
      &lt;timer name='hypervclock' present='yes'/&gt;
    &lt;/clock&gt;
    &lt;on_poweroff&gt;destroy&lt;/on_poweroff&gt;
    &lt;on_reboot&gt;restart&lt;/on_reboot&gt;
    &lt;on_crash&gt;destroy&lt;/on_crash&gt;
    &lt;pm&gt;
      &lt;suspend-to-mem enabled='no'/&gt;
      &lt;suspend-to-disk enabled='no'/&gt;
    &lt;/pm&gt;
    &lt;devices&gt;
      &lt;emulator&gt;/usr/bin/qemu-system-x86_64&lt;/emulator&gt;
      &lt;disk type='file' device='disk'&gt;
        &lt;driver name='qemu' type='raw' cache='none'/&gt;
        &lt;source file='/var/lib/libvirt/images/kvm_storage/win10.img'/&gt;
        &lt;target dev='vda' bus='virtio'/&gt;
        &lt;shareable/&gt;
        &lt;boot order='1'/&gt;
        &lt;address type='pci' domain='0x0000' bus='0x03' slot='0x00' function='0x0'/&gt;
      &lt;/disk&gt;
      &lt;controller type='usb' index='0' model='qemu-xhci' ports='15'&gt;
        &lt;address type='pci' domain='0x0000' bus='0x02' slot='0x00' function='0x0'/&gt;
      &lt;/controller&gt;
      &lt;controller type='sata' index='0'&gt;
        &lt;address type='pci' domain='0x0000' bus='0x00' slot='0x1f' function='0x2'/&gt;
      &lt;/controller&gt;
      &lt;controller type='pci' index='0' model='pcie-root'/&gt;
      &lt;controller type='pci' index='1' model='pcie-root-port'&gt;
        &lt;model name='pcie-root-port'/&gt;
        &lt;target chassis='1' port='0x10'/&gt;
        &lt;address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0' multifunction='on'/&gt;
      &lt;/controller&gt;
      &lt;controller type='pci' index='2' model='pcie-root-port'&gt;
        &lt;model name='pcie-root-port'/&gt;
        &lt;target chassis='2' port='0x11'/&gt;
        &lt;address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x1'/&gt;
      &lt;/controller&gt;
      &lt;controller type='pci' index='3' model='pcie-root-port'&gt;
        &lt;model name='pcie-root-port'/&gt;
        &lt;target chassis='3' port='0x12'/&gt;
        &lt;address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x2'/&gt;
      &lt;/controller&gt;
      &lt;controller type='pci' index='4' model='pcie-root-port'&gt;
        &lt;model name='pcie-root-port'/&gt;
        &lt;target chassis='4' port='0x13'/&gt;
        &lt;address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x3'/&gt;
      &lt;/controller&gt;
      &lt;controller type='pci' index='5' model='pcie-root-port'&gt;
        &lt;model name='pcie-root-port'/&gt;
        &lt;target chassis='5' port='0x14'/&gt;
        &lt;address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x4'/&gt;
      &lt;/controller&gt;
      &lt;controller type='pci' index='6' model='pcie-root-port'&gt;
        &lt;model name='pcie-root-port'/&gt;
        &lt;target chassis='6' port='0x15'/&gt;
        &lt;address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x5'/&gt;
      &lt;/controller&gt;
      &lt;controller type='pci' index='7' model='pcie-to-pci-bridge'&gt;
        &lt;model name='pcie-pci-bridge'/&gt;
        &lt;address type='pci' domain='0x0000' bus='0x05' slot='0x00' function='0x0'/&gt;
      &lt;/controller&gt;
      &lt;controller type='pci' index='8' model='pcie-root-port'&gt;
        &lt;model name='pcie-root-port'/&gt;
        &lt;target chassis='8' port='0x16'/&gt;
        &lt;address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x6'/&gt;
      &lt;/controller&gt;
      &lt;interface type='network'&gt;
        &lt;mac address='52:54:00:16:f2:c0'/&gt;
        &lt;source network='default'/&gt;
        &lt;model type='virtio'/&gt;
        &lt;address type='pci' domain='0x0000' bus='0x01' slot='0x00' function='0x0'/&gt;
      &lt;/interface&gt;
      &lt;serial type='pty'&gt;
        &lt;target type='isa-serial' port='0'&gt;
          &lt;model name='isa-serial'/&gt;
        &lt;/target&gt;
      &lt;/serial&gt;
      &lt;console type='pty'&gt;
        &lt;target type='serial' port='0'/&gt;
      &lt;/console&gt;
      &lt;input type='keyboard' bus='ps2'/&gt;
      &lt;input type='tablet' bus='usb'&gt;
        &lt;address type='usb' bus='0' port='1'/&gt;
      &lt;/input&gt;
      &lt;input type='mouse' bus='ps2'/&gt;
      &lt;graphics type='spice' autoport='yes'&gt;
        &lt;listen type='address'/&gt;
        &lt;image compression='off'/&gt;
        &lt;gl enable='no'/&gt;
      &lt;/graphics&gt;
      &lt;sound model='ich9'&gt;
        &lt;address type='pci' domain='0x0000' bus='0x00' slot='0x1b' function='0x0'/&gt;
      &lt;/sound&gt;
      &lt;video&gt;
        &lt;model type='qxl' ram='65536' vram='65536' vgamem='16384' heads='1' primary='yes'/&gt;
        &lt;address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x0'/&gt;
      &lt;/video&gt;
      &lt;video&gt;
        &lt;model type='qxl' ram='65536' vram='65536' vgamem='16384' heads='1'/&gt;
        &lt;address type='pci' domain='0x0000' bus='0x07' slot='0x01' function='0x0'/&gt;
      &lt;/video&gt;
      &lt;redirdev bus='usb' type='spicevmc'&gt;
        &lt;address type='usb' bus='0' port='2'/&gt;
      &lt;/redirdev&gt;
      &lt;redirdev bus='usb' type='spicevmc'&gt;
        &lt;address type='usb' bus='0' port='3'/&gt;
      &lt;/redirdev&gt;
      &lt;memballoon model='virtio'&gt;
        &lt;address type='pci' domain='0x0000' bus='0x04' slot='0x00' function='0x0'/&gt;
      &lt;/memballoon&gt;
    &lt;/devices&gt;
  &lt;/domain&gt;
  </code></pre>