---
title: "KVM, OpenVZ or LXC: what each kind of VPS can run · CloudSat"
description: "KVM, OpenVZ or LXC VPS? See what each virtualization type allows, from your own kernel to Docker, WireGuard and swap, and how to check which one you have."
url: https://cloudsat.io/learn/kvm-openvz-lxc-what-each-vps-can-run
updated: 2026-11-18T12:00:00Z
source: CloudSat (https://cloudsat.io/). Prices in USD.
---

[Cloud and hosting](https://cloudsat.io/learn/topic/cloud-infrastructure)

# KVM, OpenVZ or LXC: what each kind of VPS can run

KVM, OpenVZ or LXC VPS? See what each virtualization type allows, from your own kernel to Docker, WireGuard and swap, and how to check which one you have.

CloudSat team November 18, 2026 6 min read

The virtualization label on a VPS plan answers one question: whose kernel runs your server. On KVM, your server boots its own kernel, as a physical machine would. On OpenVZ and LXC, every customer on the host shares the host's kernel, and the host decides which kernel features each container may use. Nearly every practical difference between the three, from Docker to VPNs to swap, follows from that single fact. Here is what each type lets you run, why, and how to check what you actually bought.

## Whose kernel is it?

|  | KVM | OpenVZ 7 | LXC |
| --- | --- | --- | --- |
| What you get | A full virtual machine | A system container | A system container |
| Kernel | Your own, any version | The host's, from the 3.10 series of Red Hat Enterprise Linux 7 | The host's, whatever version the host runs |
| Isolation | Hardware-assisted, separate kernel | Namespaces and the OpenVZ kernel patches | Namespaces, cgroups and security profiles |
| Overhead | Small with virtio drivers | Very small | Very small |
| Where you meet it | Most cloud VPS plans | Older budget plans | Budget plans, Proxmox and Incus hosts, home labs |

Containers are efficient because nothing is duplicated: no second kernel and no emulated hardware. The host can also change a container's limits while it runs, which is part of why dense budget plans use them. The price is that you inherit the host's kernel version, its loaded modules and its permissions.

## What you can run on each

| Capability | KVM | OpenVZ 7 | LXC |
| --- | --- | --- | --- |
| Any distribution, including from an ISO | Yes | Host templates only; recent distributions may not run on its old kernel | Host templates or images; userspace only |
| Your own or a newer kernel | Yes | No | No |
| Load kernel modules (WireGuard, ZFS) | Yes | Only what the host loaded | Only what the host loaded |
| Docker | Yes | Only if the host enables it, with limits | Yes, when the host enables nesting |
| Kubernetes distributions such as k3s | Yes | Rarely | Possible with extra host settings |
| Your own swap | Yes | No; the host sets virtual swap | No |
| Windows or BSD | Yes | No | No |
| Nested virtualization | When the host exposes it | No | No |
| Encrypt your own disk | Yes | No | No |
| TUN devices for VPNs | Yes | If the host enables them | If the host enables them |

## Docker decides most purchases

Docker needs kernel features that a container host may not hand out: nested namespaces, cgroup control, overlay filesystems and permission to change firewall rules. On KVM, all of that belongs to your kernel, so Docker installs and runs like on any Linux machine. On LXC it works when the host enables nesting (`security.nesting=true` on Incus and LXD, the `nesting` feature on Proxmox), and some images still fail on missing features. On OpenVZ 7, Docker depends on what the host allows, and an old kernel limits newer releases and tools that expect cgroup v2. If your plan is "Docker Compose for everything", buy KVM and skip the debugging.

## VPNs, modules and swap

**WireGuard** has been part of the Linux kernel since version 5.6. On KVM you load it yourself. In a container, it works only if the host kernel has the module loaded and the container may create network interfaces; otherwise you are left with the userspace `wireguard-go`, which needs a TUN device the host must provide.

**Other modules**, such as ZFS, `br_netfilter` for Kubernetes networking or out-of-tree drivers, follow the same rule: on a container, you get the host's set.

**Swap** cannot be added inside a container: `swapon` fails, and memory limits come from the host. OpenVZ adds its own virtual swap and reports limits in `/proc/user_beancounters`. LXC containers may even show the host's total memory in `free` unless the host runs LXCFS. On KVM, a swap file works as on any server.

## OpenVZ in 2026

OpenVZ 7 runs on a kernel derived from Red Hat Enterprise Linux 7, whose standard maintenance ended in June 2024. The project has not published an end-of-life date for OpenVZ 7, and no successor has reached most hosts. Many providers have moved their fleets to KVM for that reason. An OpenVZ plan can still host a static site, a small bot or a simple proxy for little money, but treat it as a short-term home and keep your setup scripted, so moving to a KVM server later takes an afternoon.

## LXC: good containers, same trade-off

LXC on a modern host kernel is a different story. Unprivileged containers on a current kernel are efficient and well isolated for many services, and they are what Proxmox and Incus users run at home and in small clusters. On a rented LXC plan, the questions are practical: which kernel the host runs, and whether nesting, FUSE and TUN are enabled. Ask before you buy, because none of them can be switched on from inside the container.

## Check what you have

These commands answer the important questions in a minute:

```bash
systemd-detect-virt          # kvm, openvz or lxc
uname -r                     # in a container, this is the host's kernel
cat /proc/user_beancounters 2>/dev/null | head -5    # present only on OpenVZ
ls -l /dev/net/tun           # a TUN device for VPNs
sudo ip link add wg-test type wireguard && sudo ip link del wg-test && echo "WireGuard works"
swapon --show                # empty output: no swap configured
```

If `systemd-detect-virt` prints `kvm` and the WireGuard test succeeds, you have a full virtual machine with a modern kernel. Every CloudSat server is a KVM virtual machine with its own kernel and root access, and plans with 8 GB or more can add [nested virtualization](https://cloudsat.io/nested-virtualization) for +11% of the plan price.

## Choose by workload

| You plan to run | Choose |
| --- | --- |
| Docker Compose stacks, self-hosted apps | KVM |
| A WireGuard VPN | KVM, or LXC with the module confirmed |
| Kubernetes, k3s or a home-lab cluster in the cloud | KVM |
| Windows, FreeBSD or a custom kernel | KVM |
| Custom eBPF tools, ZFS or kernel tuning | KVM |
| A static site or small bot on the smallest budget | Any, with a plan to move |
| Many small services on a host you run yourself | LXC on your own server |

## FAQ

### Can an OpenVZ VPS be converted to KVM?

Not in place. Deploy a new KVM server, copy the data and configuration across, test it, then switch DNS. The steps are in the [server migration toolkit](https://cloudsat.io/learn/server-migration-toolkit), and a scripted setup makes the move much shorter.

### Does "4 vCPU" mean the same on KVM and in a container?

Not quite. On KVM, the guest sees four virtual processors, each scheduled as a thread on the host. In a container, `nproc` may show every core of the host while a cgroup quota caps the CPU time you actually get, so compare plans with a CPU benchmark rather than by counting cores.

### Is KVM slower than a container?

Slightly, in theory. With virtio disk and network drivers and hardware-assisted virtualization, the difference is small for web servers, databases and most applications. The host's load and the plan's real resources matter far more than the virtualization type.

### Is LXC isolation strong enough?

For your own services on your own host, unprivileged containers on an updated kernel are a reasonable boundary. Between strangers, a shared kernel is a single point of failure: one kernel vulnerability can affect every container on the host. Full virtual machines put a hypervisor between tenants, which is why most cloud platforms sell them.

**Run it on CloudSat.** Cloud VPS on AMD EPYC and NVMe from $1.98/mo in 13 regions, delivered in under 5 minutes and paid in crypto. [See plans](https://cloudsat.io/plans) or [deploy a server](https://dash.cloudsat.io/console/deploy).

## Keep reading

[All guides in Cloud and hosting](https://cloudsat.io/learn/topic/cloud-infrastructure)

- [Containerization benefits and costs for small teams](https://cloudsat.io/learn/containerization-benefits-and-costs): DevOps Containerization benefits and costs for small teams 6 min read
- [What is a cloud server? Follow one from deploy to delete](https://cloudsat.io/learn/cloud-server-lifecycle-explained): Cloud and hosting What is a cloud server? Follow one from deploy to delete 6 min read
- [Managed or unmanaged VPS: who does what, and what it costs](https://cloudsat.io/learn/managed-or-unmanaged-vps): Cloud and hosting Managed or unmanaged VPS: who does what, and what it costs 6 min read
- [Types of virtual machines, from hypervisors to the cloud](https://cloudsat.io/learn/virtual-machine-types-explained): Cloud and hosting Types of virtual machines, from hypervisors to the cloud 6 min read
