Configure OpenStack to use Spice

Source: Internet
Author: User

Note: Because of repeated configuration over and over during the test configuration process, the following may not be complete and should be verified.


OpenStack, which is built and configured by official documents (Openstack-install-guide-yum-juno), uses NOVNC as the console access for cloud hosts by default, which can be awkward if you need to configure an operating system that uses a GUI. So try to configure using Spice as the console access method.

Even if its configuration is relatively simple, but also puzzled me for a long time, the last step is poor ...


The test environment is a VMware wks,4 node, which is the control node, network node, compute node and storage node, all deployed on CentOS 7.0.

The environment was set up in official documents before the spice was configured, and the tests were available.

The configuration process involves only the control node (192.168.209.11) and COMPUTE nodes (192.168.209.31), and modifies the IP address of the actual environment as appropriate.


Modifying the control node

Install packages

Yum install spice-server spice-protocol openstack-nova-spicehtml5proxy SPICE-HTML5

# # # SPICE-HTML5 from Epel source, Spice-server,spice-protocol from the official CentOS source


Modify the configuration file, comment out the original VNC-related configuration, Add the following configuration information .

There is a need to explicitly specify the Vnc_enabled=false, otherwise the system still uses VNC even if the spice is configured (refer to Official document description)

Vim/etc/nova/nova.conf
[default]vnc_enabled=false[spice]html5proxy_host=192.168.209.11html5proxy_port=6082keymap=en-us


Stop novncproxy and cancel self-booting

Systemctl Stop Openstack-nova-novncproxy.servicesystemctl Disable Openstack-nova-novncproxy.service


Enable Spicehtml5proxy boot and start it

Systemctl Enable Openstack-nova-spicehtml5proxy.servicesystemctl start Openstack-nova-spicehtml5proxy.service


Open 6082 Ports

Firewall-cmd--add-port=6082/tcp--permanentfirewall-cmd--reload


Modifying a COMPUTE node

Install packages

Yum Install Spice-server Spice-protocol SPICE-HTML5

# # # SPICE-HTML5 from Epel source, Spice-server,spice-protocol from the official CentOS source


Modify the configuration file, comment out the original VNC related configuration, add the following configuration information

Vim/etc/nova/nova.conf
[default]vnc_enabled=false[spice]html5proxy_base_url=http://192.168.209.11:6082/spice_auto.htmlserver_listen= 0.0.0.0server_proxyclient_address=192.168.209.31enabled=truekeymap=en-us


Restart Startup Nova-compute

Systemctl Restart Openstack-nova-compute.service


Finally, let me jam for a long time, the client needs to reboot to see the spice console, otherwise the "Reload" button has been displayed.


The final effect appears as follows:

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/59/D6/wKiom1TrgaHSmiTWAANzLJyEZ5Q051.jpg "title=" 20150224032952.png "alt=" Wkiom1trgahsmitwaanzljyez5q051.jpg "/>


This article is from the "foolishfish" blog, make sure to keep this source http://foolishfish.blog.51cto.com/3822001/1615037

Configure OpenStack to use Spice

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.