Openstack Icehouse Spice配置

来源:互联网 发布:活塞五虎有多厉害 知乎 编辑:程序博客网 时间:2024/05/18 03:22

Spice是Red Hat企业虚拟化桌面版中用的组件,已经被Red Hat开源。它的远程桌面性能是目前比较优秀的。几乎能够和物理桌面一样的用户体验。详情请查看官方网站

http://www.spice-space.org/home.html

Openstack使用nova-spicehtml5proxy服务来宿主机的spice来进行通信。而且Openstack icehouse使用spice后,默认使用qxl的驱动,对于想使用openstack做桌面虚拟化的用户来说icehouse版本是目前比较不错的选择。

1   安装Spice

[root@linux-node1 ~]# yum install spice-server spice-client spice-protocol

[root@linux-node1 ~]# /etc/init.d/openstack-nova-novncproxy stop

2   安装spice-html5

[root@linux-node1 ~]# wget http://cgit.freedesktop.org/spice/spice-html5/snapshot/spice-html5-0.1.4.tar.gz

[root@linux-node1 ~]# tar zxvf spice-html5-0.1.4.tar.gz

[root@linux-node1 ~]# mv spice-html5-0.1.4 /usr/share/spice-html5

3.配置nova.conf

需要在Control和Compute端做相同的设置:

注释掉VNC相关的配置,将vnc_enabled明确的设置为false

vnc_enabled=false

[spice]

html5proxy_base_url=http://192.168.1.11:6082/spice_auto.html

server_listen=0.0.0.0

server_proxyclient_address=192.168.1.12

enabled=true

agent_enabled=true

keymap=en-us

4.启动nova-spicehtml5proxy

[root@linux-node1 ~]# /etc/init.d/openstack-nova-spicehtml5proxy start

5.使用spice

启动完毕spicehtml5proxy后,需要重启虚拟机,虚拟机会自动使用Spice。

[root@linux-node2 ~]# ps aux | grep kvm

会出现如下字段说明Spice配置成功。

name=com.redhat.spice.0 -spice port=5900,addr=0.0.0.0

1 0
原创粉丝点击