Programster's Blog

Tutorials focusing on Linux, programming, and open-source

Configure KVM Private NAT With Guest Gateway

Configure a KVM private NAT with a guest acting as a gateway to the outside world. Internal guests will be accessible from the outside world via a reverse proxy and port-forwarding rules.

Add Network Interface To KVM Guest

Add another network interface to a KVM guest.

Create Debian 10 (Buster) KVM Guest From Cloud Image

Create a Debian 10 KVM guest using the cloud image.

Create Ubuntu 20.04 KVM Guest From Cloud Image

Create an Ubuntu 20.04 KVM guest through the use of the cloud image provided by Canonical.

KVM - Fix Netcat Issue With Remote Connections

Fix an issue you might get when trying to connect to a remote KVM host with virt-manager.


Ubuntu 20.04 - Install KVM

Set up Ubuntu 20.04 system as a KVM hypervisor.

Setting Up A Hetzner Dedicated Server KVM

A post on how to set up KVM on a Hetzner dedicated server, resolving issues with setting up the networking.

Set Up Debian 10 KVM Server

Configure your Debian 10 for acting as a KVM host.

KVM - Automated Snapshot Pruning Script

A script to automatically prune old snapshots and only keep the last X number.

Fix Ubuntu 18.04 VM Guests All Getting The Same IP

Qcow2 - Performance

Information about performance of Qcow2 disk images.


Ubuntu 18.04 - Getting Started with KVM using PHP Helper Script

Get started with using KVM on Ubuntu 18.04 with the help of this PHP CLI tool.


Set Up Ubuntu 18.04 KVM Server

Turn your Ubuntu 18.04 server into a KVM host for virtual machines!

Expand Qcow2 Root Filesystem

Expand your KVM guest's root disk and filesystem to add storage.

Managing External Snapshots With BASH Scripts

Manage external snapshots with BASH scripts because virsh doesn't fully support external snapshots in Ubuntu 16.04.

Qemu-img Cheatsheet

A cheatsheet for all things Qemu-img related.

KVM - Fix Missing Default Network

This tutorial will ensure you have a running default network on your KVM server.

Set Up Debian 9 KVM Server

This tutorial will show you how to set your Debian 9 server up as a KVM host.


Set Up Ubuntu 16.04 KVM Server

Turn your Ubuntu 16.04 server into a KVM host for virtual machines!

Ubuntu - Mount Qcow2 Image

Qcow2 - Recover Disk Space on Linux


KVM - Creating Thinly Provisioned Guests

KVM External Snapshots

KVM - NUMA Declaration

Cloning CentOS Guests - Disable MAC

Debian 8 KVM Guests - Get The Console Back

KVM - Add Disk

Create and attach a disk to an existing KVM guest.

KVM Cheatsheet


Ubuntu 14.04 - Getting Started with KVM using PHP Helper Script


KVM Resources

Ubuntu 14.04 - Setting Up A KVM Host

KVM - Offline Migration

Qcow2 Conversion and Snapshotting