← Glossary

What Is a Virtual Machine (VM)?

A virtual machine is a software-defined computer that runs its own guest operating system on virtual hardware provided by a hypervisor. This article explains how hypervisors work, what virtual hardware a guest sees, how VM isolation compares with containers and browser profiles, and what a VM does not change by itself.

Updated:

A virtual machine (VM) is a software-defined computer: a complete environment with its own processor, memory, disk and network adapter, provided or managed by a hypervisor. Some devices can also be passed through from the physical host. Inside it runs a guest operating system that behaves as if it owned a real machine, while sharing physical resources with other workloads, depending on the host architecture. A Windows laptop can run a Linux VM, a Linux server can run several Windows VMs, and cloud providers distribute customer VMs across fleets of physical hosts.

VMs support rented cloud servers, desktop testing and development, although dedicated physical servers remain an option.

How a Hypervisor Runs a Guest OS

The hypervisor is the component that creates and controls VMs. Documentation commonly distinguishes two types. A type 1 or bare-metal hypervisor such as Hyper-V runs directly on the hardware and schedules both the host's and the guests' access to it; Microsoft describes Hyper-V as running directly on computing hardware with near-native performance. A type 2 or hosted hypervisor such as VirtualBox is an application installed on an ordinary operating system and relies on that OS for drivers and device access. In both cases, the guest boots its own kernel and drivers against the devices presented to it.

Modern processors include virtualization extensions that let the guest's instructions run directly on the CPU most of the time, with the hypervisor intervening only when the guest touches something that must be mediated, such as a device or a privileged register. This is why VMs can run at close to native speed for CPU-bound work. A compatible guest OS can often use its standard installer. Support still depends on CPU architecture, firmware and virtual-device drivers. Integration tools can improve graphics and device support or enable conveniences such as clipboard sharing.

Virtual Hardware and Resource Allocation

Each VM is defined by a configuration describing its virtual hardware. The host allocates some number of virtual CPUs, which are scheduled onto physical cores; a fixed or dynamically adjusted amount of memory, which is taken from the host while the VM runs; one or more virtual disks, stored as image files on the host's storage and presented to the guest as complete drives; and virtual network adapters connected to a virtual switch. VirtualBox, for instance, allows disk images that grow as data is written or are allocated at full size up front, and exposes virtual IDE, SATA or SCSI controllers to the guest.

Networking deserves attention because it determines what the outside world sees. In a NAT configuration, the default in desktop hypervisors, the guest receives a private address from the hypervisor and its traffic leaves the host carrying the host's IP address, so websites see the same address as they would from the host. In a bridged configuration, the guest attaches to the physical network as if it were a separate device and can obtain its own address from the local router. On a typical private IPv4 network, both modes still share the router's public exit address. A bridged guest can instead receive its own public address on a suitable network, including native IPv6; proxies and VPNs are other ways to change the visible exit.

Snapshots, called checkpoints in Hyper-V, capture the VM's state at a moment: disk contents, settings and optionally memory. Many implementations use differencing disks that record changes since the snapshot, so reverting discards those changes and returns the guest to the saved point. Microsoft's documentation states plainly that a standard checkpoint is not a full backup; it depends on the original disk files and cannot restore a VM whose storage has been lost.

VM Isolation

The hypervisor enforces a boundary: a guest cannot read another guest's memory, write to its disks or see its network traffic unless the host deliberately connects them. This separate-kernel boundary supports running workloads from different organisations on shared infrastructure. Malware executing inside a guest is confined to that guest's virtual disk and memory in the normal case, which is why analysts detonate suspicious files in disposable VMs.

The boundary is strong, not absolute. Hypervisor vulnerabilities allowing escape to the host have been found and patched over the years, and shared resources such as CPU caches have enabled side-channel attacks between tenants. Features that make VMs convenient, such as shared folders, clipboard integration and bridged networking, are also deliberate openings in the boundary. Keeping the hypervisor current and limiting integrations reduces risk; it does not prove that every possible escape or side channel has been eliminated.

Virtual Machines vs Containers and Browser Profiles

PropertyVirtual machineContainerBrowser profile
What is separatedEntire computer with its own kernelProcess group sharing the host kernelOne browser's cookies, storage and settings
Operating systemFull guest OS, any supported typeUser-mode layer matching the host kernelNone; runs inside the host's browser
Hardware signals seen by websitesGuest-visible graphics and browser signalsSignals exposed by the container runtime and browserBrowser-visible signals, often shared across profiles
Resource costHigh: dedicated memory and diskLow: shared kernelMinimal
Network addressDepends on virtual networking and upstream routingDepends on container networking and routingUsually follows the host's routing

The VM vs container difference is the kernel. Containers package an application with the libraries it needs and run it as an isolated process group on the host's kernel, which makes them small and fast to start but limits them to the same OS family as the host and gives a weaker security boundary. Microsoft's own comparison notes that strong isolation for containers is achieved by running each one inside a lightweight VM, which shows where the harder boundary lives.

A browser profile is a different kind of thing entirely. Chromium stores each profile as a directory of history, bookmarks, cookies and preferences under its user data directory. Switching standard profiles separates stored browsing data. It does not create a separate OS or hardware environment, though profile settings and extensions can affect some browser behaviour and network configuration. A profile is a container for browsing state; a VM is a container for an operating system. Presenting one as the other misstates what websites can observe.

Common Uses and Limitations

VMs support compatible older operating systems, reproducible tests and server consolidation. Analysts can examine suspicious files in controlled guests, while developers clone a clean environment before experimenting. Cloud services and remote browsers also use VMs as building blocks.

Their limitations are mostly about cost and visibility. Running VMs consume memory, storage and scheduling capacity, even with an idle guest. Dynamic allocation can reduce that cost, and graphics performance depends on the exposed GPU or software renderer. A browser may reveal a distinctive graphics renderer, although browsers can restrict that detail. Ordinary web pages do not simply read the guest's network-adapter MAC address. A VM does not guarantee an unrelated public IP or erase the meaning of cookies and account logins used inside it, and backup remains a separate task. A VM is a reliable way to get a separate computer; everything that computer presents to the outside is still a matter of configuration.

Frequently asked questions

Does a VM have separate hardware?

Usually it uses virtual devices backed by shared physical resources: scheduled CPU time, allocated RAM, virtual disks and network interfaces. Some configurations pass a real device, such as a GPU, directly to the guest. What the guest sees therefore depends on the hypervisor and device configuration rather than a completely separate physical computer.

Does a VM automatically use a different IP?

Not automatically. Desktop NAT commonly shares the host's upstream exit, and bridged private IPv4 may still use the same home router. A bridged guest can receive a distinct public address on a network that provides one, including IPv6. Check the actual route and visible address instead of inferring them from the VM label.

Is a snapshot the same as a backup?

A snapshot is usually a rollback point that still depends on underlying VM storage, so losing that storage can lose the snapshot too. A backup needs recoverable data stored independently and an appropriate consistency method. Exporting a VM can form part of a backup process, but recovery should be tested.

What is the difference between a VM and a container?

A VM runs a complete guest operating system with its own kernel on virtual hardware, giving strong isolation at a higher resource cost. A container shares the host's kernel and isolates only a group of processes, so it is lighter and faster to start but offers a weaker security boundary and must match the host OS family.

Can websites tell that a browser is running in a VM?

Sometimes browser-visible graphics or other characteristics suggest a virtual environment, but they are not conclusive proof. Browsers may restrict or generalise those signals. Ordinary websites do not have unrestricted access to virtual hardware identifiers, and a VM should neither be assumed invisible nor assumed uniquely identifiable from one signal.