九.Dashboard配置
1.編輯文件 /etc/openstack-dashboard/local_settings
瀏覽器訪問dashboard
進入設置成中文重新登陸
3.開啓mi.nano雲主機
4.創建網絡
5.創建鏡像
十.Networking 服務neutron私有網絡
1.安裝服務
2.編輯``/etc/neutron/neutron.conf
[database] connection = mysql+pymysql://neutron:[email protected]/neutron
[DEFAULT] rpc_backend = rabbit [oslo_messaging_rabbit] rabbit_host = 172.25.29.11 rabbit_userid = openstack rabbit_password = openstack
[DEFAULT] auth_strategy = keystone
[keystone_authtoken] auth_uri = http://172.25.29.11:5000 auth_url = http://172.25.29.11:35357 memcached_servers = 172.25.29.11:11211 auth_type = passwordproject_domain_name = default user_domain_name = defaultproject_name = service username = neutron password = neutron
[DEFAULT] notify_nova_on_port_status_changes = True notify_nova_on_port_data_changes = True [nova]...auth_url = http://172.25.29.11:35357 auth_type = password project_domain_name = default user_domain_name = default region_name = RegionOne project_name = service username = nova password = nova
3.編輯``/etc/neutron/plugins/ml2/ml2_conf.ini``
3.編輯``/etc/neutron/plugins/ml2/ml2_conf.ini
[securitygroup] enable_ipset = True
4.編輯``/etc/neutron/plugins/ml2/linuxbridge_agent.ini``
[linux_bridge] physical_interface_mappings = provider:eth0
[securitygroup] enable_security_group = True firewall_driver = neutron.agent.linux.iptables_firewall.IptablesFirewallDriver
5.編輯``/etc/neutron/l3_agent.ini``
6.配置DHCP代理編輯``/etc/neutron/dhcp_agent.ini``
[DEFAULT] interface_driver = neutron.agent.linux.interface.BridgeInterfaceDriverd hcp_driver = neutron.agent.linux.dhcp.Dnsmasq enable_isolated_metadata = True
7.修改dashboard網絡設置3層開啓
8.創建實例
9.創建網絡,使內網雲主機上網
十一.塊存儲服務cinder
1.創建 cinder 數據庫,之前已經創建完畢
2.安裝服務
3.編輯 /etc/cinder/cinder.conf
4.初始化塊設備服務的數據庫
5.編輯文件 /etc/nova/nova.conf
6.創建服務證書,完成這些步驟: 創建一個 cinder 用戶
admin-openrc
8.創建塊設備存儲服務的 API 入口點
9.在server2計算節點上安裝塊存儲
新加一塊硬盤
fdisk -l
創建LVM 物理卷,創建 LVM 卷組
編輯``/etc/lvm/lvm.conf``文件並完成下面的操作: 在``devices``部分,添加一個過濾器,只接受``/dev/sdb``設備,拒絕其他所有設備
安裝軟件包
編輯 /etc/cinder/cinder.conf
啓動服務
10.web界面上創建雲盤
十二.鏡像製作
1. 創建一個 kickstart 文件,用以自動化安裝配置 image,使用 system-config-kickstart 工具生成
以下是我的 ks.cfg 文件內容
2. 使用上面建立的 ks.cfg 文件建立鏡像
3. 等鏡像安裝完成後,進行壓縮
4.上傳製作好的鏡像