[SOLVED] SPICE unable to use more monitors

showiproute

Renowned Member
Mar 11, 2020
670
49
68
37
Austria
Hello,

I am using SPICE for an Ubuntu VM with GUI (21.04).
I have installed all the proper drivers within the VM and I am using the up-to-date version of virt-viewer on my Windows 10 desktop (10.0) from here.

It seems that unfortunately I am unable to use more than 1 display within SPICE although I have configured it within my VM settings.

My VM config would be:
Code:
agent: 1
bios: ovmf
boot: order=scsi0;ide2;net0
cores: 8
cpu: host
hostpci0: c1:00,pcie=1,x-vga=1
ide2: none,media=cdrom
machine: q35
memory: 8192
name: UbuntuTest
net0: virtio=BE:63:7F:D9:A3:DC,bridge=vmbr0,firewall=1,tag=10
numa: 0
ostype: l26
scsi0: SSD_NVMe:vm-112-disk-0,discard=on,size=50G,ssd=1
scsihw: virtio-scsi-pci
smbios1: uuid=eb35d6ea-6d62-4dbf-9d18-90555a053773
sockets: 1
usb0: spice,usb3=1
usb1: spice,usb3=1
usb2: spice,usb3=1
usb3: spice,usb3=1
vga: qxl3,memory=64
vmgenid: 3eeb0980-f7b1-4f8b-ba05-057b82fda33f
 
Can the spice monitors been seen inside the VM? Run
Code:
xrandr
 
Hi Richard,
my VM sees four virtual displays:

Code:
Screen 0: minimum 320 x 200, current 2560 x 993, maximum 8192 x 8192
Virtual-1 connected primary 2560x993+0+0 0mm x 0mm
   2560x993      60.00*+
   4096x2160     60.00    59.94 
   2560x1600     59.99    59.97 
   1920x1440     60.00 
   1856x1392     60.00 
   1792x1344     60.00 
   2048x1152     60.00 
   1920x1200     59.88    59.95 
   1920x1080     60.00 
   1600x1200     60.00 
   1680x1050     59.95    59.88 
   1400x1050     59.98    59.95 
   1600x900      60.00 
   1280x1024     60.02 
   1440x900      59.89    59.90 
   1280x960      60.00 
   1280x854      59.95 
   1366x768      59.79    60.00 
   1360x768      60.02 
   1280x800      59.81    59.91 
   1280x768      59.87    59.99 
   1280x720      60.00 
   1152x768      59.95 
   1024x768      60.00 
   800x600       60.32    56.25 
   848x480       60.00 
   720x480       59.94 
   640x480       59.94 
Virtual-2 disconnected
Virtual-3 disconnected
Virtual-4 disconnected


I guess they are disconnected as I have not activated the screens at SPICE?!

1621496692578.png
 
Hi Richard,
my VM sees four virtual displays:

Code:
Screen 0: minimum 320 x 200, current 2560 x 993, maximum 8192 x 8192
Virtual-1 connected primary 2560x993+0+0 0mm x 0mm
   2560x993      60.00*+
   4096x2160     60.00    59.94
   2560x1600     59.99    59.97
   1920x1440     60.00
   1856x1392     60.00
   1792x1344     60.00
   2048x1152     60.00
   1920x1200     59.88    59.95
   1920x1080     60.00
   1600x1200     60.00
   1680x1050     59.95    59.88
   1400x1050     59.98    59.95
   1600x900      60.00
   1280x1024     60.02
   1440x900      59.89    59.90
   1280x960      60.00
   1280x854      59.95
   1366x768      59.79    60.00
   1360x768      60.02
   1280x800      59.81    59.91
   1280x768      59.87    59.99
   1280x720      60.00
   1152x768      59.95
   1024x768      60.00
   800x600       60.32    56.25
   848x480       60.00
   720x480       59.94
   640x480       59.94
Virtual-2 disconnected
Virtual-3 disconnected
Virtual-4 disconnected


I guess they are disconnected as I have not activated the screens at SPICE?!

View attachment 26150
This means all 4 Spice interfaces are there. In order to activate a monitor check in virt-viewer's "File" menu the respective monitor and it will occur in a separate window (then also xrandr will show it as "connected"). AFAICS in your screenshot you use a different client, but should work accordingly (if not try to use virt-viewer@Linux).
 
I've verified the correct behavior with virt-viewer 7.0-2 from official Debian-repo. Recommend to use this version in order to verify whether it's a client or guest problem.
A problem with the client you use combined with the OS cannot be excluded.