Virtual Machine (VMs)

Often refer the Operating System as a VM. Ok but why?

Software that emulates physical machine:

  • Gives programs the illusion that they run on physical machine
  • Provides platform that is independent of actual underlying hardware
  • Makes it look like hardware has features programs whant

Ex: Could run a machine on x86 but provide RISC-V ISA to the software that runs on top of you.

Some features of a virtual machine: running a program, allocating memory, accessing a file.

System Virtual Machines:

  • Runs OSes
    • Useful for OS development and testing programs on other OS.
  • Hypervisor create and run virtual machines (Manages VMs)