How does a hypervisor create a virtual machine?
The hypervisor divides the physical machine into slices and presents each slice as a complete computer. Modern CPUs help directly: Intel VT-x and AMD-V let guest code run natively on the processor until it attempts a privileged operation, at which point the CPU hands control to the hypervisor. Second-level address translation (EPT on Intel, NPT on AMD) maps guest memory to host memory in hardware, so the guest kernel manages its own page tables without constant intervention. The result is that a guest runs at close to native speed for most work.
What is the difference between type 1 and type 2 hypervisors?
| Type | Runs on | Examples | Typical use |
|---|---|---|---|
| Type 1 (bare metal) | Directly on hardware | KVM in the Linux kernel, Xen, Proxmox VE (KVM-based) | Servers and data centers |
| Type 2 (hosted) | As an app on a desktop OS | VirtualBox, desktop virtualization apps | Developer laptops, testing |
KVM blurs the line slightly, since Linux is a full operating system that also becomes the hypervisor when the kvm module loads, but it behaves as a type 1 hypervisor in practice.
How are disks, networks and devices virtualized?
- Disks: a guest disk is a file (qcow2 or raw) or a block volume such as a ZFS zvol or LVM logical volume on the host. Virtio drivers in the guest give the best performance.
- Network: each guest gets a virtual NIC attached to a host bridge. With one public IPv4 per machine, guests usually sit on a private bridge with NAT; see Network Virtualization.
- CPU: virtual CPUs are host threads scheduled by the kernel. You can pin them to specific cores for steady latency.
- Memory: guests get a fixed amount or use ballooning to return unused memory to the host.
- Devices: PCI passthrough gives a guest direct control of a physical device, at the cost of moving that VM to other hosts easily.
How do VMs compare with containers?
A VM virtualizes hardware and runs its own kernel, so it can run any operating system and offers strong isolation. A container virtualizes the operating system, sharing the host kernel, so it starts in milliseconds and uses less memory but must run the same kernel family. Many setups combine them: VMs separate tenants or security zones, and containers run the services inside each VM. Docker hosts covers the container side.
How do I run VMs on one of your machines?
Choose the Proxmox VE image for a ready web interface, or install KVM on Debian or Ubuntu yourself:
grep -cE 'vmx|svm' /proc/cpuinfo # non-zero means hardware virtualization is exposed apt install -y qemu-system-x86 libvirt-daemon-system virtinst virt-install --name build-runner --memory 8192 --vcpus 4 \ --disk size=60,bus=virtio,format=qcow2 --os-variant debian12 \ --network bridge=vmbr7,model=virtio --graphics none \ --location https://deb.debian.org/debian/dists/bookworm/main/installer-amd64/ \ --extra-args 'console=ttyS0' virsh list --all
The installer runs on the serial console in your SSH session. Proxmox VE is x86 only; on Arm models such as the A1, KVM itself works with arm64 guests through libvirt. Bring your own licenses for any commercial guest operating systems.
How many VMs fit on one host?
Memory is usually the first limit, since each guest reserves its RAM. Cores can be overcommitted moderately for light workloads, perhaps three or four virtual CPUs per physical thread for idle-heavy services, and closer to one to one for busy databases or builds. Disk I/O becomes the limit when many guests write at once, which NVMe drives handle far better than older storage. A rough plan for mixed web workloads is 4 to 8 GB per guest, so a host with 256 GB DDR4 like the D5 carries several dozen small guests.
How do I back up virtual machines?
Treat guests as data. On Proxmox VE, vzdump creates consistent backups of running guests using snapshots, and the Proxmox Backup Server adds deduplication and incremental transfers to a second machine. With plain libvirt, snapshot the guest disk, copy the frozen image to another box with rsync or a ZFS send, and save the domain definition with virsh dumpxml. Test a restore on a scratch guest now and then; a backup you have never restored is only a hope.
What should I watch on a VM host?
- Host memory pressure and swap usage; a swapping host slows every guest at once.
- CPU steal time inside guests, visible as
stintop, which shows contention on the host. - Disk latency per guest volume, for example with
iostat -x 5on the host. - Free space in thin pools and ZFS pools, since an overfull pool can pause guests.
Why run VMs on bare metal instead of renting them?
Cost and control. One machine like the M1 with 512 GB DDR4 for $414.70 a month can host many guests for less than renting each separately, with no noisy neighbors outside your own. You choose the hypervisor, the storage layout and the network design. Virtualization hosts compares host sizes.
Machines Sized for Running Many VMs
| Server | Processor | Cores / threads | Memory | Storage | Network | Per month | Smallest order |
|---|---|---|---|---|---|---|---|
| S7 | Intel Xeon E-2288G | 8 / 16 | 128 GB DDR4 | 2x 1 TB NVMe | 2x 10 Gbps | $100.72 | $100.72 (1 month) |
| D5 | 2x Intel Xeon Gold 5315Y | 16 / 32 | 256 GB DDR4 | 2x 2 TB NVMe | 2x 25 Gbps | $305.34 | $305.34 (1 month) |
| M1 | 2x Intel Xeon Gold 5315Y | 16 / 32 | 512 GB DDR4 | 2x 4 TB NVMe | 2x 25 Gbps | $414.70 | $414.70 (1 month) |
| A1 | Ampere Altra Q80-30 | 80 / 80 | 256 GB DDR4 | 2x 2 TB NVMe | 2x 25 Gbps | $252.11 | $252.11 (1 month) |
Keep Reading
Virtualization hosts
Carve one physical box into many virtual machines with Proxmox VE or KVM, guests behind NAT on a single public address.
OpenProxmox VE
Proxmox VE 8 turns an x86 machine into a virtualization host with a web console for VMs and containers.
OpenNetwork Virtualization
Building virtual switches, routers and isolated networks in software on top of physical links, and doing it on a single host or across several.
OpenBare metal server
A physical machine rented to one customer, with your operating system running straight on the hardware.
OpenFAQ
Quick Answers
A software-defined computer with virtual CPU, memory, disks and network cards that runs a full operating system on a physical host.
Yes. Install the Proxmox VE image or set up KVM on any Linux image. Hardware virtualization is available to the operating system.
A VM runs its own kernel and is strongly isolated. A container shares the host kernel, starts faster and uses less memory.
It depends mostly on memory. Plan RAM per guest first, then CPU and disk I/O for the expected load.
Each machine has one public IPv4. Guests use a private bridge with NAT, and services are published through port forwards or a reverse proxy.