openstack 使用spice协议连接

 

控制节点:

[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连接

上一篇:H5性能分析及前端性能监控:window.performance


下一篇:android开发面试技巧,程序员工作2年月薪12K,终获offer