Virtual Machine (VM) in Computer Science

๐Ÿ” Basic Definition

A Virtual Machine (VM) is an emulated computer system that provides the functionality of a physical computer. It runs on a host machine and is managed by a hypervisor (also called a virtual machine monitor).

๐Ÿง  Key Concepts

Term Explanation
Host Machine The physical computer that provides resources (CPU, memory, storage) to run VMs.
Guest Machine The virtual machine itself. It acts like an independent computer system.
Hypervisor The software that creates and manages VMs. It allows multiple VMs to run on one physical system. Examples: VMware, VirtualBox, Hyper-V, KVM.
Virtualization The process of creating a VM. It abstracts the hardware so multiple OS instances can run on one physical system.

๐Ÿงฐ What a VM Contains

๐Ÿ”„ Types of Hypervisors

Type Description Example
Type 1 (Bare-metal) Runs directly on hardware, without an underlying OS. Used in servers. VMware ESXi, Microsoft Hyper-V, Xen
Type 2 (Hosted) Runs on a host operating system. Easier for personal or development use. VirtualBox, VMware Workstation

๐Ÿงช Common Uses of VMs

โœ… Advantages

โš ๏ธ Disadvantages