Cloud Network

Networking | Support | Tricks | Troubleshoot | Tips

Buymecoffe

Buy Me A Coffee

Thursday, May 18, 2017

How to Install Openstack Using Devstack in All-In-One Single Machine on CentOS 7

May 18, 2017
How to Install Openstack Using Devstack in All-In-One Single Machine on CentOS 7
This Guide Will Help You Install OpenStack on CentOS 7.

How to Solve All Error's During Installation of Single & Multiple Node OpenStack in CentOS 7 with Images
https://itcloudnet.blogspot.in/2017/05/how-to-solve-all-errors-during.html

How to Install of OpenStack in CentOS 7 Step by Step Procedure
https://itcloudnet.blogspot.in/2017/05/how-to-install-of-openstack-in-centos-7.html

Interview Questions and Answers on OpenStack for Fresher and Experience 
https://itcloudnet.blogspot.in/2017/05/interview-questions-and-answers-on.html

DevStack is a series of extensible scripts used to quickly bring up a complete OpenStack environment suitable for non-production use. It is used interactively as a development environment. Since DevStack installs all-in-one OpenStack environment, it can be used to deploy OpenStack on a single VM, a physical server or a single LXC container. Each option is suitable depending on the hardware capacity available and the degree of isolation required. A multi-node OpenStack environment can also be deployed using DevStack, but that’s not a thoroughly tested use-case.

For either kind of setup, the steps would involve installing a minimal version of one of the supported Linux distributions and downloading the DevStack git repository. The repo contains a script stack.sh that must be run as a non-root user and will perform the complete install based on configuration settings.


The official approved and tested Linux distributions are Fedora(latest and previous release) and CentOS/RHEL 7(latest major release). The supported databases are MySQL and PostgreSQL. RabbitMQ and Qpid are the recommended messaging service along with Apache as the webserver. The setup defaults to a Flat DHCP network using Nova Network or a similar configuration in Neutron.

The default services configured by DevStack are Keystone, Swift, Glance, Cinder, Nova, Nova Networking, Horizon and Heat. DevStack has a plugin architecture to include additional services that are not included directly in the install.

The process to get DevStack up and running goes like this:
  • Pick a Linux distribution and install it.  I’m using CentOS7.
  • Download DevStack and do a basic configuration.
  • Kick of the install and grab a cup of coffee.
I am Using a Fresh New OS Installation of CentOS 7.

Download CentOS 7 :- https://www.centos.org/download
Download Virtual Box :- https://www.virtualbox.org/wiki/Downloads
Download Script of Devstack :- https://github.com/openstack-dev/devstack
Website of OpenStack :- https://www.openstack.org

Step1 :- How to Install a Minimal CentOS 7 in Virtual Box

Step2 :- Now Update and Install Dependencies by Typing Below Commands
sudo yum update
sudo yum install -y git yum-utils
Step3 :- Add an Openstack User
Step4 :- Now First Login into Root by 'su' then Create a New User and Clone Devstack
Step5 :- Now Installation of Devstack by Running Script
Now You Need to Wait for 2 to 3 minutes and You'll Need to Set a New Password for the
MySQL Database,
RabbitMQ,
Service Admin,
Service Authentication,
Horizon and
Keystone Services.


Expect the Remaining Installation Steps to Take a Long Time at Least 10-30 Minutes (Depending on Your Internet Connection). See Below Screen Shot




Step6 :- Final Step Open Your Browser Visit New Devstack Installation URL
Ex :- http://192.168.0.110


You can login with the username admin, and the password you selected in the configuration file (also shown at the end of DevStack installation).

Thats it! Next I’ll be adding images to OpenStack and creating instances. Stay tuned for more on that. Thanks!

Wednesday, May 10, 2017

How to Solve Error's During Install of Single and Multiple Node OpenStack

May 10, 2017
How to Solve Error's During Install of Single and Multiple Node OpenStack
How to Remove Packstack Answer File



Watch :- How to Install of OpenStack Using RDO in CentOS 7 Step by Step Procedure
https://itcloudnet.blogspot.in/2017/05/how-to-install-of-openstack-in-centos-7.html

Watch :- How to Install Openstack Using Devstack in All-In-One Single Machine on CentOS 7
https://itcloudnet.blogspot.in/2017/05/how-to-install-openstack-using-devstack.html

Watch :- Interview Questions and Answers on OpenStack for Fresher and Experience 
https://itcloudnet.blogspot.in/2017/05/interview-questions-and-answers-on.html

Error 1 :-  No Such File or Directory: /etc/pki/tls/certs/selfcert.crt


OR


Solution 1:-  Just edit the Packstack file ( # vi 09.05.17.conf) then Search for CONFIG_HORIZON_SSL=y  (remove y put n) Save and Quit File





Error 2 :-  Failed to Stop postfix.service: unit postfix.service not loaded


Need to Create a New File of Postfix

Solution 2 :-   cd  /etc/init.d/
                       touch postfix
                       chmod +x /etc/init.d/postfix
                 



Error 3 :-   No such file or directory: '~/packstackca/certs/192.168.0.102ssl_vnc.crt'

Solution 3 :-   ln -s /etc/pki/tls/certs/ssl_vnc.crt  /root/packstackca/certs/192.168.2.102ssl_vnc.crt



Error 4 :-   packstack --allinone issues
cat /var/tmp/packstack/20170504-024009-_PiZap/openstack-setup.log
2017-05-04 02:40:23::ERROR::run_setup::1027::root:: Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/packstack/installer/run_setup.py", line 1019, in main
    raise Exception(output_messages.ERR_NO_ANSWER_FILE % confFile)
Exception: Error: Could not find file date +"%d.%m.%y".conf

Solution 4 :- 

Edit the Configuration file of environment
# vi or nano  /etc/environment
Search for LANG change to your prefer language see below image.

Solution 2 :- 

Solution 2 :- 

Sunday, May 7, 2017

How to Install of OpenStack Using RDO Packstack in CentOS 7 Step by Step Procedure

May 07, 2017
How to Install of OpenStack Using RDO Packstack in CentOS 7 Step by Step Procedure


What is OpenStack ?
How to Solve All Error's During Installation of Single & Multiple Node OpenStack in CentOS 7 with Screenshot
https://itcloudnet.blogspot.in/2017/05/how-to-solve-all-errors-during.html

How to Install Openstack Using Devstack in All-In-One Single Machine on CentOS 7
https://itcloudnet.blogspot.in/2017/05/how-to-install-openstack-using-devstack.html

Interview Questions and Answers on OpenStack for Fresher and Experience 
https://itcloudnet.blogspot.in/2017/05/interview-questions-and-answers-on.html

OpenStack is a free and open-source software platform for cloud computing, mostly deployed as an infrastructure-as-a-service (IaaS). The software platform consists of interrelated components that control diverse, multi-vendor hardware pools of processing, storage, and networking resources throughout a data center.

What is an OpenStack developer?

Providing infrastructure means that OpenStack

makes it easy for users to quickly add new instance, upon which other cloud components can run. Typically, the infrastructure then runs a "platform" upon which a developer can create software applications that are delivered to the end users


Minimum Hardware Requirements

Note :-  To verify that the processor of a system running Red Hat Enterprise Linux has the required CPU extensions and that they are enabled, check the contents of the /proc/cpuinfo

Step1 :- grep -E 'svm|vmx' /proc/cpuinfo | grep nx

If any output is displayed, the processor is capable of hardware virtualization. Otherwise, it is still possible that your processor supports hardware virtualization because manufacturers sometimes just disable the virtualization extensions in the BIOS. Consult the system's BIOS and the motherboard manual provided by the manufacturer.

Single Node ("All in One") Deployments

Processor :- Intel 64bit or AMD64 CPU Extensions and the AMD-V or Intel VT Hardware Virtualization Extensions should be enabled

Memory :- A minimum of 2GB of RAM is recommended
                   A maximum of 4GB of RAM is recommended

Disk Space :-  A minimum of 50 GB of available disk space is recommended
                        A maximum of 1 TB of available disk space is recommended

Network Interface Cards 1 x 1 Gbps

Let Begins the Installation in CentOS Linux 7 (Core) - x86_64

Step1 :- First You Need to Login with Root Account Type  (root or su) then update and upgrade of system - yum update -y
              yum upgrade -y
 Step2 :- Now Type (ss -tulpn) in terminal to check all services are running
 Step2 :- Now we are removing, disabled and stop this services postfix firewalld and networkmanger Type systemctl stop postfix firewalld NetworkManager
or
systemctl stop postfix
systemctl stop firewalld
systemctl stop NetworkManager
Now Type systemctl disable postfix firewalld NetworkManager
or
systemctl disable postfix
systemctl disable firewalld
systemctl disable NetworkManager
 Step3 :-  Now disabled the SELINUX see below image
 Step4 :-  Set FQDN see below image or screenshot
 Step5 :- Now Update the NTPDATE by issuing a command see below image and Official NTP Public Pool Time Servers


 Step6 :- Install the RPM to setup the OpenStack repository by issuing a below command
 and after that update

 Step6 :- Now Install Main Openstack Packstack see below image
 Step7 :- Now edit the generated answer configuration file with a text editor
 
 and replace the following parameters to match the below values in images you can see
 Please consult http://www.pool.ntp.org/en/ server list in order to use a public NTP server near your physical location.



Step 9 :- After you finished editing save and close the file.

 Also, open SSH server configuration file and uncomment PermitRootLogin line by removing the front hashtag as illustrated on the below screenshot.
 Step10 :- restart the sshd service see below screenshot
 Step11 :- Finally start Openstack installation process via the answer file edited see below screenshot


Interview Questions and Answers on OpenStack for Fresher and Experience

May 07, 2017
Interview Questions and Answers on OpenStack for Fresher and Experience

What is the use of Nova in OpenStack?

OpenStack Nova is a component within the OpenStack open source cloud computing platform developed to provide on-demand access to compute resources by provisioning and managing large networks of virtual machines (VMs).

What is open stack Swift?

OpenStack Swift, also known as OpenStack Object Storage, is an open source object storage system that is licensed under the Apache 2.0 license and runs on standard server hardware.


What is neutron in OpenStack?

OpenStack Neutron is an SDN networking project focused on delivering networking-as-a-service (NaaS) in virtual compute environments. Neutron has replaced the original networking application program interface (API), called Quantum, in OpenStack.



What is open stack cloud?

OpenStack is a free and open-source software platform for cloud computing, mostly deployed as an infrastructure-as-a-service (IaaS). The software platform consists of interrelated components that control hardware pools of processing, storage, and networking resources throughout a data center.


What is openstack KVM?

KVM is the hypervisor of choice for OpenStack deployments, because of its tight integration into the Linux kernel and strong support from Operating System vendors like Red Hat, SUSE and Canonical.

Friday, May 5, 2017

Virtualization

May 05, 2017
Virtualization
In this Lab You Will be Learn About Configuration of Virtualization


Step1 :- Install the Virtualization Application

Note :- Restart the Machine and Boot From Virtualization Kernel Option from the GRUB Screen

Step2 :- To Create Virtual Machine 


Step3 :- To Start the Virtual Machine Execute the Following Commands

Step4 :- To Shutdown the Virtual Machine

Web Authentication Client Configuration

May 05, 2017
Web Authentication Client Configuration
In this Tutorial You Will be Learn About Web Authentication Client Configuration



Step1 :- Provide the IP Add of DNS Server is Configured

Step2 :- Provide the Website Information in Host File


Step3 :- Open the Browser & Type  

Web Authentication

May 05, 2017
Web Authentication
In this Tutorial You Will be Learn About Web Authentication


Step1 :- To Secure Website from Unauthorized Users.

Step2 :- Edit the Web Server File


Step3 :- Create a User and Set Password For Web Authentication   


Step4 :- Start the Service