@@ -33,8 +33,8 @@ get you up and running with CloudStack with a minimum amount of trouble.
3333High level overview of the process
3434~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
3535
36- This runbook will focus on building a CloudStack cloud using KVM on CentOS
37- 7.5 with NFS storage on a flat layer-2 network utilizing layer-3 network
36+ This guide will focus on building a CloudStack cloud using KVM on CentOS
37+ 7.7 with NFS storage on a flat layer-2 network utilizing layer-3 network
3838isolation (aka Security Groups), and doing it all on a single piece of
3939hardware.
4040
@@ -49,11 +49,11 @@ virtual machines.
4949Prerequisites
5050~~~~~~~~~~~~~
5151
52- To complete this runbook you'll need the following items:
52+ To complete this guide you'll need the following items:
5353
5454#. At least one computer which supports and has enabled hardware virtualization.
5555
56- #. An `CentOS 7.5 x86_64 install ISO, on bootable media
56+ #. An `CentOS 7.7 x86_64 install ISO, on bootable media
5757 <http://mirrors.kernel.org/centos/7/isos/x86_64/> `_
5858
5959#. A /24 network with the gateway being at xxx.xxx.xxx.1, no DHCP should be on
@@ -71,7 +71,7 @@ CloudStack. We will go over the steps to prepare now.
7171Operating System
7272~~~~~~~~~~~~~~~~
7373
74- Using the CentOS 7.5 x86_64 install ISO, you'll need to install CentOS 7
74+ Using the CentOS 7.7 x86_64 install ISO, you'll need to install CentOS 7
7575on your hardware. The defaults will generally be acceptable for this
7676installation. You may want to configure network configuration during
7777setup - either using the guidelines below, or using a standard access
@@ -101,10 +101,10 @@ will need to configure it to work in your environment. Since we specified
101101that there will be no DHCP server in this environment we will be manually
102102configuring your network interface.
103103
104- Before going any further, make sure that "brctl" is installed and available:
104+ Before going any further, make sure that "brctl" and "net-tools" are installed and available:
105105
106106.. parsed-literal ::
107- # yum install bridge-utils -y
107+ # yum install bridge-utils net-tools -y
108108
109109 Connecting via the console you should login as root. We will start by creating
110110the bridge that Cloudstack will use for networking. Create and open
@@ -277,16 +277,16 @@ We need to configure the machine to use a CloudStack package repository.
277277 to take the source release and generate RPMs and and yum repository. This
278278 guide attempts to keep things as simple as possible, and thus we are using
279279 one of the community-provided yum repositories. Furthermore, this example
280- assumes a 4.11 Cloudstack install - substitute versions as needed.
280+ assumes a | release | Cloudstack install - substitute versions as needed.
281281
282282To add the CloudStack repository, create /etc/yum.repos.d/cloudstack.repo and
283283insert the following information.
284284
285- ::
285+ .. parsed-literal ::
286286
287287 [cloudstack]
288288 name=cloudstack
289- baseurl=http://download.cloudstack.org/centos/7/4.11 /
289+ baseurl=http://download.cloudstack.org/centos/$releasev/| version | /
290290 enabled=1
291291 gpgcheck=0
292292
@@ -379,7 +379,6 @@ First, as CentOS 7 no longer provides the MySQL binaries, we need to add a repos
379379.. parsed-literal ::
380380 # wget http://repo.mysql.com/mysql-community-release-el7-5.noarch.rpm
381381 # rpm -ivh mysql-community-release-el7-5.noarch.rpm
382- # yum -y update
383382
384383 Install by running the following command:
385384
@@ -424,29 +423,36 @@ start on boot as follows:
424423 MySQL connector Installation
425424~~~~~~~~~~~~~~~~~~~~~~~~~~~~
426425
427- Install Python MySQL connector using the official MySQL packages repository.
428- Create the file ``/etc/yum.repos.d/mysql.repo `` with the following content:
426+ Previously, we used to install Python and Java MySQL connectors using the official MySQL packages repository.
427+ Due to the version changes and introduced incompatibility in versions 8.x of those packages,
428+ it's advised to disable installing these packages from the MySQL repository (which we previously added)
429+ and install older versions instead.
430+
431+ Edit the file ``/etc/yum.repos.d/mysql-community.repo `` to add the line
432+ "exclude=mysql-connector-python,mysql-connector-java" under the ``[mysql-connectors-community] ``
433+ section of the repo file, so that it looks similar to the below:
429434
430435.. parsed-literal ::
431436
432437 [mysql-connectors-community]
433- name=MySQL Community connectors
434- baseurl=http://repo.mysql.com/yum/mysql-connectors-community/el/$releasever /$basearch/
438+ name=MySQL Connectors Community
439+ baseurl=http://repo.mysql.com/yum/mysql-connectors-community/el/7 /$basearch/
435440 enabled=1
436441 gpgcheck=1
442+ gpgkey=file:/etc/pki/rpm-gpg/RPM-GPG-KEY-mysql
443+ **exclude=mysql-connector-python,mysql-connector-java **
437444
438- Import GPG public key from MySQL:
439-
440- .. parsed-literal ::
441-
442- rpm --import http://repo.mysql.com/RPM-GPG-KEY-mysql
445+ We'll proceed with installing ``mysql-connector-java `` from the Base CentOS repo,
446+ while the ``mysql-connector-python `` will be installed from the Epel repo:
443447
444- Install mysql-connector
445-
446- .. parsed-literal ::
447-
448- yum install mysql-connector-python
448+ .. parsed-literal ::
449449
450+ # yum -y install epel-release
451+ # yum -y install mysql-connector-java mysql-connector-python
452+
453+ Please ensure that the installed version are older than 8.x (i.e. the current
454+ mysql-connector-java version from Epel is 1.1.6, while the mysql-connector-python
455+ version is 5.1.25)
450456
451457Installation
452458~~~~~~~~~~~~
0 commit comments