how to configure SPICE with dual monitor

FiNaR

New Member
Sep 23, 2021
24
2
3
54
hello,

New here and sorry for the low level question, but I am struggling to understand how to run SPICE with dual monitor....

Configuration:
  • VM: Ubuntu 20.10
  • Client: Windows 10 (on a laptop with an additional external monitor (HDMI)
Settings:
  • Hardware -> Display -> SPICE dual monitor (qxl2, memory=128)
when I click on the "console" button and I select SPICE, it download a file that once opened it start the remote session...

I still cannot use the two monitor though :(

what am I doing wrong?
 
  • Like
Reactions: jebbam
When the top bar of the SPICE window is selected to VIew -> Displays ->

Do you see the "Display of 1,2,3 and 4"?
 
When you click on Display 2 will poop up a new monitor for the VM.

What is the VM ubuntu config? qm config 100
 
When you click on Display 2 will poop up a new monitor for the VM.

What is the VM ubuntu config? qm config 100
mmm, no I do not get any pop-up expetially becasu I cannot "clik/flag" the monitor 2...

below the qm config outcome :

boot: order=scsi0;ide2;net0 cores: 2 ide2: none,media=cdrom memory: 16000 name: LinuxWorkSpace net0: virtio=AA:BB:CC:DD:EE:FF,bridge=vmbr0,firewall=1 numa: 0 ostype: l26 scsi0: local-lvm:vm-100-disk-0,size=32G scsihw: virtio-scsi-pci smbios1: uuid=c18bxxxxxxxxxxxxxxxxxxxxxxxxx sockets: 2 vga: qxl2,memory=128 vmgenid: 12251xxxxxxxxxxxxxxxxxxxxxxxxx

not sure if it is ok...

Thank you
 
Last edited:
I got this working in a Debian VM. I wasn't able to see the second monitor in arandr until I ran this, which I now run on startup each time:

Code:
xrandr --addmode Virtual-2 1920x1080
xrandr --output Virtual-2 --mode 1920x1080 --right-of Virtual-1

That works swell, except I can't get the mouse working on the second monitor. I got the mouse working by running spice-vdagent at user startup.
 
Last edited:
I have the same problem, on my linux kvms multiple spice displays are working, but i tried it on windows 10 and spice will not show me additional displays


Code:
root@prompt:~# cat /etc/pve/qemu-server/111.conf
agent: 1,freeze-fs-on-backup=0,fstrim_cloned_disks=1
audio0: device=ich9-intel-hda,driver=spice
boot: order=ide2;scsi0;ide0;net0
cores: 5
cpu: x86-64-v2-AES
ide0: cephfs:iso/virtio-win-0.1.240.iso,media=cdrom,size=612812K
ide2: none,media=cdrom
memory: 4096
meta: creation-qemu=8.0.2,ctime=1697810124
name: ubu-win
net0: virtio=4A:25:5B:C1:DA:EB,bridge=vmbr0,firewall=1
numa: 0
ostype: l26
scsi0: ceph:vm-111-disk-0,iothread=1,size=32G
scsihw: virtio-scsi-single
smbios1: uuid=d4ffcdda-dead-41ac-aa03-ea8bcb821c60
sockets: 1
spice_enhancements: foldersharing=1,videostreaming=all
vga: qxl2,memory=64
vmgenid: 5fac0dd3-11e0-4aa1-8db6-4d08850d5403
Bildschirmfoto vom 2023-10-21 08-53-52.png
 
Last edited: