Deploy Openstack with RDO and Change VNC console to Spice
-
host os:
centOS 7
server -
config network and keep network working
here the IP address is192.168.122.148
-
install openstack using RDO
sudo yum update -y
#install liberty default
sudo yum install -y https://rdoproject.org/repos/rdo-release.rpm
sudo yum install -y openstack-packstack
packstack --allinone
-
login to http://$YOURIP/dashboard with admin or demo
password is in /root/keystonerc_admin or keystonerc_demo -
config spice manually
stop vnc service and comment the vnc related configuration
systemctl stop openstack-nova-novncproxy.service
# /etc/nova/nova.conf
[DEFAULT]
#novncproxy_host=0.0.0.0
#novncproxy_port=6080
#novncproxy_base_url=http://192.168.122.148:6080/vnc_auto.html
#vncserver_listen=0.0.0.0
#vncserver_proxyclient_address=192.168.122.148
vnc_enabled=False
- install spice service
yum install spice-html5
yum install openstack-nova-spicehtml5proxy
- config spice
# /etc/nova/nova.conf
[spice]
html5proxy_host=0.0.0.0
html5proxy_port=6082
html5proxy_base_url=http://192.168.122.148:6082/spice_auto.html
server_listen=0.0.0.0
enabled=True
agent_enabled=true
keymap=en-us
- open the spice port
iptables -I INPUT -p tcp -m multiport --dports 6082 -m comment --comment "Allow SPICE connections for console access " -j ACCEPT
- restart services
service openstack-nova-compute restart
service httpd restart
systemctl enable openstack-nova-spicehtml5proxy
systemctl start openstack-nova-spicehtml5proxy.service
service openstack-nova-spicehtml5proxy status
- check instance's spice port
ps -ef | grep spice | grep port