::: Virtual Aleph ::: Virtualization Techniques: August 2016

VMworld 2016 Banner

VMworld 2016 Banner
VMworld 2016 Barcelona

17 August, 2016

Installing #OpenStack? Yep! On a #VMWare Virtual Machine #VMWorld

Hi all,
as I'm trying to learn in depth OpenStack, I decide to use my home lab to deploy OpenStack Mitaka, in an "All-in-One" virtual machine, using VMWare Workstation Pro 12. I think that in a production environment, this should be done on a VMWare ESXi cluster, using different virtual machines, one for each component of OpenStack (multi-node installation).

I've got OpenStack Mitaka Infrastructure all in one up and running in about 1 hour and a half.

First of all, the description of the environment on which the CentOS 7 VM has been installed; it is one single VM with;

  1. 2 x 2 cores processors
  2. 24 GB RAM
  3. 1 disk sized 250 GB (better if SSD)
  4. no printer
  5. no floppy
  6. 1 bridged network nic (beware that if you use Windows 10, Bridging service is not installed by default and you have to install it manually from the network panel)
Let's do a minimal installation of CentOS 7, no matter the partitioning, just configure static IP as per your needs; I will use IPV4 addressing for the machine with:
  1. IP = 192.168.1.11
  2. NM = /24
  3. DGW = 192.168.1.1
  4. DNSs = 192.168.1.1, 8.8.8.8, 8.8.4.4
set the hostname 
hostnamectl set-hostname "somename.homelab.net"
Go ahead setting SELinux in PERMISSIVE mode and disable NetworkManager with:

setenforce 0
edit /etc/sysconfig/selinux so to have SELINUX=permissive
systemctl stop firewalld
systemctl disable firewalld
systemctl stop NetworkMananager
systemctl disable NetworkManager

Note you will get some onscreen output telling you that you are removing symlinks

As I'm working on CentOS I prefer to install Open Vm Tools, so

yum -y open-vm-tools

update the whole system and enable the RDO repository:

yum update -y
yum install -y https://www.rdoproject.org/repos/rdo-release.rpm

install packstack package

yum install -y openstack-packstack

Now we are ready to start Mitaka OpenStack installation and configuration.
let's generate the answer file that will define the All-in-One configuration
Execute

packstack --gen-answer-file=/root/answer.txt

then edit /root/answer.txt

so to change the following parameters: (you can choose your preferred NTP servers here)

# NTP Server 
CONFIG_NTP_SERVERS=<NTP_Server_IP> 
# Disable Demo Version 
CONFIG_PROVISION_DEMO=n 
# Set KeyStone Admin Password or Admin user Password 
CONFIG_KEYSTONE_ADMIN_PW=<password> 
# Config Horizon over 
SSL CONFIG_HORIZON_SSL=y 
# Disable Nagios 
CONFIG_NAGIOS_INSTALL=n

Now it's time to execute packstack and install Mitaka

packstack --answer-file /root/answer.txt

The installation of the All-in-one solution is a little longer (about 23 minutes), so I will embed a 4x time lapse vide o(best viewed full screen) to let you see what happens quicker, but the full length video can be found at this link



Then we configure the network

[root@somename ~]# cd /etc/sysconfig/network-scripts/ 
[root@somename network-scripts]# cp ifcfg-<name-of-your-nic> ifcfg-br-ex 
[root@somename network-scripts]# vi ifcfg-<name-of-your-nic>
DEVICE=<name-of-your-nic>
HWADDR="<MAC-of-your-nic>" 
TYPE=OVSPort 
DEVICETYPE=ovs 
OVS_BRIDGE=br-ex 
ONBOOT=yes

[root@openstack network-scripts]# vi ifcfg-br-ex 
DEVICE=br-ex 
DEVICETYPE=ovs 
TYPE=OVSBridge 
BOOTPROTO=static 
IPADDR=192.168.1.3 
NETMASK=255.255.255.0 
GATEWAY=192.168.1.1 
DNS1=192.168.1.254
DNS2=<other-DNS-IPAddress> #if you want
DNS2=<other-DNS-IPAddress> #if you want
ONBOOT=yes

Just to see if all is good, do a network restart

systemctl restart network

Here's a quick video (best viewed full screen) with the procedure:



If our changes are persistent, let's do a restart and try to connect to Mitaka Openstack Dashboard, just to have a look around: shutdown -r now

Lets the All-in-One Mitaka OpenStack reboot and wait until all the services are started before trying to connect to the console (about 10 minutes with my home lab) then enjoy the embedded (short) video (best viewed full screen)


If you are so lucky to have a spare Hyperconverged Nutanix, take the opportunity to read this article.

cheers
\aleph



http://creativecommons.org/licenses/by-nc/4.0/This post is published under CC attribution NonCommercial 4.0 International License
The article from I take the information is LinuxTechi that, back in January wrote an article with the
installation of Openstack Liberty. I have changed the format and added the videos

16 August, 2016

I have some #free spare spaces for #sponsors while blogging at #VMWorld #EMEA



Hello all,
if you look at the right of the blog page you can see that there are square spaces for "sponsors".
If you would like to have your logo (125x125 picture pointing to a link of your own) just click on one of the square so to contact me: it's free of charge - just , if you want - I accept hardware perks to empower my home lab.

Just to remember you, today is the last day for Early bird pricing, So be quick and click the image or the link in this post

cheers
\aleph

07 August, 2016

#VMWorld 2016 #EMEA in #Barcelona: are you attending?

Hello all,
as in the past events, this year I'm going to Barcelona for blogging!
Hope to see you there: a lot of new competitors are on the field and I'm very curious to see what's going on this year and what are the new features and the new strategies VMWare will propose this time!
If you are in doubt to attend, do not miss this opportunity! The event (I partecipate to all VMWorld, since 2006 when it was called TSX), is always really interesting both for technical sessions and Hands on Labs (HOL): plus you can network with most of the Cloud Guru on the World!

Check out the opportunity to use Early Bird registration pricing that's been extended 'till August 16th, as written on the VMWorld site

http://www.vmworld.com/en/index.html?src=vmw_so_vex_mfriz_207

I'll hope to see you there!
stay tuned for next posts!



cheers
\aleph0