Programster's Blog

Tutorials focusing on Linux, programming, and open-source

Expand ZFS Pool On Raw Disk Image

Learn how to expand your ZFS zpool on a VPS by expanding the raw disk, and then expanding the ZFS filesystem to make use of that expanded disk.

Install Debian 12 KVM Server

Configure your Debian 12 for acting as a KVM host.

Create Debian 12 (Bookworm) KVM Guest From Cloud Image

Create a Debian 12 KVM guest using the cloud image.

Create Ubuntu 22.04 KVM Guest From Cloud Image

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

Create Debian 11 (Bullseye) KVM Guest From Cloud Image

Create a Debian 11 KVM guest using the cloud image.

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.

KVM

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 Linux VM Guests All Getting The Same DCHP IP

Fix an issue whereby KVM guest clones end up receiving the same DHCP IP address even though they have different MAC addresses, because of a "machine ID".

Qcow2 - Performance

Information about performance of Qcow2 disk images.

KVM

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.

KVM

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.

KVM

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

Learn how to shrink a qcow2 disk file to restore space.

KVM

KVM - Creating Thinly Provisioned Guests

KVM External Snapshots

Learn about the power of external snapshots, and the advantages they bring over traditional internal 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

A cheatsheet for using raw KVM on Linux.

KVM

Ubuntu 14.04 - Getting Started with KVM using PHP Helper Script

KVM

KVM Resources

Ubuntu 14.04 - Setting Up A KVM Host

KVM - Offline Migration

Learn how to manually move/migrate a KVM guest from one machine to another.

Qcow2 Conversion and Snapshotting