Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

Virtualization Workshop

This workshop aims to understand the concepts of Virtualization, offering hands-on projects on Virtualization, both locally and on the cloud.

Installation and Configuration

For this project, we need to install and configure the following dependencies:
Apache2 (HTTP Server)
OpenSSH Server
Git

Apache2 (HTTP Server)

  1. Download the files
 sudo apt install apache2
  1. Start the server
sudo systemctl start apache2
  1. Enable the server
sudo systemctl enable apache2
  1. Check the status for the service
sudo systemctl status apache2

If the installation is successful it should give the following output:-
demo

Now we need to try to access the webpage
For this we need the IP Address To get the IP Address we need to first install the Net-Tools (Network Tools)

  1. Install Net-tools
sudo apt install net-tools
  1. Run the command
ifconfig

demo

  1. Enter the IP Address in any browser

demo

  1. It should give this output

demo

OpenSSH Server

  1. Download the server
sudo apt install openssh-server
  1. Start the service
sudo systemctl start ssh
  1. Enable the service
sudo systemctl enable ssh
  1. Check the status
sudo systemctl status ssh

If the installation is successful it should give the following output:-
demo

Now we need to check the SSH server, by doing a remote login
On a different machine

ssh Username@IP_Address

Git

  1. Install git
sudo apt install git

Configure the Firewall

We need to configure the firewell so that only the connection to our HTTP Server(port:80) and SSH server (port:22) are allowed

  1. Enable the Firewall
sudo ufw enable
  1. Allow TCP connection for the HTTP server on Port 80
sudo ufw allow http
  1. Allow TCP connection for the SSH remote logins on Port 22
sudo ufw allow ssh

4.Check the status

sudo ufw status

On Cloud

We will study about the deployment of website on EC2 instance using Apache and SSL configurations. This workshop aims to understand the concepts of Virtualization on cloud, running instances on cloud, knowledge about Elastic IP, SSL configurations.

Installation and Configuration

For this project, we need to install and configure the following dependencies:
Git
Apache2 (HTTP Server)
CertBot apache

Install Git

  1. Install Git using the command below
 sudo yum install git

Apache2 (HTTP Server)

  1. Download the files
 sudo yum install httpd
  1. Start the server
sudo systemctl start httpd
  1. Enable the server
sudo systemctl enable httpd
  1. Check the status for the service
sudo systemctl status httpd

Check your server

  1. Go to your web browser and type the public IP address and the port.

Allocate Elastic IP address

  1. From the EC2 side dashboard, go to Elastic IP address and create a new Elastic IP.

  2. Allocate this IP address to the created EC2 instance.

Get your domain name

  1. Visit the website- "https://www.getfreedomain.name/" to get a free domain name service.

  2. Use the Elastic IP address created before to route the domain name to the address.

Create SSL certificate for your DNS

  1. Create a virtual host configuration file:
 sudo nano /etc/httpd/conf.d/<DNS>.conf
  1. Add the Virtual Host Configuration:Add the following configuration to the file:
<VirtualHost *:80>
    ServerName virtualization.mooo.com
    DocumentRoot /var/www/html

    ErrorLog /var/log/httpd/virtualization.mooo.com-error.log
    CustomLog /var/log/httpd/virtualization.mooo.com-access.log combined
</VirtualHost>
  1. Install Certbot with Apache plugin:
sudo yum install certbot-apache
  1. Run CertBot with Apache Plugin
sudo certbot --apache

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages