控制节点:
[default] vnc_enabled=false
[spice]
html5proxy_host=192.168.3.91
html5proxy_port=6082
keymap=en-us
停止novncproxy并取消自启动
systemctl disable --now openstack-nova-novncproxy.service
启用spicehtml5proxy开机自启动并启动它
systemctl enable --now openstack-nova-spicehtml5proxy.service
开放6082端口
firewall-cmd --add-port=6082/tcp –permanent
firewall-cmd --reload
计算节点
yum install spice-server spice-protocol spice-html5
vim /etc/nova/nova.conf
[default]
vnc_enabled=false
[spice]
html5proxy_base_url=http://192.168.3.91:6082/spice_auto.html
server_listen=0.0.0.0
server_proxyclient_address=192.168.3.91
enabled=true
keymap=en-us
重启启动nova-compute
systemctl restart openstack-nova-compute.service
即可通过virt-viewer连接