addhardware: add "none" video type

In some setups, it is useful to have Spice input, clipboard, audio, etc.,
but not video, for instance when doing GPU passthrough -- one can
interact inside the VM via Spice rather than USB passthrough, and use
a plugged-in monitor or alternate VM viewers like Looking Glass[1] for
video.

It is already possible to specify a "none" video device by manually
typing into the "Model" combobox and hitting "Apply". Yet, this is
unintuitive. Despite being documented everywhere GPU passthrough is
brought up, in the Looking Glass community we still get ~daily support
requests from users who couldn't figure out how to disable Spice video.

This patch makes "None" an explicit option in the video model combobox,
in the hopes that this is more straightforward for users to get right.

[1]: https://looking-glass.io/

Signed-off-by: Tudor Brindus <contact@tbrindus.ca>
This commit is contained in:
Tudor Brindus 2022-02-27 21:14:09 -05:00 committed by Cole Robinson
parent 3065b715d5
commit 990b932c17
1 changed files with 1 additions and 1 deletions

View File

@ -609,7 +609,7 @@ class vmmAddHardware(vmmGObjectUI):
if guest.conn.is_xen():
return ["xen", "vga"]
if guest.conn.is_qemu() or guest.conn.is_test():
return ["vga", "bochs", "qxl", "virtio", "ramfb"]
return ["vga", "bochs", "qxl", "virtio", "ramfb", "none"]
return []
@staticmethod