BCA / B.Tech 12 min read

Virtual Machine in Operating System

Virtual Machine in Operating System:


Introduction to Virtual Machine (VM):

A Virtual Machine (VM) is an emulation or software-based simulation of a computer system that provides the functionality of a real computer without physical hardware. It is created in an isolated environment where users can run different operating systems and software as if they were running on a physical computer.

Definition of a Virtual Machine:

A virtual machine is an isolated environment that runs as a software on top of a computer system. It emulates hardware resources like CPU, memory, storage, and networking, so that an operating system and applications feel as if they are running on physical hardware.

Types of Virtual Machines:

  • System Virtual Machine: Allows a complete operating system to run on a host system.
  • Process Virtual Machine: Provides an isolated environment for a specific application or process (e.g., Java Virtual Machine - JVM).

History of Virtual Machines:

The concept of virtual machines was developed in the 1960s by IBM for its mainframe computers. In the 1990s, virtualization technology entered the world of personal computing when VMware introduced its first virtualization software.

Components of a Virtual Machine:

  • Hypervisor: A software layer that works between the host machine's hardware and the virtual machines. Type 1 (Bare Metal) runs directly on hardware; Type 2 (Hosted) runs on top of a conventional OS.
  • Virtual Hardware: Provided by the hypervisor, including CPU, RAM, storage, etc.
  • Guest Operating System: The OS that runs inside the virtual machine.
  • Virtual Disk Image: A software emulation of a real disk where the guest OS and application data are stored.

Advantages of Virtual Machines:

  • Efficient Use of Hardware, Isolation, Portability, Flexibility, Security, and foundational for Cloud Computing.

Disadvantages of Virtual Machines:

  • Performance Overhead, high Resource Requirements, Complexity in setup and management, and potentially high Licensing Costs.

Uses of Virtual Machines:

  • Testing and Development, Cloud Hosting, Consolidation of IT Infrastructure, and Data Recovery.

In this Chapter

Virtual Machine in Operating System
Distributed System in Operating System
Real-Time System in Operating System
System Calls in Operating System
System Programs in Operating System
Structure of an Operating System
Layered Design of an Operating System Structure
UNIX in Operating System
Kernel-Based Operating System
Process Concept in Operating System
Interacting Processes in Operating System
Threads in Operating System
Fundamentals of Scheduling in Operating System
Scheduling Criteria in Operating System
Long, Medium, and Short-Term Scheduling
Scheduling Algorithms in Operating System
Structure of a Concurrent System
Critical Region in Operating System
Critical Section in Operating System
Inter-process Communication (IPC) in Operating System
Monitors in Operating System
Semaphores in Operating System
Semaphore Implementation & Uses in Operating System
Logical and Physical Address in Operating System
Swapping in Operating System
Contiguous Allocation in Operating System
Segmentation in Operating System
Paging in Operating System
Virtual Memory using Segmentation in Operating System
Interprocess Communication Protocol in Operating System
Network Operating System
Design Issues in Distributed File System
Network Structure in Operating System
Structure of a Distributed System
File System and Coordination in Operating System
History of Linux in Operating System
Linux Commands
Programmer Interface & File Manipulation in Linux
Process Control in Linux
Kernel & Signals in Linux
File System in Linux
Blocks and Inodes in Linux
System Editors in Linux
Character Transliteration in Linux
The `ed` Line Editor in Linux
The `vi` Editor and Its Commands
Shell Scripting in Linux
Looping & Decision Making in Linux Shell Scripting
Variables & File Name Expansion in Linux
Arrays in Linux Shell Scripting
Subprograms (Functions) in Linux Shell Scripting
C Interface with Linux
Simple Shell Programs in Linux
BCA Part-1 | Operating Systems | Semester-I | MDSU Exam Paper 2023 (Held in 2024)
What is an Operating System (OS)
Operating System (OS) All Important Questions and Answers in English (MDSU)
BCA || Operating System 2025 Paper || MDSU Exam Paper
BCA | OS(Operating System) 2023 Paper | MDSU Exam Paper
Types of Operating Systems
Goals of an Operating System
Operations of an Operating System
Resource Allocation & Functions in an Operating System
Classes of Operating System
Batch Processing in Operating System
Multiprocessing in Operating System
Time-Sharing in Operating System