Installation planning

For our project, we will use Vagrant to create the virtual machines (VMs) and install the operating systems. This document explains how to do it quickly and easily.

1. Deployment System

with Vagrant we will create the virtual machines by defining everything in the Vagrantfile. Once the machines are created, we will use the option –provision to apply all settings automatically. Once the machine is set up, it will no longer be necessary to do it again.

2. Installation of Operating Systems

we will use Rocky Linux for all machines. Here are the general steps for setup:

- Access the virtual machine: 

vagrant ssh [machine_name]
- Update the system: 

sudo dnf update -y
- Install the required packages: For example, for the Apache web server: 

sudo dnf install httpd -y
Configure the service (example for web server): 

sudo systemctl enable --now httpd

3. Configuration of Each Service
DNS Server (Machine: DNS): Install the DNS server (eg BIND): 

sudo dnf install bind -y

sudo systemctl enable --now named
DHCP Server (Machine: DHCP): Install the DHCP server: 

sudo dnf install dhcp-server -y
Web Server (Machine: WEB): Install Apache: 

sudo dnf install httpd -y

sudo systemctl enable --now httpd
DB Server (Machine: DB): Instal·la MySQL: 

sudo dnf install mysql-server -y

sudo systemctl enable --now mysqld

4. Verification

Check that the services are up and running: 

sudo systemctl status [servei]
Example for Apache: 

sudo systemctl status httpd

Connection test: Test that the services are accessible. For example, test the web server:

curl http://[IP_del_servidor_WEB]

Esta web utiliza cookies propias y de terceros para su correcto funcionamiento y para fines analíticos. Contiene enlaces a sitios web de terceros con políticas de privacidad ajenas que podrás aceptar o no cuando accedas a ellos. Al hacer clic en el botón Aceptar, acepta el uso de estas tecnologías y el procesamiento de tus datos para estos propósitos.
Privacidad