Incus Multi Monitor Support

Hi, I’m keen to use Incus and the only thing stopping me at the moment is the ability to run a VM using multiple monitors. I’m using KVM at the moment and virt-viewer gives me 2 displays by setting the video qxl heads=“2”.

  <model type="qxl" ram="8192" vram="65536" vgamem="32768" heads="2" primary="yes"/>
  <address type="pci" domain="0x0000" bus="0x00" slot="0x01" function="0x0"/>

I notice that Incus also uses virt-viewer so I was hoping there is somewhere I can set the number of heads. Thanks

Those kinds of less common QEMU configs can often be done through raw.qemu or raw.qemu.conf, in this case:

stgraber@castiana:~$ incus config show v1
architecture: x86_64
  image.architecture: amd64
  image.description: Ubuntu jammy amd64 (20231229_07:42)
  image.os: Ubuntu
  image.release: jammy
  image.serial: "20231229_07:42"
  image.type: disk-kvm.img
  image.variant: default
  raw.qemu.conf: |-
    [device "qemu_gpu"]
    max_outputs = 4
  volatile.base_image: d2ca6c67d52667e2417482de0053e45958503754545634810780c536eeff0f38 77052993-dde0-4588-a187-043422e1390c
  volatile.eth0.host_name: tap213eb341
  volatile.eth0.hwaddr: 00:16:3e:fb:ae:6d
  volatile.last_state.power: RUNNING
  volatile.last_state.ready: "false"
  volatile.uuid: c05cb6af-2d61-4529-9a8d-3b1a2546fd2c
  volatile.uuid.generation: c05cb6af-2d61-4529-9a8d-3b1a2546fd2c
  volatile.vsock_id: "2765354766"
devices: {}
ephemeral: false
- default
stateful: false
description: ""

Above example uses 4 different heads, so you’d want to set the option to 2 instead in your case.

Thanks so much Stéphane! I was hoping that there would be a raw qemu solution