How To Install CentOS 7 by manually Creating LVM Linux Partitions


What Is CentOS?

The CentOS Project is a community-driven free software effort focused on delivering a robust open source ecosystem.

Find more at:

Lab Configuration

In this lab scenario 32 Gb hard disk is used to manually create LVM (Logical Volume Manager) Linux partitions namely boot, swap, root, home, var, srv and tmp. Feel free to adjust the sizes of the partitions accordingly to the requirement of your organization.


Firstly download CentOS 7 at and create bootble CD/DVD

Select Install CentOS 7

CentOS 64-bit-2017-05-19-05-42-39

CentOS 64-bit-2017-05-19-05-43-09

Choose the language and press continue

Watermark CentOS 64-bit-2017-05-19-05-44-58

Watermark CentOS 64-bit-2017-05-19-05-52-35

Watermark CentOS 64-bit-2017-05-19-05-52-36.png

Date & Time

CentOS 64-bit-2017-05-19-05-52-45

Language Support

CentOS 64-bit-2017-05-19-05-53-48

Keyboard Layout

CentOS 64-bit-2017-05-19-05-54-04

Installation Source

CentOS 64-bit-2017-05-19-05-54-12

Software Selection

In this scenario minimal install is selected

Watermark CentOS 64-bit-2017-05-19-05-54-21.png

Installation destination

In this tutorial LVM Linux partitions are created manually

If you are going to create the root (/) partition as a LVM, be sure to create a standard /boot partition separately to keep the boot files and the Linux kernel because the system cannot boot form LVM partitions.

Watermark CentOS 64-bit-2017-05-19-06-35-25

Create The Standard Partition

Create a Standard Boot Partition

Mount Point: /boot
Desired Capacity: 250mb
Device Type: Standard Partition
File System: ext4
Label: boot

CentOS 64-bit-2017-05-19-09-18-21

CentOS 64-bit-2017-05-24-01-30-56

CentOS 64-bit-2017-05-24-01-32-18

Press Update Settings

CentOS 64-bit-2017-05-24-01-35-03

Create The New LVM PV And Rest of The Partitions

Root  partition

Mount Point: /
Desired Capacity: 5 GB
Device Type: LVM [new LVM PV should be created – NewLVM-PV]
File System: ext4
Label: root

CentOS 64-bit-2017-05-24-10-31-43

Create a new LVM PV – NewLVM-PV

CentOS 64-bit-2017-05-24-10-32-54

CentOS 64-bit-2017-05-24-10-33-41

CentOS 64-bit-2017-05-24-10-34-17

Swap partition

Desired capacity is calculated according to the system RAM. If the system RAM is less than 2 GB it should be multiplied by 2, if the system RAM is more than 2 GB, should add 500 mb to the system RAM.

EX -:
system RAM is 250 mb —> Desired Capacity is 500 mb [250 mb * 2]
system RAM is 3 GB —> Desired Capacity is 3.5 GB [3 GB + 500 mb]

Mount Point: not mounted or labled
Desired Capacity: 2 GB [since the system RAM is 1 GB, 1 GB mulitiplied by 2]
Device Type: LVM [NewLVM-PV]
File System: swap
Label: swap

CentOS 64-bit-2017-05-24-10-34-40

CentOS 64-bit-2017-05-24-10-35-35

Home partition

Mount Point: /home
Desired Capacity: 4 GB
Device Type: LVM [NewLVM-PV]
File System: ext4
Label: home

CentOS 64-bit-2017-05-24-10-35-57

CentOS 64-bit-2017-05-24-10-36-49

Tmp partition (optional)

Mount Point: /tmp
Desired Capacity: 2 GB
Device Type: LVM [NewLVM-PV]
File System: ext4
Label: tmp

CentOS 64-bit-2017-05-24-10-37-19

CentOS 64-bit-2017-05-24-10-38-01

Var partition (optional) on web and mail servers (LVM)

Mount Point: /var
Desired Capacity: 3 GB
Device Type: LVM [NewLVM-PV]
File System: ext4
Label: var

CentOS 64-bit-2017-05-24-10-38-27

CentOS 64-bit-2017-05-24-10-39-02

Srv partition (optional) on FTP servers (LVM)

Mount Point: /srv
Desired Capacity: 3 GB
Device Type: LVM [NewLVM-PV]
File System: ext4
Label: srv

CentOS 64-bit-2017-05-24-10-39-24

After creating required partitions press Done

Watermark CentOS 64-bit-2017-05-24-10-40-03

Select Accept Changes

Watermark CentOS 64-bit-2017-05-24-10-40-53

Press Begin Installation

CentOS 64-bit-2017-05-24-10-40-58

Configure Root account password to complete installation

last 1

last 2

Press Finish Configuration

last 3

Press Reboot

last 4

After The REBOOT

After the reboot, login to the root account using the password given

CentOS 64-bit-2017-05-24-05-46-10

To view the file system table use the command [find more at:]

cat /etc/fstab

A file named /etc/fstab lists the devices (typically hard disk partitions) that are to be mounted at boot time.

CentOS 64-bit-2017-05-24-07-28-32

CentOS 64-bit-2017-05-24-07-24-45

To view users

cat /etc/passwd

CentOS 64-bit-2017-05-24-09-11-42

To view created groups

cat /etc/group

CentOS 64-bit-2017-05-24-10-18-59


How to Install NethServer




What is NethServer?

NethServer is an operating system for Linux enthusiasts, designed for small offices and medium enterprises.

Available Features

Watermark NethServerorg_learn-more - features.pngPrerequisites

  • 64 bit CPU
  • 1 GB RAM
  • 8 GB free disk space

In this tutorial NethServer 6.8 is installed.


Download link

Boot the downloaded ISO image from CD/DVD/USB

Choose NethServer interactive install

Watermark  NethServer-2017-04-17-09-28-22.png



Choose the correct LAN, MAC address


Give an appropriate IP address (EX-




Use following credentials

Default username : root
Root password : Nethesis,1234



You can change the root password with following commands in command line or wait and do that in the Server Manager.

passwd root

New password:
Retype new password:

To access NethServer’s Server-manager use the following address in the web browser (change the ip address accordingly)

Watermark  Windows 7 x64 xxx [17]-2017-04-18-02-14-22.png

Windows 7 x64 xxx [17]-2017-04-18-02-15-24.png

Change the root password

Windows 7 x64 xxx [17]-2017-04-18-02-17-54.png

Change the Hostname and the domain name

Windows 7 x64 xxx [17]-2017-04-18-02-19-23.png

Time Zone

Windows 7 x64 xxx [17]-2017-04-18-02-20-45.png

Change the SSH TCP port number or keep the defaults. Changing is recommended because of security reasons.

Windows 7 x64 xxx [17]-2017-04-18-02-20-54.png

Usage statistics will be sent to by default. Select “No Thanks” if you don’t like the option.

Windows 7 x64 xxx [17]-2017-04-18-02-21-03.png

Apply the changes.

Windows 7 x64 xxx [17]-2017-04-18-02-21-09.png

make sure you update using following command

yum update



How to Install NethServer Web Proxy



Select and Install Web Proxy from administration –> Software Center

Watermark Windows 7 x64 xxx [17]-2017-04-19-09-21-31.png

Select Gateway –> Web Proxy

Windows 7 x64 xxx [17]-2017-04-19-09-55-07.png

Supports Four modes

  • Manual: all clients must be configured manually
  • Authenticated users must enter a user name and password in order to navigate
  • Transparent: all clients are automatically forced to use the proxy for HTTP connections
  • Transparent SSL: all clients are automatically forced to use the proxy for HTTP and HTTPS connections

Windows 7 x64 xxx [17]-2017-04-19-09-56-21.png

Configure cache settings too

Windows 7 x64 xxx [17]-2017-04-19-13-10-07.png

Configure the proxy settings in Client Computers. (Proxy server’s listening port is 3128)

Internet Explorer

Tools –> Internet Options –> Connections –> LAN Settings

Watermark Windows XP Pro client [77]-2017-04-19-09-36-38.png


Tools –> Options –> Advanced –> Network –> Settings

Windows XP Pro client [77]-2017-04-19-13-05-06.png


If you want you can Install nethserver-lightsquid package to generate web proxy stats.



How to install pfSense Cluster using CARP



This guide is divided into 4 sections

01 IP address configuration
02 Firewall rule
03 CARP settings
04 Virtual IPs

And also keep in mind that we are using pfSense 2.2.6 version for the tutorial

pfsense cluster 02

01. IP address configuration

Each master and slave device should be equipped with 3 network cards (WAN, LAN and synchronization)

pfSense master

install 3 network cards with appropriate IP configuration

WAN : / 24
LAN : / 24
SYNC : / 24

configure virtual ip addresses for WAN and LAN only on master. These settings will be replicated to the slave [creating virtual IPs will be discussed later in 4th section]

WAN virtual ip : / 24
LAN virtual ip : / 24

pfSense slave

install 3 network cards with appropriate IP configuration

WAN : / 24
LAN : / 24
SYNC : / 24

02. Firewall rule

configure firewall rules on both master and slave (same configuration for both devices)

go to “Firewall” —> “Rules” and select “sync” interface


configure following settings and save

interface : SYNC
protocol : any


03. CARP settings

pfSense slave

go to “Firewall” —> virtual IPs and click CARP settings tab

tick synchronize status
select interface “sync”

carp 00.jpg

pfSense master

go to “Firewall” —> virtual IPs and click CARP settings tab

tick synchronize status
select interface “sync”

and provide

slave machine sync IP address
username and password of slave machine

carp 01.jpg

and don’t forget to tick the following boxes

Synchronize Rules
Synchronize NAT
Synchronize Virtual IPs

carp 02.jpg

carp 03.jpg

04. Virtual IPs

as stated in the early part of the guide we have to create two LAN and WAN virtual IPs.

go to Firewall —> Virtual IPs  and click plus sign

WAN virtual IP

virtual IP 1 wan.jpg

LAN virtual IP

virtual IP 1 LAN.jpg

after creating virtual IPs the system will look like this

virtual IP 1.jpg


After implementing the cluster, conduct testing to make sure it is working in a event of a failover / disaster.