[PATCH virt-install 1/2] Append '--attach' to virt-viewer for local display if spice gl enabled.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Currently SPICE GL support is local-only, So it needs to attach to the
local display.

Signed-off-by: Lin Ma <lma@xxxxxxxx>
---
 virtinst/cli.py | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/virtinst/cli.py b/virtinst/cli.py
index 8a3f6ae..cff1245 100644
--- a/virtinst/cli.py
+++ b/virtinst/cli.py
@@ -423,6 +423,11 @@ def _gfx_console(guest):
             "--connect", guest.conn.uri,
             "--wait", guest.name]
 
+    # Currently virt-viewer needs attaching to the local display while
+    # spice gl is enabled.
+    if guest.has_gl():
+        args.append("--attach")
+
     logging.debug("Launching virt-viewer for graphics type '%s'",
         guest.get_devices("graphics")[0].type)
     return _run_console(args)
-- 
2.8.1

_______________________________________________
virt-tools-list mailing list
virt-tools-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/virt-tools-list



[Index of Archives]     [Linux Virtualization]     [KVM Development]     [CentOS Virtualization]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite Forum]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]     [Video 4 Linux]

  Powered by Linux