nova-vncproxy 是nova中一個單獨的服務組件,需要一個noVNC來實現虛擬機vnc代理到websock,從而實現在瀏覽器使用vnc。
安裝服務
nova-novncproxy
nova-consoleauth
相關配置項
controller節點
#novncproxy lisnten port novncproxy_port=6080 #bind ip 如果想讓別人訪問就要用公網IP novncproxy_host=0.0.0.0
compute節點
#start to use vnc vnc_enabled=true #location of vnc console proxy, in the form of http://127.0.0.1:6080 novncproxy_base_url=http://controller_ip:6080/vnc_auto.html #Ip address on which instance vncserversshould listen vncserver_listen=0.0.0.0
#如果要想使用虛擬機在線遷移,必須監聽所有地址 #the address to which proxy clients should connect vncserver_proxyclient_address=compute_node_ip