@@ -106,14 +106,13 @@ It is always wise to update the system before starting:
106106Configuring the Network
107107^^^^^^^^^^^^^^^^^^^^^^^
108108
109- Before going any further, make sure that "bridge-utils" and "net-tools" are installed and available:
109+ Starting with EL8, we must use the Network Manager to configure all network interfaces
110+ (instead of using the network-scripts we have used for so many years).
110111
111- .. parsed-literal ::
112- # dnf install bridge-utils net-tools -y
113-
114- Connecting via the console or SSH, you should login as root. We will start by creating
115- the bridge that Cloudstack will use for networking. Create and open
116- /etc/sysconfig/network-scripts/ifcfg-cloudbr0 and add the following settings:
112+ We will start by creating the bridge that Cloudstack will use for networking
113+ To avoid remote (ssh) disconnections, you should be logging to the server locally,
114+ via console/physical screen (or save the commands below as a script and then run it
115+ via remote ssh session)
117116
118117.. note ::
119118 IP Addressing - Throughout this document we are assuming that you will have
@@ -127,51 +126,21 @@ the bridge that Cloudstack will use for networking. Create and open
127126
128127::
129128
130- DEVICE=cloudbr0
131- TYPE=Bridge
132- ONBOOT=yes
133- BOOTPROTO=none
134- IPV6INIT=no
135- IPV6_AUTOCONF=no
136- DELAY=5
137- IPADDR=172.16.10.2 #(or e.g. 192.168.1.2)
138- GATEWAY=172.16.10.1 #(or e.g. 192.168.1.1 - this would be your physical/home router)
139- NETMASK=255.255.255.0
140- DNS1=8.8.8.8
141- DNS2=8.8.4.4
142- STP=yes
143- USERCTL=no
144- NM_CONTROLLED=no
145-
146- Save the configuration and exit. We will then edit the NIC so that it
147- makes use of this bridge.
148-
149- Open the configuration file of your NIC (e.g. /etc/sysconfig/network-scripts/ifcfg-eth0)
150- and edit it as follows:
129+ #create an "empty” bridge, add eth0 to the bridge, set static IP and reactivate the whole configuration
130+ nmcli connection add type bridge con-name cloudbr0 ifname cloudbr0
131+ nmcli connection modify eth0 master cloudbr0
132+ nmcli connection up eth0
133+ nmcli connection modify cloudbr0 ipv4.addresses '172.16.10.2/24' ipv4.gateway '172.16.10.1' ipv4.dns '8.8.8.8' ipv4.method manual && nmcli connection up cloudbr0
151134
152135.. note ::
153136 Interface name (eth0) used as example only. Replace eth0 with your default ethernet interface name.
154137
155- .. parsed-literal ::
156- TYPE=Ethernet
157- BOOTPROTO=none
158- DEFROUTE=yes
159- NAME=eth0
160- DEVICE=eth0
161- ONBOOT=yes
162- BRIDGE=cloudbr0
163-
164- .. note ::
165- If your physical nic (eth0 in the case of our example) has already been
166- setup before following this guide, make sure that there is no duplication
167- between IP configuration of /etc/config/network-scripts/ifcfg-cloudbr0 and
168- /etc/sysconfig/network-scripts/ifcfg-eth0 which will cause a failure that
169- would prevent the network from starting. Basically, IP configuration
170- of eth0 should be moved to the bridge and eth0 will be added to the bridge.
138+ Optionally, we can install the net-tools:
171139
140+ .. parsed-literal ::
141+ # dnf install net-tools -y
172142
173- Now that we have the configuration files properly set up, we need to run a few
174- commands to start up the network:
143+ Now that we have the configuration files properly set up, let's reboot:
175144
176145.. parsed-literal ::
177146
@@ -261,7 +230,7 @@ and and configure NTP at this stage. Installation is accomplished as follows:
261230
262231.. parsed-literal ::
263232
264- # yum -y install chrony
233+ # dnf -y install chrony
265234
266235 The actual default configuration is fine for our purposes, so we merely need
267236to enable it and set it to start on boot as follows:
@@ -308,7 +277,7 @@ start out by installing nfs-utils.
308277
309278.. parsed-literal ::
310279
311- # yum -y install nfs-utils
280+ # dnf -y install nfs-utils
312281
313282 We now need to configure NFS to serve up two different shares. This is handled
314283in the /etc/exports file. You should ensure that it has the following content:
@@ -371,7 +340,7 @@ runs well with CloudStack.
371340
372341.. parsed-literal ::
373342
374- # yum -y install mysql-server
343+ # dnf -y install mysql-server
375344
376345 This should install MySQL 8.x, as of the time of writing this guide.
377346With MySQL now installed we need to make a few configuration changes to
0 commit comments