Cloud & Virtualization
What Is a Hypervisor? Type 1 vs Type 2, KVM, ESXi, Hyper-V
By NileVPS Team · Published · 4 min read
اقرأ المقال بالعربيEvery VPS runs on top of a piece of software most customers never see: the hypervisor. It is the layer that lets one physical server behave like many independent machines, each with its own operating system, its own root user and its own resources. Understanding what a hypervisor does helps you make sense of VPS behavior, from why you see "vCPUs" instead of cores to why some kernel features work and others do not. This article explains the concept, the main hypervisor families and how to inspect your own server.
What a hypervisor does
A hypervisor, also called a virtual machine monitor, sits between physical hardware and virtual machines (VMs). Its jobs are:
- CPU scheduling: mapping virtual CPUs onto physical cores and deciding which VM runs when.
- Memory isolation: giving each VM its own address space and preventing it from reading another VM's memory.
- Device emulation or paravirtualization: presenting disks, network cards and other devices to each guest.
- Lifecycle management: creating, starting, pausing, snapshotting and migrating VMs.
Modern CPUs help with this through hardware virtualization extensions: Intel VT-x and AMD-V for the CPU, and Intel EPT or AMD NPT (also called RVI) for memory address translation. These let guests run most instructions directly on the processor at near-native speed, with the hypervisor stepping in only for privileged operations.
Type 1 vs Type 2
| Type 1 (bare metal) | Type 2 (hosted) | |
|---|---|---|
| Runs on | Directly on hardware | On top of a normal OS |
| Examples | VMware ESXi, Xen, Hyper-V, KVM (as part of Linux) | VirtualBox, VMware Workstation, Parallels |
| Typical use | Data centers, VPS hosting | Developer laptops, testing |
| Overhead | Lower | Higher |
KVM is a slightly special case. It is a Linux kernel module that turns the Linux kernel itself into a hypervisor, so the host is a full Linux system that also acts as a Type 1 hypervisor. It is generally classified as Type 1.
The main hypervisors
KVM
KVM (Kernel-based Virtual Machine) has been part of the mainline Linux kernel since 2007. It is normally paired with QEMU, which provides device emulation, and managed with tools like libvirt, Proxmox VE or OpenStack. Guests use virtio drivers for fast paravirtualized disk and network I/O. KVM is open source and very widely used for VPS hosting.
Microsoft Hyper-V
Hyper-V ships with Windows Server and some editions of Windows 10 and 11. When enabled, it runs underneath Windows, and the Windows installation becomes a privileged "parent partition". It integrates tightly with Windows tooling such as PowerShell, Failover Clustering and System Center, and supports Linux guests through integration services built into the Linux kernel.
VMware ESXi
ESXi is a dedicated Type 1 hypervisor with a small footprint, usually managed through vCenter. It is common in enterprise data centers thanks to features like live migration (vMotion) and high availability clustering. Its licensing has changed several times, so organizations should review current terms directly with the vendor.
Xen
Xen is an open-source Type 1 hypervisor that historically powered several large public clouds. It introduced paravirtualization on x86, where guests are modified to cooperate with the hypervisor. A privileged domain called dom0 manages devices and other guests (domU). Today it is used in projects like XCP-ng and in some embedded and security-focused systems.
Containers are not hypervisors
Docker, LXC and similar tools isolate processes using kernel namespaces and cgroups, but all containers share the host kernel. A VM has its own kernel. This is why a KVM VPS lets you load kernel modules, use your own firewall rules with nftables, run Docker inside it and choose any Linux distribution, while some container-based virtual servers restrict these things. If you want the bigger picture, see what virtualization is.
Check which hypervisor your server runs on
From inside a Linux guest you can usually identify the virtualization layer:
systemd-detect-virt # prints kvm, microsoft, vmware, xen, none ...
lscpu | grep -i hypervisor # "Hypervisor vendor: KVM"
sudo dmidecode -s system-product-name
lsmod | grep virtio # virtio drivers indicate KVM/QEMUOn Windows, open System Information (msinfo32) and look for the line saying a hypervisor has been detected, or run in PowerShell:
Get-CimInstance Win32_ComputerSystem | Select-Object Manufacturer, ModelWhat the hypervisor means for you as a VPS user
- vCPUs are scheduled threads, not dedicated cores, unless the plan says otherwise. If other guests are busy, you may see CPU steal time in
top. - Drivers matter. Make sure virtio (on KVM) or Hyper-V integration drivers are in use for good disk and network performance. Mainstream Linux distributions include them by default.
- Snapshots and live migration are hypervisor features, which is why providers can offer one-click snapshots.
- Nested virtualization (running VMs inside your VPS) depends on whether the provider enables it; do not assume it is available.
NileVPS servers run on KVM-based infrastructure, so you get a full, independent kernel. You can compare plan sizes on the pricing page.
FAQ
Is KVM better than Hyper-V or VMware?
None is universally better. KVM is open source and the most common choice for Linux-based hosting. Hyper-V fits naturally into Windows environments. ESXi is strong in enterprises that rely on its management ecosystem. Performance for typical workloads is close when each is configured properly.
Does virtualization slow down my server?
There is some overhead, but with hardware virtualization and paravirtualized drivers it is small for most workloads. In practice, contention with other tenants and disk configuration affect performance far more than the hypervisor itself.
Can I run Docker on a KVM VPS?
Yes. Because a KVM guest has its own kernel, Docker works normally, including custom networks and storage drivers. Running full virtual machines inside the VPS, however, requires nested virtualization, which is a separate provider setting.