This way the use of their own production of Yum source installation OpenStack (ALLinONE), basically a set of a quasi, will not make mistakes, suitable for beginners to install. First, the use of VMware installation REDHAT7 operating system Baidu disk address Https://pan.baidu.com/s/1qXC6duW (hard disk 20G enough), and in the installation process to select a custom partition, the following partitions: Partition size note/boot 200m boot/ Swap 1024m virtual memory/10g root partition
Leave the remaining space for subsequent cinder-volumes after the installation is complete, you can create a new partition and specify a name Cinder-volumnes
Fdisk-l/DEV/SDA
Fdisk/dev/sda
N
P
W
Partprobe
Pvcreate/dev/sda3
Vgcreate Cinder-volumes/dev/sda3
Finally, you can use the command to view: VGS
Set host
Vi/etc/hosts
192.168.56.145 OpenStack Two, upload create the mirror of the virtual machine to the download directory, and mount to the/media/cdrom, use the mirror to do the local source
root@openstack# mount-o loop-t iso9660/home/hadoop/downloads/rhel-server-7.0-x86_64-dvd.iso/media/cdrom/
Root@openstack#vi/etc/yum.repo.do/redhat-base.repo
[redhat-base]
name = Redhat-base
baseurl=file:/// Media/cdrom
enable=1
gpgcheck=0
Third, download the required Epel and Juno Source of compressed files (Baidu disk address: Https://pan.baidu.com/s/1bp3dxJh), extract to the specified directory/var/pub/, and then configure the Epel source and Openstack-juno source
CD/ETC/YUM.REPO.D
vi epel.repo
--------------------------------------
[Epel]
name=local Epel
baseurl=file:///var/pub/epel
enable=1
gpgcheck=0
vi openstack-juno.repo
------------------ --------------------
[Openstack-juno]
Name=openstack-juno
Baseurl=file:///var/pub/openstack-juno
enable=1
gpgcheck=0
After the above source installation completes, do the following, empty the Yum cache, and then update
root@openstack# Yum Clean all
root@openstack# yum repolist root@openstack# yum Makecache
Iv. Direct command Installation (ALLinONE mode)
root@openstack# Yum Install openstack-packstack
root@openstack# packstack- Provision-demo=n
Waiting for installation to complete will print the following information indicating successful installation
Applying 192.168.56.145_POSTSCRIPT.PP
192.168.56.145_POSTSCRIPT.PP: [Done]
Applying Puppet manifests [done]
finalizing [done]
* Installation Completed successfully * * * *
Additional Information:
* Time synchronization installation is skipped. Please note this unsynchronized time on server instances might is problem for some OpenStack.
* Did not create a cinder volume group, one already existed
* File/root/keystonerc_admin has been created on OpenStack client host 192.168.56.145. To use the command line tools for you need to source the file.
* To access the OpenStack Dashboard browse to Http://192.168.56.145/dashboard.
Please find your login credentials stored in the keystonerc_admin in your home directory.
* The installation log file is available at:/var/tmp/packstack/20160325-204412-22bd8f/openstack-setup.log
* The generated manifests are available at:/var/tmp/packstack/20160325-204412-22bd8f/manifests Six, configure network information and restart the network
Local network configuration and Network Bridge configuration Ifcfg-br-ex
VI Ifcfg-br-ex
Device=br-ex
Bootproto=static
ipaddr=192.168.56.145
netmask=255.255.255.0
dns1=192.168.56.2
gateway=192.168.56.2
Nm_controlled=no
Defroute=yes
Ipv4_failure_fatal=yes
Ipv6init=no
Onboot=yes
Type=ovsintport
Ovs_bridge=br-ex
Devicetype=ovs
VI ifcfg-eno16777728 (some eno16777736)
device=eno16777728
Onboot=yes
Type=ovsport
Devicetype=ovs
Ovs_bridge=br-ex
Nm_controlled=no
Ipv6init=no
Restart the network service with root privileges without restarting the virtual machine
root@openstack# Service Network Restart
Access Dashboard According to the prompts for successful installation
Http://192.168.56.145/dashboard
User name Admin password can be modified by viewing keystone_admin and login