Back to blog

Can You Run a VPN on an OpenVZ or LXC VPS?

November 8, 2026 2 min read

You rented the cheapest VPS you could find, tried to bring up a WireGuard interface, and got "Operation not supported". The reason is usually the kind of virtual server you bought, not anything you did. Here is what that means and what still works.

Two kinds of VPS

Full virtual machines (KVM, Xen, VMware) run their own kernel, so you can load modules and create network devices freely. Almost everything works.

Containers (OpenVZ, LXC) share the host's kernel with other customers. That's why they're cheap, and also why you can't add anything to the kernel, and why the host decides which features you get.

How to tell which one you have

systemd-detect-virt
  • kvm, qemu, xen, vmware: a virtual machine. Fine.
  • openvz, lxc: a container. Read on.

Providers rarely say so in the plan name, so check the output rather than the product page.

Why containers cause errors

WireGuard normally runs as a kernel module. In a container you can't load it, and the host may not have enabled it. The errors look like this:

RTNETLINK answers: Operation not supported
Unable to access interface: Protocol not supported

There are two ways out.

Userspace WireGuard needs a TUN device

A userspace implementation (wireguard-go, or amneziawg-go for AmneziaWG) doesn't need the kernel module, but it needs a TUN device, a virtual network interface the host must switch on. Check whether yours has one:

cat /dev/net/tun
  • File descriptor in bad state means TUN is available. That's the good answer.
  • No such device or No such file means it isn't. Ask your host to enable TUN for the container; many do it on request.

VLESS needs neither

VLESS with Reality is an ordinary program using ordinary network connections. It needs no kernel module and no TUN device on the server, so it runs on container VPS plans where WireGuard can't. If your host won't enable TUN, VLESS and Reality is the protocol to use.

What Nullsify needs

Nullsify's WireGuard and AmneziaWG servers run as a userspace program (amneziawg-go), so they don't depend on the kernel module, but they do need TUN. VLESS needs neither. If setup fails on a container plan, enable TUN with your host, switch the server to VLESS, or choose a KVM plan.

Other limits of container VPS plans

  • A kernel you can't update and kernel settings you can't change.
  • Neighbours. CPU and network are often oversold, so speeds can vary through the day.
  • iptables and NAT rules may be restricted, which breaks the routing a WireGuard server needs.

For a VPN you rely on, a small KVM plan costs a few euros a month more and avoids most of this. Our list of providers points to hosts that sell KVM. If you've already hit the error, the fix page lists every cause, including old kernels and mismatched modules.

Ready to run your own VPN?

Bring your own VPS and have VLESS, AmneziaWG, or WireGuard running in minutes — no manual setup required.