spice console in openstack

Documentation for many openstack features exists only in the form of source code. This is a result of everything still being under heavy development. My most recent experience in divining configuration details from python source was related to the use of spice as the console protocol.

I’m told that Redhat is shipping spice enabled by default. Ubuntu still ships with vnc. Converting from vnc to spice should be easy – and it is if you know what nova is looking for. I couldn’t find any practical references in the official documentation nor in any of the various support forums.

Initially, after disabling vnc (‘vnc_enabled=False’ – this is mandatory) and adding the spice configuration options, I was getting libvirt xml files that did not containg any graphics or video stanzas. It turns out that, unlike vnc, spice needs its own tag. Here’s what needs to be appended to nova.conf to bring spice to life:

Controller Node
[spice]
enabled=True
html5proxy_base_url=http://{nova-spiceproxy public IP}:6082/spice_auto.html
keymap=en-us

Compute Nodes
[spice]
agent_enabled=True
enabled=True
html5proxy_base_url=http://{nova-spiceproxy public IP}:6082/spice_auto.html
keymap=en-us
server_listen={private IP of compute node or 0.0.0.0}
server_proxyclient_address={private IP of compute node}

Other notes:
- Be sure to comment out or remove all vnc-related options ~except~ vnc_enabled=False.
- The previous example assumes port 6082 for nova-spiceproxy.
- Ensure that the vncproxy has been disabled and that the spiceproxy is running on this port (or adjust the url’s above accordingly).
- In order to get secure (encrypted) console sessions, you’ll need to enable tls w/ spice.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值