[GitHub] rafaelweingartner closed pull request #13: Update Quick Installation Guide
rafaelweingartner closed pull request #13: Update Quick Installation Guide
This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:
As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):
diff --git a/source/quickinstallationguide/qig.rst b/source/quickinstallationguide/qig.rst
index c527a60..5307c18 100644
@@ -1,6 +1,6 @@
.. Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
- distributed with this work for additional information#
+ distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
@@ -34,7 +34,7 @@ High level overview of the process
This runbook will focus on building a CloudStack cloud using KVM on CentOS
-6.8 with NFS storage on a flat layer-2 network utilizing layer-3 network
+7.5 with NFS storage on a flat layer-2 network utilizing layer-3 network
isolation (aka Security Groups), and doing it all on a single piece of
@@ -53,8 +53,8 @@ To complete this runbook you'll need the following items:
#. At least one computer which supports and has enabled hardware virtualization.
-#. The `CentOS 6.8 x86_64 minimal install CD
+#. An `CentOS 7.5 x86_64 install ISO, on bootable media
#. A /24 network with the gateway being at xxx.xxx.xxx.1, no DHCP should be on
this network and none of the computers running CloudStack will have a
@@ -71,14 +71,23 @@ CloudStack. We will go over the steps to prepare now.
-Using the CentOS 6.8 x86_64 minimal install ISO, you'll need to install CentOS 6
+Using the CentOS 7.5 x86_64 install ISO, you'll need to install CentOS 7
on your hardware. The defaults will generally be acceptable for this
+installation. You may want to configure network configuration during
+setup - either using the guidelines below, or using a standard access
+configuration which we will modify later.
-Once this installation is complete, you'll want to connect to your freshly
-installed machine via SSH as the root user. Note that you should not allow
-root logins in a production environment, so be sure to turn off remote logins
-once you have finished the installation and configuration.
+Once this installation is complete, you'll want to gain access to your
+server - through SSH (if network is configured) or connected peripherals.
+Note that you should not allow remote root logins in a production
+environment, so be sure to turn off this feature once the installation
+and configuration is complete.
+If your network interface was configured to grant the server internet
+access, it is always wise to update the system before starting:
+ # yum -y upgrade
@@ -86,76 +95,76 @@ once you have finished the installation and configuration.
Configuring the network
-By default the network will not come up on your hardware and you will need to
-configure it to work in your environment. Since we specified that there will
-be no DHCP server in this environment we will be manually configuring your
-network interface. We will assume, for the purposes of this exercise, that
-eth0 is the only network interface that will be connected and used.
-Connecting via the console you should login as root. Check the file
-/etc/sysconfig/network-scripts/ifcfg-eth0, it will look like this by default:
+Unless you have configured it during install, which will not be covered by
+this guide, the network interface will not come up on your hardware and you
+will need to configure it to work in your environment. Since we specified
+that there will be no DHCP server in this environment we will be manually
+configuring your network interface.
-Unfortunately, this configuration will not permit you to connect to the
-network, and is also unsuitable for our purposes with CloudStack. We want to
-configure that file so that it specifies the IP address, netmask, etc. We will
-edit the eth0 interface and make it part of bridge named "cloudbr0" as shown in the
+Connecting via the console you should login as root. We will start by creating
+the bridge that Cloudstack will use for networking. Create and open
+/etc/sysconfig/network-scripts/ifcfg-cloudbr0 and add the following settings:
- You should not use the Hardware Address (aka the MAC address) from our
- example for your configuration. It is network interface specific, so you
- should keep the address already provided in the HWADDR directive.
+ IP Addressing - Throughout this document we are assuming that you will have
+ a /24 network for your CloudStack implementation. This can be any RFC 1918
+ network. However, we are assuming that you will match the machine address
+ that we are using. Thus we may use 172.16.10.2 and because you might be
+ using the 192.168.55.0/24 network you would use 192.168.55.2
+Save the configuration and exit. We will then edit the interface so that it
+makes use of this bridge.
+Open the configuration file of your interaface and configure it as follows:
+ Interface name used as example only. Replace eth0 with your default ethernet interface name.
- IP Addressing - Throughout this document we are assuming that you will have
- a /24 network for your CloudStack implementation. This can be any RFC 1918
- network. However, we are assuming that you will match the machine address
- that we are using. Thus we may use 172.16.10.2 and because you might be
- using the 192.168.55.0/24 network you would use 192.168.55.2
+ You should not use the Hardware Address (aka the MAC address, or UUID) from our
+ example for your configuration. It is network interface specific, so you
+ should keep the address already provided in the UUID directive.
Now that we have the configuration files properly set up, we need to run a few
commands to start up the network:
- # chkconfig network on
+ # systemctl enable network
- # service network start
+ # systemctl restart network
+Note that if you were connected through SSH, you will be temporarily (~5 seconds depending on hardware) disconnected. If the disconnection lasts, there was an error in configuration.
@@ -190,7 +199,7 @@ After you've modified that file, go ahead and restart the network using:
- # service network restart
+ # systemctl restart network
Now recheck with the hostname --fqdn command and ensure that it returns a FQDN
@@ -247,8 +256,8 @@ to enable it and set it to start on boot as follows:
- # chkconfig ntpd on
- # service ntpd start
+ # systemctl enable ntpd
+ # systemctl start ntpd
@@ -263,7 +272,8 @@ We need to configure the machine to use a CloudStack package repository.
no 'official' binaries available. The full installation guide describes how
to take the source release and generate RPMs and and yum repository. This
guide attempts to keep things as simple as possible, and thus we are using
- one of the community-provided yum repositories.
+ one of the community-provided yum repositories. Furthermore, this example
+ assumes a 4.11 Cloudstack install - substitute versions as needed.
To add the CloudStack repository, create /etc/yum.repos.d/cloudstack.repo and
insert the following information.
@@ -272,7 +282,7 @@ insert the following information.
@@ -306,13 +316,13 @@ appropriately on them with the following commands:
# mkdir -p /export/primary
# mkdir /export/secondary
-CentOS 6.x releases use NFSv4 by default. NFSv4 requires that domain setting
+CentOS 7.x releases use NFSv4 by default. NFSv4 requires that domain setting
matches on all clients. In our case, the domain is cloud.priv, so ensure that
the domain setting in /etc/idmapd.conf is uncommented and set as follows:
Domain = cloud.priv
-Now you'll need uncomment the configuration values in the file
+Now you'll need to add the configuration values at the bottom in the file
+/etc/sysconfig/nfs (or merely uncomment and set them)
@@ -323,38 +333,26 @@ Now you'll need uncomment the configuration values in the file
-Now we need to configure the firewall to permit incoming NFS connections.
-Edit the file /etc/sysconfig/iptables
- -A INPUT -s 172.16.10.0/24 -m state --state NEW -p udp --dport 111 -j ACCEPT
- -A INPUT -s 172.16.10.0/24 -m state --state NEW -p tcp --dport 111 -j ACCEPT
- -A INPUT -s 172.16.10.0/24 -m state --state NEW -p tcp --dport 2049 -j ACCEPT
- -A INPUT -s 172.16.10.0/24 -m state --state NEW -p tcp --dport 32803 -j ACCEPT
- -A INPUT -s 172.16.10.0/24 -m state --state NEW -p udp --dport 32769 -j ACCEPT
- -A INPUT -s 172.16.10.0/24 -m state --state NEW -p tcp --dport 892 -j ACCEPT
- -A INPUT -s 172.16.10.0/24 -m state --state NEW -p udp --dport 892 -j ACCEPT
- -A INPUT -s 172.16.10.0/24 -m state --state NEW -p tcp --dport 875 -j ACCEPT
- -A INPUT -s 172.16.10.0/24 -m state --state NEW -p udp --dport 875 -j ACCEPT
- -A INPUT -s 172.16.10.0/24 -m state --state NEW -p tcp --dport 662 -j ACCEPT
- -A INPUT -s 172.16.10.0/24 -m state --state NEW -p udp --dport 662 -j ACCEPT
-Now you can restart the iptables service with the following command:
+Now we need to disable the firewall, so that it will not block connections.
+ Configuration of the firewall on CentOS7 is beyond the purview of this
+To do so, simply use the following two commands:
- # service iptables restart
+ # systemctl stop firewalld
+ # systemctl disable firewalld
We now need to configure the nfs service to start on boot and actually start
it on the host by executing the following commands:
- # service rpcbind start
- # service nfs start
- # chkconfig rpcbind on
- # chkconfig nfs on
+ # systemctl enable rpcbind
+ # systemctl enable nfs
+ # systemctl start rpcbind
+ # systemctl start nfs
Management Server Installation
@@ -369,6 +367,13 @@ Database Installation and Configuration
We'll start with installing MySQL and configuring some options to ensure it
runs well with CloudStack.
+First, as CentOS 7 no longer provides the MySQL binaries, we need to add a repository:
+ # wget http://repo.mysql.com/mysql-community-release-el7-5.noarch.rpm
+ # rpm -ivh mysql-community-release-el7-5.noarch.rpm
+ # yum -y update
Install by running the following command:
@@ -404,8 +409,8 @@ start on boot as follows:
- # service mysqld start
- # chkconfig mysqld on
+ # systemctl enable mysqld
+ # systemctl start mysqld
MySQL connector Installation
@@ -583,7 +588,7 @@ and should already be installed.
- # service libvirtd restart
+ # systemctl restart libvirtd
KVM configuration complete
@@ -720,4 +725,3 @@ Now, click Launch and your cloud should begin setup - it may take several
minutes depending on your internet connection speed for setup to finalize.
That's it, you are done with installation of your Apache CloudStack cloud.
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
Apache Git Services