安装Dashbord:[root@hostnamelinux-node1 ~]# yum -y install openstack-dashboard
配置Dashbord:
[root@hostnamelinux-node1 ~]# vim /etc/openstack-dashboard/local_settings
OPENSTACK_HOST = "192.168.56.11"
OPENSTACK_KEYSTONE_DEFAULT_ROLE = "user"
ALLOWED_HOSTS = ['*',]
CACHES = {
'default': {
'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache',
'LOCATION': '127.0.0.1:11211',
}
}
OPENSTACK_HYPERVISOR_FEATURES = {
'can_set_mount_point': True,
'can_set_password': True,
'requires_keypair': True,
}
TIME_ZONE = "Asia/Shanghai"
重启httpd:[root@hostnamelinux-node1 ~]# systemctl restart httpd
通过浏览器访问Dashbord;
[root@hostnamelinux-node1 ~]# cat /etc/httpd/conf.d/openstack-dashboard.conf
WSGIDaemonProcess dashboard
WSGIProcessGroup dashboard
WSGISocketPrefix run/wsgi
WSGIScriptAlias /dashboard /usr/share/openstack-dashboard/openstack_dashboard/wsgi/django.wsgi
Alias /dashboard/static /usr/share/openstack-dashboard/static
<Directory /usr/share/openstack-dashboard/openstack_dashboard/wsgi>
Options All
AllowOverride All
Require all granted
</Directory>
<Directory /usr/share/openstack-dashboard/static>
Options All
AllowOverride All
Require all granted
</Directory>
账号demo,密码demo;
vnc监听地址5900;
[root@hostname linux-node2 ~]# netstat -tnlp
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:5900 0.0.0.0:* LISTEN 15151/qemu-kvm
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 1273/sshd
tcp6 0 0 :::22 :::* LISTEN 1273/sshd
novncproxy监听端口6080;
[root@hostnamelinux-node1 ~]# netstat -tnlp
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:15672 0.0.0.0:* LISTEN 970/beam.smp
tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN 1381/master
tcp 0 0 0.0.0.0:6080 0.0.0.0:* LISTEN 2567/python2
tcp 0 0 0.0.0.0:9696 0.0.0.0:* LISTEN 2306/python2
tcp 0 0 0.0.0.0:8774 0.0.0.0:* LISTEN 2570/python2
tcp 0 0 0.0.0.0:8775 0.0.0.0:* LISTEN 2570/python2
tcp 0 0 0.0.0.0:9191 0.0.0.0:* LISTEN 977/python2
tcp 0 0 0.0.0.0:25672 0.0.0.0:* LISTEN 970/beam.smp
tcp 0 0 0.0.0.0:11211 0.0.0.0:* LISTEN 968/memcached
tcp 0 0 0.0.0.0:9292 0.0.0.0:* LISTEN 981/python2
tcp 0 0 0.0.0.0:4369 0.0.0.0:* LISTEN 1/systemd
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 975/sshd
tcp6 0 0 ::1:25 :::* LISTEN 1381/master
tcp6 0 0 :::35357 :::* LISTEN 1920/httpd
tcp6 0 0 :::5672 :::* LISTEN 970/beam.smp
tcp6 0 0 :::5000 :::* LISTEN 1920/httpd
tcp6 0 0 :::3306 :::* LISTEN 1296/mysqld
tcp6 0 0 ::1:11211 :::* LISTEN 968/memcached
tcp6 0 0 :::80 :::* LISTEN 1920/httpd
tcp6 0 0 :::22 :::* LISTEN 975/sshd
官方镜像地址:
https://docs.openstack.org/image-guide/obtain-images.html
转载于:https://blog.51cto.com/smoke520/2298500