Changes

From Amahi Wiki
Jump to: navigation, search
=Setup=
Work * Download [http://mirrors.cat.pdx.edu/centos/7/isos/x86_64/CentOS-7-x86_64-Minimal-1511.iso CentOS 7.2 x86_64 minimal] image and install following [http://www.if-not-true-then-false.com/2014/centos-7-netinstall-guide/ CentOS 7.2 Netinstall Guide] tutorial. * Configure FQDN (<code>/etc/hosts</code> and <code>/etc/hostname</code>) * Added static IP and disabled NetworkManager: sudo systemctl disable firewalld sudo systemctl stop firewalld sudo systemctl disable NetworkManager sudo systemctl stop NetworkManager sudo systemctl enable network sudo systemctl start network * Add users and private keys for SSH login * Disable SSH password and root login * Install Open Stack Mitaka Repo  sudo yum install -y centos-release-openstack-mitaka * Perform OS update  yum -y update * Install Packstack Installer  sudo yum install -y openstack-packstack * Run Packstack to install OpenStack following [https://openstack.redhat.com/Quickstart RDO Quickstart] instructions (as '''root'''):  packstack --allinone --provision-demo=n --os-neutron-ovs-bridge-mappings=extnet:br-ex \ --os-neutron-ml2-type-drivers=vxlan,flat</code> * After completion, configure network bridging. Make /etc/sysconfig/network-scripts/ifcfg-br-ex resemble:<pre>DEVICE=br-exDEVICETYPE=ovsTYPE=OVSBridgeBOOTPROTO=staticIPADDR=192.168.122.212 # Old eth0 IP since we want the network restart to not # kill the connection, otherwise pick something outside your dhcp rangeNETMASK=255.255.255.0 # your netmaskGATEWAY=192.168.122.1 # your gatewayDNS1=192.168.122.1 # your nameserverONBOOT=yes</pre> Make /etc/sysconfig/network-scripts/ifcfg-enp2s0 resemble (no BOOTPROTO!):<pre>DEVICE=enp2s0TYPE=OVSPortDEVICETYPE=ovsOVS_BRIDGE=br-exONBOOT=yes</pre> * Restart network:  systemctl restart network * Extend cinder-volumes past 20GB to allow for creating additional volumes to attach to instances.** Followed the [https://udaraliyanage.wordpress.com/2014/05/23/openstack-increase-volume-capacity OpenStack Increase Volume Capacity] tutorial (substitute any name for ''cinder-volumes'')** After <code>losetup -f /var/lib/cinder/cinder-volumes</code> in progress''/etc/rc.local'' file**# Added <code>&& losetup -f /mnt/backup/stack-volumes</code>**# When extending ''cinder-volumes'', add <code>&& losetup -f</code> and location of new LVM file to sequence.**# Do <code>pvs -v</code> to verify, then reboot and recheck.**# This change is required to ensure the LVM remains intact on reboot.** Created 130Gb additional space for volumes (''/mnt/backup/stack-volumes'').** Total volume space available is now 150GB.
=Build Images=
12,424

edits