Ask Your Question

Revision history [back]

I found this and it works:

The method according to the Yitao Jiang experiment on the centos, has successfully installed you can run

Experimental environment: centos 6.3
openstack: G-2013.1.3
libvirt: 0.10.2
qemu: 0.15.0
spice-server: 0.12.0

1 Deploy openstack

2 Install websockify
git clone
cd websockify
python install


pip install websockify

3 Install spice
Libvirt version 0.9.4-23 or higher required
Experimental environment: libvirt-0.10.2, qemu-0.15.0

yum install spice-server spice-client spice-protocol

If the host has a complete graphical interface, you can continue to install the following:

yum install cairo-spice ffmpeg-spice-libs ngspice pixman-spice spice-glib spice-gtk spice-gtk-python spice-gtk-tools spice-xpi

4 Install spice-html5

tar xf spice-html5-0.1.3.tar.gz
cd spice-html5-0.1.3
cp apache.conf.sample / etc / httpd / conf.d / spice.conf
cd ..
cp-r spice-html5-0.1.3 / usr/share/spice-html5

Check the / ect / httpd / conf.d / spice.conf file
cat / etc / httpd / conf.d / spice.conf
# Spice-html5 is a Javascript SPICE client
Alias ​​/ spice / usr/share/spice-html5
<Directory /usr/share/spice-html5>
# This page is broadly available, tune here to make it more restricted.
Allow from all
Satisfy Any
DirectoryIndex spice.html
</ Directory>

5 Creating a Startup Script
/ Etc/init.d/openstack-nova-spicehtml5proxy

6 Modify nova.conf

agent_enabled = True
enabled = True
html5proxy_base_url = http:// <your host ip>: 6082/spice_auto.html
server_listen =
server_proxyclient_address = <your host ip>
keymap = en-us

Need to close the vnc
novnc_enabled = False
Otherwise, create a virtual machine fails, libvirt error:
libvirtError: internal error ifname "tape63a3e58-bf" not in key map

7 boot process
/ Etc / init.d / httpd restart
/ Etc/init.d/openstack-nova-spicehtml5proxy start