日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

vncview 多屏_OpenStack中VNC协议实现多屏共享(多屏不踢访问)

發布時間:2025/4/16 编程问答 37 豆豆
生活随笔 收集整理的這篇文章主要介紹了 vncview 多屏_OpenStack中VNC协议实现多屏共享(多屏不踢访问) 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

OpenStack中VNC協議實現多屏共享

by 無若

libvirt設置基本說明:

"vnc"

Starts a VNC server. The port attribute specifies the TCP port number (with -1 as legacy syntax indicating that it should be auto-allocated). The autoportattribute is the new preferred syntax for indicating autoallocation of the TCP port to use. The listen attribute is an IP address for the server to listen on. Thepasswd attribute provides a VNC password in clear text. The keymap attribute specifies the keymap to use. It is possible to set a limit on the validity of the password be giving an timestamp passwdValidTo='2010-04-09T15:51:00' assumed to be in UTC. The connected attribute allows control of connected client during password changes. VNC accepts keep value only. since 0.9.3 NB, this may not be supported by all hypervisors.

The optional sharePolicy attribute specifies vnc server display sharing policy.?"allow-exclusive"?allows clients to ask for exclusive access by dropping other connections. Connecting multiple clients in parallel requires all clients asking for a shared session (vncviewer: -Shared switch). This is the default value.?"force-shared"?disables exclusive client access, every connection has to specify -Shared switch for vncviewer.?"ignore"?welcomes every connection unconditionally since 1.0.6.

Rather than using listen/port, QEMU supports a socket attribute for listening on a unix domain socket path.Since 0.8.8 For VNC WebSocket functionality,websocket attribute may be used to specify port to listen on (with -1 meaning auto-allocation and autoport having no effect due to security reasons). Since 1.0.6

說明:

1、將sharePolicy設置為"ignore"則支持多屏不踢訪問,使用安卓多屏共享訪問時,需要開啟此功能。

2、將sharePolicy設置為'allow-exclusive'則支持token和ip-port方式訪問,這是默認設置,注意使用tightvnc有share connection設置,也支持共享連接(不踢)。

3、將sharePolicy設置為"force-shared"則僅支持token方式訪問。

下面是臨時修改:

#/usr/lib/python2.7/dist-packages/nova/virt/libvirt/config.py

classLibvirtConfigGuestGraphics(LibvirtConfigGuestDevice):def __init__(self, **kwargs):

super(LibvirtConfigGuestGraphics, self).__init__(root_name="graphics",**kwargs)

self.type= "vnc"self.autoport=True

self.keymap=None

self.listen=None

self.sharePolicy= "ignore"

#test code compress

#self.image_compression = "auto_glz"

#self.streaming_mode = "filter"

defformat_dom(self):

dev=super(LibvirtConfigGuestGraphics, self).format_dom()

dev.set("type", self.type)ifself.autoport:

dev.set("autoport", "yes")else:

dev.set("autoport", "no")ifself.keymap:

dev.set("keymap", self.keymap)ifself.listen:

dev.set("listen", self.listen)

dev.set("sharePolicy", "ignore")#test code compress

#self.type == "spice"

#drv_image = etree.Element("image")

#drv_image.set("compression", self.image_compression)

#dev.append(drv_image)

#/usr/lib/python2.7/dist-packages/nova/virt/libvirt/driver.py

#NB some versions of libvirt support both SPICE and VNC

#at the same time. We're not trying to second guess which

#those versions are. We'll just let libvirt report the

#errors appropriately if the user enables both.

add_video_driver =Falseif ((CONF.vnc_enabled andCONF.libvirt.virt_typenot in ('lxc', 'uml'))):

graphics=vconfig.LibvirtConfigGuestGraphics()

graphics.type= "vnc"graphics.keymap=CONF.vnc_keymap

graphics.listen=CONF.vncserver_listen

graphics.sharePolicy= "ignore"guest.add_device(graphics)

add_video_driver= True

總結

以上是生活随笔為你收集整理的vncview 多屏_OpenStack中VNC协议实现多屏共享(多屏不踢访问)的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。