What is a virtual machine?
A virtual machine (VM) is a computer made in software. It runs on a real, physical computer but gets its own virtual CPU, memory, disk and network card, and boots its own operating system, such as Windows or Linux. A program called a hypervisor creates the VM and keeps it isolated, so one physical server can run many VMs side by side.
The physical machine is the host and each VM is a guest; a crash inside one VM doesn't take down the others. Rent a VM in a data center and you have what most hosts call a cloud server or VPS: every RapidServer VPS is a KVM virtual machine in Mumbai or Delhi NCR.
How a hypervisor works: type 1 and type 2
A hypervisor, or virtual machine monitor (VMM), sits between the hardware and the VMs. It gives each VM a share of CPU time, its own memory and virtual disks and network cards, and stops one VM from reading another's memory. Processors with Intel VT-x or AMD-V let guest code run directly on the CPU at close to native speed, with the hypervisor stepping in only for privileged operations.
| Type 1 (bare metal) | Type 2 (hosted) | |
|---|---|---|
| Runs on | The server hardware directly | A normal operating system, as an app |
| Used for | Data centers, cloud servers and VPS | Testing and learning on a PC or laptop |
| Examples | KVM, Microsoft Hyper-V, VMware ESXi, Xen | Oracle VirtualBox, VMware Workstation |
| Overhead | Low | Higher, because the host OS sits in between |
KVM is usually classed as type 1 because it turns the Linux kernel itself into the hypervisor, rather than running as an app on top of it.
Types of virtual machines
- System virtual machines imitate a whole computer and run a full operating system. VirtualBox VMs, cloud servers and VPS are all system VMs, and they are what this guide is about.
- Process virtual machines run one program, not an operating system. The best known is the Java Virtual Machine (JVM), which runs Java bytecode the same way on Windows, Linux or macOS; the .NET Common Language Runtime is another. A process VM starts and stops with its program.
System VMs are also grouped by where they run. A local VM runs on your own PC. An online virtual machine, or cloud VM, runs in a data center, and you reach it over the internet through SSH, Remote Desktop or a browser console.
KVM explained: what is a kernel virtual machine?
KVM (Kernel-based Virtual Machine) is the free, open-source hypervisor built into Linux, part of the main kernel since version 2.6.20 in 2007. Loading the KVM module turns a Linux server into a hypervisor. Each VM then runs as an ordinary Linux process, usually started by QEMU, which supplies the virtual hardware.
- Each guest has its own kernel. A KVM VM can run any Linux distribution, Windows Server or BSD and load its own kernel modules, unlike a container-based VPS (OpenVZ or LXC) that shares the host's kernel.
- Close to native speed. KVM relies on Intel VT-x or AMD-V, and VirtIO drivers give guests fast disk and network access.
Don't confuse it with a KVM switch or KVM-over-IP, where KVM means keyboard, video and mouse: remote access to a physical machine's screen, not virtualisation.
Virtual machine vs container
A VM virtualises hardware and runs its own kernel. A container, such as Docker, virtualises the operating system and shares the host's kernel.
| Virtual machine | Container (Docker, LXC) | |
|---|---|---|
| Kernel | Its own | Shared with the host |
| Can run | Any OS: Linux, Windows, BSD | Apps for the host's kernel (Linux containers need Linux) |
| Size | Gigabytes, for a full OS | Often megabytes: the app and its libraries |
| Starts in | Seconds to minutes, as an OS boots | Usually a second or two |
| Isolation | Strong: a hardware-level boundary | Lighter: every container shares one kernel |
| Best for | Whole servers and mixed operating systems | Packaging and shipping apps |
The two work together: most teams run Docker inside a VM, and on a KVM VPS you can run as many containers as the RAM allows. See VPS for developers.
Virtual machines in cloud computing: VM vs VPS vs cloud server
In cloud computing, a provider runs hypervisors on servers in a data center and rents VMs out over the internet, a model called infrastructure as a service (IaaS). The provider looks after the hardware, power and network; you manage everything from the operating system up. One product goes by several names:
| Term | What it means | At RapidServer |
|---|---|---|
| Virtual machine (VM) | The technical term: a computer run in software, with its own kernel, memory and disk | Every VPS and Dedicated CPU plan, on KVM |
| VPS (virtual private server) | A VM sold with its own IP address and root or Administrator access | Linux from ₹581/mo, Windows from ₹2,323/mo |
| Cloud server or cloud VM | A VM rented in a data center and managed over the internet | The same VPS plans, in Mumbai or Delhi NCR |
| Dedicated server | A whole physical machine for one customer, with no hypervisor | Bare metal, from ₹5,999/mo |
So at RapidServer a VM, a VPS and a cloud server are one product: a KVM VM with dedicated vCPU, NVMe storage and an Indian IP address. Other hosts use the names differently; our cloud server in India guide lists what to check. For the basics, read what is VPS hosting, or VPS kya hai in Hinglish.
Windows and Linux virtual machines
- Linux virtual machine. Ubuntu, Debian, AlmaLinux or Rocky Linux, with no licence fee. You manage it over SSH, and it runs websites, databases, Docker and most server software. Ours start at ₹581/mo for 2 dedicated vCPU, 4 GB RAM and 20 GB NVMe.
- Windows virtual machine. Windows Server needs a licence and more memory, and you manage it over Remote Desktop. It runs ASP.NET sites on IIS, SQL Server and Windows-only software such as Tally or Busy. Our Windows VPS includes the licence for Windows Server 2025, 2022 or 2019, from ₹2,323/mo on Full Moon, as Windows needs at least 8 GB RAM.
Not sure which to pick? Compare Linux VPS vs Windows VPS.
Running a VM on your own PC or in a data center
To run a VM on your own computer, install a desktop hypervisor such as VirtualBox or VMware Workstation, or use Hyper-V, which is built into some editions of Windows. Then:
- Make sure virtualisation (Intel VT-x or AMD-V) is switched on in your PC's BIOS or UEFI.
- Create a VM and give it some of your CPU cores, RAM and disk.
- Attach an operating system's installer ISO, start the VM and install it as on a new PC.
A local VM is ideal for learning Linux or testing software, but a poor fit for anything that must stay online: it borrows your PC's resources and stops when the PC sleeps or loses power.
| VM on your PC | VM rented in a data center | |
|---|---|---|
| Cost | Free software on your own hardware | A monthly rent |
| Runs | Only while your PC is on | Around the clock |
| IP address | Behind your home router | Its own public IP |
| Backups | Up to you | At RapidServer, daily backups kept for 7 days are included |
| Best for | Learning and testing | Websites, apps, databases and always-on software |
Rent a Linux or Windows virtual machine in India
Every RapidServer VPS is a KVM virtual machine with dedicated vCPU, NVMe storage and its own Indian IPv4 address, in Mumbai (BOM1) or Delhi NCR (DEL1) at the same price. To rent one:
- Pick a plan on VPS hosting, or size your own in the VPS configurator.
- Choose Linux or Windows Server, and Mumbai or Delhi NCR.
- Pay by UPI, card or net banking and get a GST invoice.
- Log in a few minutes after payment: SSH as root on Linux, or Remote Desktop as Administrator on Windows.
Billing is monthly in rupees, plus 18% GST, with no yearly lock-in, and daily backups kept for 7 days are included.
A KVM VM with dedicated vCPU, NVMe and an Indian IP in Mumbai or Delhi NCR, Linux or Windows, ready a few minutes after payment.
See VPS plans