Hosting
What is a VPS and how does it work?
How virtual private servers work, what KVM virtualisation means, what you can run on a VPS and how to secure one in the first hour.
Updated
A virtual private server (VPS) is a virtual machine running on a physical server, with its own operating system, memory, storage and network address. To you it looks and behaves like a dedicated server; behind the scenes, a hypervisor shares the physical hardware between several such machines.
Virtualisation in brief
A hypervisor is software that sits between the hardware and the virtual machines. Oxflare uses KVM, a hypervisor built into the Linux kernel that provides full virtualisation. Each VPS runs its own kernel, so you can use any Linux distribution, load kernel modules, run Docker or install Windows. Memory is reserved for each VPS, CPU time is scheduled fairly, and storage is allocated on fast NVMe drives.
What people run on a VPS
- Websites with more traffic than shared hosting comfortably supports.
- Web applications in Node.js, Python, PHP, Go, Ruby or Java.
- Databases such as MySQL, PostgreSQL, MongoDB and Redis.
- Business systems: ERP, point-of-sale back ends and accounting software.
- Mail servers, VPNs, game servers and development environments.
- A control panel such as cPanel or Plesk to host several sites.
Securing a new VPS in the first hour
- Log in with an SSH key and disable password authentication.
- Create a non-root user with sudo rights.
- Apply all available updates and enable automatic security updates.
- Enable a firewall that allows only the ports you need, such as 22, 80 and 443.
- Install an intrusion prevention tool like fail2ban.
- Set up backups or snapshots before you put anything important on the server.
Sizing a VPS
Memory is usually the first constraint. A small WordPress site runs comfortably in 2 GB; a busy WooCommerce store with object caching likes 8 GB; databases want as much of their working set in memory as possible. CPU matters for traffic peaks and heavy processing. Start modestly, watch the graphs in your control panel and resize when you see sustained high usage.
