TransWikia.com

Multiple monitors with KVM

Ask Ubuntu Asked by klequis on December 13, 2020

This is my first try to use KVM (have been using VirtualBox for years) and everything was pretty easy to do except getting the VM to display on more than one monitor (I have 2). Both my host and guest are Ubuntu GNOME 16.04.1.

Per various doc, posts etc I have

> Set Display to Type:Spice server

> Set Video to Model: QXL (under which it says "Heads: 1"

I tried adding a second QXL device but when I booted the VM I only got a terminal, no desktop GUI.

An additional note: On the guest, in Display Settings there is only one display.

2 Answers

If you're using virt-manager you can navigate to the video device in the VM details and switch to the XML tab to directly edit the libvirt domain xml. You should see a heads='1' attribute, you can set this up to 4 I believe.

See the documentation on video devices on the libvirt website for additional settings. Specifically if you're using QXL and using resolutions you may run out of video memory and will need to increase the vram value.

You can then select the number of displays being shown in virt-viewer by going to View -> Displays -> *check displays to show*

Answered by Greg B on December 13, 2020

This advice did the trick for me.

Add 2nd display adapter in KVM manager and use remote-viewer spice://localhost:5900.

Answered by M. Brandon Wade on December 13, 2020

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP