Virtual Machine
Also known as: VM
Software implementation of a computer that runs its own operating system or programs in isolation from the physical hardware beneath it.
A virtual machine (VM) is a computer implemented in software. The term has two main senses. A system virtual machine imitates a complete physical computer, with virtual processors, memory, disks and network cards, and runs a full guest operating system under the control of a hypervisor. A process virtual machine instead provides a platform-independent environment for a single program: the Java Virtual Machine and the .NET Common Language Runtime, for example, execute portable bytecode on many kinds of hardware.
System VMs are usually stored as disk image files plus a small configuration, which makes them easy to copy, snapshot and move. A snapshot records the full state of a machine so that it can be restored later, and live migration moves a running VM from one physical host to another with little or no interruption. Where the guest uses the same processor architecture as the host, most instructions run directly on the hardware with help from processor extensions. Where architectures differ, tools such as QEMU can translate instructions instead, which is slower and overlaps with emulation.
Virtual machines made it practical to run many independent servers on one physical machine, which is the basis of infrastructure-as-a-service cloud computing. They are widely used to test software on different operating systems, to analyze malware safely and to preserve legacy systems. Compared with containers, VMs carry more overhead because each includes its own kernel, but they offer stronger isolation and can run entirely different operating systems. Many deployments combine the two, running containers inside virtual machines to gain both portability and a firmer security boundary.
Key points
- System virtual machines imitate a whole computer and run a complete guest operating system.
- Process virtual machines, such as the Java Virtual Machine, run portable bytecode for a single program.
- Snapshots and live migration make virtual machines easy to back up, restore and move between hosts.
- Virtual machines isolate workloads more strongly than containers but use more memory and storage.
Related entries
Hypervisor
Software, firmware or hardware layer that creates and runs virtual machines, allocating physical resources among them and keeping them isolated.
Virtualization
Technique of creating software-based versions of computers, storage or networks so that one physical machine can host many isolated environments.
Container
Lightweight, isolated package that bundles an application with its dependencies and configuration so it runs consistently across environments.
QEMU
Free and open-source machine emulator and virtualizer that runs operating systems and programs built for one processor architecture on another.
Emulation
Use of software or hardware to imitate another computer system, allowing programs written for one platform, such as an old console, to run on another.
Java
Class-based, object-oriented programming language from Sun Microsystems whose programs run on the Java Virtual Machine across many platforms.
Proxmox VE
Open-source server virtualization platform based on Debian that manages KVM virtual machines and Linux containers through a web interface.
Sandboxing
Security technique that runs programs in a restricted, isolated environment so that malicious or faulty code cannot harm the rest of the system.
Referenced by
Other entries that discuss or point to Virtual Machine.