VNC是OpenStack的Nova默认的连接协议,面对一些简单的管理工作表现也不错,但是如果用户经常使用Windows桌面,VNC就显得能力不足。一般情况下,使用Spice协议来代替VNC。
# yum install spice-server spice-protocol openstack-nova-spicehtml5proxy spice-html5
(spice-html5来自epel源,包名epel-release,spice-server,spice-protocol来自CentOS官方源)
这里需要明确指定vnc_enabled=false,否则即使配置了spice,系统也仍然使用vnc。
html5proxy_base_url=http://172.27.110.7:6082/spice_auto.html
server_proxyclient_address=172.27.110.7
# systemctl stop openstack-nova-novncproxy.service
# systemctl disable openstack-nova-novncproxy.service
#systemctl enable openstack-nova-spicehtml5proxy.service
#systemctl start openstack-nova-spicehtml5proxy.service
# firewall-cmd --add-port=6082/tcp --permanent
# systemctl disabled firewalld
# systemctl restart openstack-nova-compute.service