转一篇好手顺!

原文地址:http://silverskysoft.com/open-stack-xwrpr/2015/07/enable-spice-html5-console-access-in-openstack-kilo/

原文:

Spice Console Access to Instances

Documentation is a bit sparse on what configuration parameters to enable for SPICE console access. This article provides our notes for enabling SPICE on CentOS 7.1 with OpenStack Kilo.

Essentially, the Control node acts a proxy to the Compute node which has the SPICE server. Control node is client of the compute node.

Required Packages

On both Control & Compute:

yum install spice-html5

On Control:

yum install openstack-nova-spicehtml5proxy

Config Files

The file to modify is

/etc/nova/nova.conf

in compute and control nodes.

In both config files, ensure  vnc_enabled=False is explicitly set. If novnc is enabled, ensure that is disabled too.

Control IP = 192.168.1.100
Compute IP = 172.16.1.100   [Internal IP - ports may need to be opened if not already there]

On Control Node

/etc/nova/nova.conf
[DEFAULT]
web=/usr/share/spice-html5
. . .
[spice]html5proxy_host=0.0.0.0
html5proxy_port=6082
html5proxy_base_url=https://192.168.1.100:6082/spice_auto.html# Enable spice related features (boolean value)
enabled=True# Enable spice guest agent support (boolean value)
agent_enabled=true# Keymap for spice (string value)
keymap=en-us

Iptables rule on control node

Since we are allowing access to console via port 6082 on the control node, open this port in iptables.

iptables -I INPUT -p tcp -m multiport --dports 6082 -m comment --comment "Allow SPICE connections for console access " -j ACCEPT

You can make permanent by adding the above rule to /etc/sysconfig/iptables (before the reject rules) saving and restarting iptables.

Config Changes on Compute Node

/etc/nova/nova.conf
[DEFAULT]
web=/usr/share/spice-html5
. . .
[spice]html5proxy_base_url=https://192.168.1.100:6082/spice_auto.html
server_listen=0.0.0.0
server_proxyclient_address=172.16.10.100# Enable spice related features (boolean value)
enabled=True# Enable spice guest agent support (boolean value)
agent_enabled=true# Keymap for spice (string value)
keymap=en-us

Restart services

On Compute

# service openstack-nova-compute restart

On Control

# service httpd restart
# service openstack-nova-spicehtml5proxy start
# service openstack-nova-spicehtml5proxy status
# systemctl enable openstack-nova-spicehtml5proxy

Concepts

Here the control node is an HTML proxy that connects to the SPICE server+port that is running when a VM is instantiated.
Here are some notes on some of the unclear options:

html5proxy_host

This line indicates the HTML5 proxy should run on localhost without IP binding (0.0.0.0) – control node in this case.

html5proxy_base_url

This indicates the base URL to use when you click ‘console’ on the Horizon dashboard. Its noted that this URL must be accessible in the same network as the Horizon dashboard. In our case, this URL is the control node.

server_listen=0.0.0.0

Server listen specifies where the VM instances should listen for SPICE connections. This is the local IP address (compute node)

server_proxyclient_address=172.16.10.100

Server_proxyclient_address is the address which clients such as HTML5 proxy will use to connect to the VMs running on the Compute Node. This is an internal address most likely not accessible to the outside world but accessible to the control node. This address is the internal IP address of the compute node.

Gotchas

Be sure about what config change goes in which node. Iptables is another to look out for, if you plan to use consoles regularly, make the iptables rules permanent.

“console is currently unavailable. Please try again later.”
Under the hood,
You’ll see
“ERROR: Invalid console type spice-html5 (HTTP 400)”
when you do
nova get-spice-console spice-html5

This generally means, the VM did not start with SPICE enabled. The causes for that could be one of the services did not restart after config change.
Double check the config file – make sure ‘enabled=true’ is set.

References

http://blog.felipe-alfaro.com/2014/05/13/html5-spice-console-in-openstack/
http://docs.openstack.org/admin-guide-cloud/content/spice-console.html
http://docs.openstack.org/admin-guide-cloud/content/getting-started-with-vnc-proxy.html
http://docs.openstack.org/developer/nova/runnova/vncconsole.html
http://www.slideshare.net/YukihiroKawada/rdo-spice

转载于:https://www.cnblogs.com/xiaohe9527/p/5216867.html

[转]enable spice html5 console access in openstack kilo(centos)相关推荐

  1. Openstack Kilo安装错误汇总

    来新公司的差不多一周多的时间在Centos下安装openstack kilo,使用的文档是官方的2015年10月的英文文档,希望大家别把文档搞错了,我之前因为使用了老版本的中文文档,被坑到了.因为ki ...

  2. OpenStack(Kilo版本)基础架构学习笔记

    一.OpenStack项目简介 OpenStack是一个由NASA(美国国家航空航天局)和Rackspace合作研发并发起的,以Apache许可证授权的自由软件和开放源代码项目. OpenStack  ...

  3. spice html5 鼠标漂移,SPICE-HTML5 鼠标指针BUG修复

    研究SPICE,找到了他们官方指定的HTML5客户端. 下载下来用一下,发现跟网页VNC的水平差不多了. http://www.spice-space.org/page/Html5 服务端直接用QEM ...

  4. HTML5 device access 设备访问

    camera api (含图片预览) 参考地址 主要为利用input type=file, accept="image/*" 进行处理 图片预览方式(两种) const file ...

  5. html5链接access数据库,JDBC连接Access数据库的几种方式详解

    前几天老师让作几个JSP连接数据库的例子,而且连接的数据库是Access数据库,对于这个数据库自己也不是太了解,后来了解到学习JDBC的时候,连接access是很方便的,很容易的,但是在连接的时候也出 ...

  6. html5 console.log,这5个 console.log() 技巧帮你提高工作效率

    作者:Dmitri Pavlutin 译者:前端小智 来源:dmitripavlutin. 点赞再看,养成习惯 本文 GitHub https://github.com/qq44924588... 上 ...

  7. [转] OpenStack Kilo 更新日志

    OpenStack 2015.1.0 (Kilo)更新日志 原文: https://wiki.openstack.org/wiki/ReleaseNotes/Kilo/zh-hans 目录  [隐藏] ...

  8. 使用RDO安装havana、icehouse版本的openstack(centos)

    先安装操作系统:Centos6.4 havana Step 1: Software repositories sudo yum install -y http://rdo.fedorapeople.o ...

  9. qt获取console输出_怎么在Centos 7 安装 Qt-4.8.6-MySQL 驱动?

    Qt 是 C++ 的一个常用 gui 大而全的框架, 包含了很多实用的内容, 包括了数据库连接, 使开发变得非常的简单. MySQL 在 V5 已经是开箱即用了, MySQL-client 驱动默认安 ...

  10. OpenStack(kilo版本)计算服务Nova的安装部署

    OpenStack计算服务是基础设施即服务(IaaS)系统的主要组成部分.OpenStack计算服务使用Keystone来执行其身份验证,使用Horizon作为其管理接口,并使用Glance提供其镜像 ...

最新文章

  1. Android开发常用属性
  2. RabbitMQ 3.6.x 安装和配置--Linux篇
  3. python使用matplotlib可视化、为可视化图像添加标题(title)、自定义标题的字体格式、字体大小、字体颜色等
  4. 求行指针所指的字符串数组中长度最长的字符串所在的行下标
  5. [游戏模版21] Win32 物理引擎 能量守恒
  6. openharmony编译报错ubuntu20.04按照官方文档,hb set报错为OHOS ERROR] Invalid vendor path: /home/openharmony/vendor
  7. IsWindow函数的作用
  8. 所有人都可以是开发人员——《Office 365开发入门指南》视频教程即将上市
  9. 安装mysql显示有5.0_安装MySQL5.0时到如图这一步提示出错了,~
  10. 数据结构与算法快慢指针
  11. iptables端口转发
  12. android权限名及其用途
  13. 诚邀参加“低噪声飞秒激光”( 上海交大)研讨会
  14. 51单片机简易MP3程序驱动蜂鸣器播放
  15. springboot接口签名统一效验_Spring Boot 优雅地实现接口参数校验
  16. html用百度网盘怎么看,百度网盘怎么使用?别人给了我一串字母
  17. 法宝合成时的五行位置分配是什么
  18. 香港银行开户请尽早!附最全开户攻略
  19. 北航3系 (自动化) 控制科学与工程 保研经历
  20. 标准对比-UHAST

热门文章

  1. Acwing 1243 糖果 - IDA*估值函数
  2. 黑科技神器-uTools
  3. window 下 git SERVER 自动部署/生成更新项目 批处理
  4. ChannelHandler 接口继承关系图
  5. Spring boot 自定义拦截器 获取 自定义注解 信息
  6. 阶段5 3.微服务项目【学成在线】_day04 页面静态化_12-页面静态化-页面静态化流程...
  7. 阶段5 3.微服务项目【学成在线】_day01 搭建环境 CMS服务端开发_26-页面查询接口测试-Postman...
  8. 阶段5 3.微服务项目【学成在线】_day01 搭建环境 CMS服务端开发_17-页面查询接口定义-定义模型-需求分析和模型类...
  9. vs code调试console程序报错--preLaunchTask“build”
  10. CICS的临时存储队列操作