Resolve the problem that Openstack cannot access console after configuring spice mode
Recently, due to the need to install openstck to debug the spice protocol, I tossed about and found that after following the tutorials on the network, the console access spice web interface could not be started, and it could be accessed locally through curl. I read a lot of tutorials that said to open firewall port 6082, but it didn't seem to work. After many attempts, I found:
1. First of all, when we were on openstack, firewall was closed.
two。 After spice is configured, configure open port 6082 through the firewall
`
Firewall-cmd-- state # check the firewall status and enable it if it is not running
Systemctl start firewalld.service
Firewalld-cmd-- add-port=6082/tcp-- permanent # Open Port 6082
Firewalld-cmd-reload
Systemctl stop firewalld.service # configuration is complete and turn off the firewall
`
When you are finished, refresh the browser:
Key: please enable-- > configure-- > turn it off again. If you don't close it, dashboard cannot be accessed. If you don't configure 6082, you cannot access it.