0% found this document useful (0 votes)
40 views15 pages

Cloud Demo

This document provides information about virtualization software, benefits of virtualization, different types of virtualization including hardware, server, operating system, storage virtualization. It also discusses Docker architecture including Docker engine, client, daemon, images, containers, volumes, networks. Finally, it shows how to install Docker on Linux and Kali Linux and provides commands to run, stop, remove containers and images in Docker.

Uploaded by

Shamsher Khan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
40 views15 pages

Cloud Demo

This document provides information about virtualization software, benefits of virtualization, different types of virtualization including hardware, server, operating system, storage virtualization. It also discusses Docker architecture including Docker engine, client, daemon, images, containers, volumes, networks. Finally, it shows how to install Docker on Linux and Kali Linux and provides commands to run, stop, remove containers and images in Docker.

Uploaded by

Shamsher Khan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 15

Virtualization Software’s

• SolarWinds Virtualization Manager


• VMware Fusion
• Parallels Desktop
• Virtual Box
• VMware Workstation
• QEMU
• Windows Virtual PC
• Microsoft Hyper V
• RedHat Virtualization

Virtualization is the technology to generate virtual instances of computer


resources for multiple uses of the same physical resource

Benefits Of Virtualization
• It saves space as well as operating cost.
• Easy management of the data centers.
• It can increase the Productivity of IT.
• It helps to continue working if the system crashes or any sudden failures.
• Applications and resources are provided more quickly while using
virtualization.
Hardware Virtualization
Hardware Virtualization is the state in which virtual machine software is directly
installed on the hardware. It is used for server platforms to control virtual
machines. You can use different OS and application on top of hardware
virtualization.
Server Virtualization
Server Virtualization is the state in which virtual machine software is directly
installed on the server. It is used in server balancing to balance the load.

Operating System Virtualization


Operating System Virtualization is the state in which the operating system is
installed on the host operating system. It is used for testing applications on
different platforms of the operating system.

Storage Virtualization
Storage Virtualization is the state in which grouping of physical storage is done for
multiple network storage devices to maintain a single storage device. It is mainly
used for backup and recovery purposes

What is Docker?
Docker is a set of platforms as a service product that use OS-level virtualization to
deliver software in packages called containers. Containers are isolated from one
another and bundle their own software, libraries and configuration files; they can
communicate with each other through well-defined channels
Docker Architecture

Docker Engine is an important part of the complete system. Docker Engine is a


service that abides by client-server infrastructure is set up on the guest machine.

The important three components are

1. Server: The server is the docker daemon called dockerd which can manage
and create Docker containers, images, networks, etc
2. Rest API: Rest API controls docker daemon on its processes
3. CLI: Command Line Interface is a user interface that is used to input
commands in the docker

Docker Client: Users of Docker can communicate with Docker via the host. If any
docker command runs, the host moves them to docker daemon, which takes them
out. API of docker is handled by commands from the docker. Docker client can
enable to interact with multiple instances.
Docker Registries: Docker hub is the storage place for Docker images of a public
registry. It can either used as a private docker registry or a public docker registry.
Clients can also create and execute their own private registry

Docker Objects
Images:- Images of the docker are in read-only standard with commands to design
a new docker container. Image of docker can be retrieved from a hub of docker
and utilized. It can add extra steps to the last image and design a modified docker
image. A Client can create his docker images by using a docker file. The first step is
to make a container that creates a docker file and with required instruction
creates own docker image. Docker image, an underneath layer is read-only, and
the first layer can be written. A client can edit and modify only the top layer of a
docker image.

Containers:- Docker container is created after running a docker image. All the
instances and applications run inside the container. A client can use Docker API to
delete, start or stop the container.
This is a sample command to execute a docker container:
docker run -i -t ubuntu /bin/bash
Volumes:- The present data executed by docker is utilized by Docker containers
and saved in Volumes. The entire system is controlled through API if the docker.
Volumes applied on both Linux and Windows platforms. Instead, to edit
information in an editable layer of container, it is better to utilize volumes for
writing Volume’s content is present outside the container, so it doesn’t affect the
container’s size and properties

use -v or –mount flag to initiate a volume in a container.


If the client uses geek volume with the container,
docker run -d –name geekflare -v geekvolume:/app nginx: latest

Networks:- Docker networking is a communication passage for all isolated


containers.

The network drivers in docker: The bridge is the fixed network driver for a
container. clients occupy this network for applications running on self-supporting
containers, i.e. many containers interacting with common docker hosts. The host is
a driver eliminates the network segregation between docker containers and
docker host.

Overlay: The network renders team services to interact with others. This is applied
only if the container is executing on multiple Docker guest or team services
generated by many applications. A driver disconnects all the networking is called
as a None driver

Macvlan: The driver assigns a unique address in MAC to all containers to resemble
them like hardware systems. They control the traffic in between containers with
their MAC addresses. The network is enabled if needed. for example, when the
migration of virtual machine setup.

How to install Docker


1. Community Edition (CE)
2. Enterprise Edition (EE)

Community Edition Docker is a free Docker platform and is mostly suited for
individual developers and small organizations,
Steps to Install Docker CE on Linux

Docker is one of the most popular tools for pen testers, as well as Ethical hackers.
This tool acts as a container for running tools without installing them. I will show
you the easiest way to install Docker on Kali Linux and get it running in less than 5
minutes.

#sudo apt update


Step 1: Install Docker on Kali System
sudo apt install -y docker.io
Step 2: Verify Installation
sudo Docker run hello-world

Docker written in GO Language


Then Start Docker
# service docker start
# systemctl start docker
# docker info
# docker version

To Show Running Containers

# docker container ls /or/ docker ps


# docker image ls
# docker network ls

To Create Container

# docker container run ubuntu


or
# docker container run ubuntu cat /etc/os_release
#docker container ls
(nothing gives you because container immediately close after running cat
command)
To Show All Docker Stopped Container
# docker container ls -a
(container start and then stop few seconds ago)

Run Container For Specific Time


#docker container run ubuntu sleep 30(seconds)
In another terminal (#docker container ls)
#docker container ls -a

To Download Images For Docker


# docker container run nginx
in another terminal (#docker container ls)
now stop nginx ctrl+c
again #docker container ls
To Remove Docker Container
#docker container ls -a
# docker container rm container_name
or
#docker container rm ID
#docker container rm ID-1 ID-2

Give The Container Name

# docker container run --name something ubuntu

To Start A Stopped Container


#docker container run ubuntu sleep 30
# docker container start container_name (or ID)

or to stoped container

# docker container stop container_name

To Run Container in Background

we use -d = detach
# docker container run -d ubuntu sleep 30
time = how much time u went to run this container

Entered in Container Without Time Limit


#docker container run -it ubuntu /bin/bash
#hostname
#cat /etc/os_release
#exit
and check #docker container ls
To Running On Container In Background

ctrl + p + q
To Remove All Container At One Time
#docker container ls -a
#docker container ls -aq
# docker container rm $(docker container ls -aq)

To Get Details About Container


#docker container run -d nginx
now what is ip of this container and more information
# docker container inspect ID
now access ip in browser

Port Mapping Or Port Forwarding In Docker

Port Forwarding in Docker


if any request comes on 192.168.43.72:3600 → the request will redirect to
172.17.0.2:80

# docker container run -d -p 3600:80 nginx


#netstat -ntlp

check in Browser 172.17.0.3 or 192.168.43.72:3600

To Get Shell of Running Container


if you want to install some packages in container
# docker container exec -it container_ID /bin/bash

Delete All Container That Not In Use


# docker container prune (or add -f)
What is Google Colab

Google Collaboratory or Google Colab is a Jupiter notebook environment that runs


on a free Google cloud service. It provides free access to GPUs as well as TPUs.
Additionally, it requires zero configuration and is easy to share our code with the
community.
Since Google Colab comes with popular libraries such as Keras, TensorFlow,
Pytorch, and OpenCV, the advantage is that we can use it to improve our
Programming language, coding skills as well as Develop Deep learning applications.

Specifications
It gives you a high-end Virtual Machine instance with –

12GB of RAM,
Unlimited Bandwidth,
1 Gbps Internet Speed and
16 GB of Nvidia GPU for a maximum of 12 hours

Step #1: Login to Google Account

• First, login into a Google account. If you don’t have a Google Account, create
a new one.
• Second, click on the below link and you’ll be redirected to the Google Colab
RDP page.

Colab Link: https://colab.research.google.com/github/PradyumnaKrishna/Colab-


Hacks/blob/master/Colab%20RDP/Colab%20RDP.ipynb

Insert your username and password there and run the cell

Step #2: Copy Debian Linux Command

• Go to https://remotedesktop.google.com/headless
o Click Begin > Next > Authorize
o Select your Google Account
o Copy Debian Linux Command
o Return to Google Colab
• Paste the command that you’ve copied in the terminal then press enter
Step #3: Insert six digits pin and Run Cell

• Enter a PIN at least six digits and then enter the same PIN again.
• Wait for the Package Upgrade has completed show up.
• Go to https://remotedesktop.google.com/access.
• Select your remote device.
• If your screen looks similar like the image below, then congrats you have suc-
cessfully created RDP using google colab.

You might also like