4-Intro To VM - Virtualization Basics-26-07-2024
4-Intro To VM - Virtualization Basics-26-07-2024
Virtualization
Introduction to Virtual Machine
A virtual machine (VM) is a virtual representation or emulation of a physical
computer that uses software instead of hardware to run programs and deploy
applications.
A virtual machine is a computer file, typically called an image, that behaves like
an actual computer.
The virtual machine is partitioned from the rest of the system, meaning that the
software inside a VM can't interfere with the host computer's primary operating
system.
How do Virtual Machines work?
Virtual machines use virtualization technology to create virtual hardware—or a
virtual version of a computer on a physical machine.
The physical machine on which the VMs run is called the host, and the VMs
running on the host are called guests.
1. Process VM:
A process VM, also called an application virtual machine or managed runtime
environment (MRE), creates a virtual environment of an OS while an app or
single process is running and destroys it as soon as you exit.
2. System VM:
A system VM (sometimes called hardware virtual machines) simulates a
complete operating system, allowing multiple OS environments to live on the
same machine.
System VMs can run their own OS and applications, and a hypervisor monitors
and distributes the physical host machine’s resources between system VMs.
Cloud Virtual Machines
Cloud virtual machines are simply virtual machines that run on virtual servers in
the cloud.
Many cloud service providers let you create and run cloud virtual machines on
their infrastructure, allowing you to use their powerful servers as host machines
and leverage other software-defined services such as memory and network
storage.
How are Virtual Machines used?
Consolidate servers
Create development and test environments
Support DevOps
Enable workload migration
Improve disaster recovery and business continuity
Create a hybrid environment
Benefits of Virtual Machines
It allows for more efficient utilization of physical computer hardware and is the foundation of
cloud computing.
It mimics the functions of physical hardware to run multiple virtual machines simultaneously
on a single physical machine.
Virtualization uses software to create an abstraction layer over computer hardware that allows
the hardware elements of a single computer (processors, memory, storage and more) to be
divided into multiple virtual computers, commonly called virtual machines (VMs).
Each VM runs its own operating system (OS) and behaves like an independent computer even
though it is running on just a portion of the actual underlying computer hardware.
Introduction to Virtualization
The goal of virtualization is to support portability, improve efficiency, increase
reliability, and shield the user from the complexity of the system.
Virtualization enables cloud providers to serve users with their existing physical
computer hardware.
It enables cloud users to purchase only the computing resources they need when
they need it, and to scale those resources cost-effectively as their workloads
grow.
Businesses use virtualization to use their hardware resources efficiently and get
greater returns from their investment.
Why Virtualization?
By using virtualization, you can interact with any hardware resource with
greater flexibility.
A type 1 hypervisor, or a bare metal hypervisor, interacts directly with the underlying
machine hardware.
A bare metal hypervisor is installed directly on the host machine’s physical hardware, not
through an operating system. In some cases, a type 1 hypervisor is embedded in the machine’s
firmware.
The type 1 hypervisor negotiates directly with server hardware to allocate dedicated resources
to VMs.
The type 2 hypervisor negotiates with the operating system to obtain underlying
system resources. However, the host operating system prioritizes its own
functions and applications over the virtual workloads.
Examples
Type 1 Hypervisor Type 2 Hypervisor
VMware hypervisors like vSphere, ESXi and Microsoft Virtual PC,
ESX.
Oracle Virtual Box,
Microsoft Hyper-V.
VMware Workstation,
Oracle VM Server.
Oracle Solaris Zones,
Citrix Hypervisor.
VMware Fusion,
Oracle VM Server for x86