The thesis is simple: a home lab does not need a special virtualisation distribution. Plain Ubuntu Server 26.04.1 LTS with KVM/QEMU, libvirt (virsh) and Cockpit as a browser panel is enough. These are the same tools that ship with every Linux, with updates from the regular repository and documentation for every question.

My lab is a used Lenovo gaming laptop, bought not for gaming but for a strong processor and memory in a small case. It runs a Kubernetes cluster on Talos Linux in three virtual machines (one control plane and two workers) and a separate virtual machine with Windows Server.

Why not Proxmox

Proxmox VE is a good product and I am not writing this against it. It gives you things plain Ubuntu does not have out of the box: managing a cluster of many hosts from one panel, LXC containers next to virtual machines, built-in backup schedules and ready-made ZFS support.

I have one host. Proxmox would add its own system, its own kernel and its own repositories, and I want on the host what I already know: ordinary updates through apt, ordinary logs in journalctl, ordinary networking in Netplan. The cost: backups and everything above a single host I do myself.

Installation

The first step is checking that the processor has hardware virtualisation (sometimes you have to enable it in the BIOS):

Shell
grep -Ec '(vmx|svm)' /proc/cpuinfo
sudo apt update
sudo apt install cpu-checker
kvm-ok

A result greater than zero means the processor extensions are present, and kvm-ok says plainly whether KVM can be used. Then the packages from the Ubuntu Server documentation, the virt-install tool and Cockpit with the machines plugin:

Shell
sudo apt install qemu-kvm libvirt-daemon-system libvirt-clients virtinst cockpit cockpit-machines
sudo adduser $USER libvirt
sudo systemctl enable --now cockpit.socket

After logging in again, virsh list --all should work without sudo. Cockpit listens on port 9090 by default, and the "Virtual machines" tab comes from cockpit-machines.

By default virtual machines sit behind libvirt's NAT. To make them ordinary hosts on the network you need a bridge. An example from the Ubuntu documentation, in /etc/netplan/:

YAML
network:
  version: 2
  renderer: networkd
  ethernets:
    enp3s0:
      dhcp4: no
  bridges:
    br0:
      dhcp4: yes
      interfaces:
        - enp3s0

Replace enp3s0 with your own name (ip -br link) and apply the change with sudo netplan apply. A bridge usually needs a cable: over Wi-Fi it generally does not work.

Talos in three machines

Talos is a system built only for Kubernetes. It has no SSH and no shell, the whole configuration is described by a YAML file, and you manage it through an API with talosctl. For a lab that is an advantage: a node is disposable, and its state follows from a file you keep in a repository.

You create a machine from the ISO image from the project's site. The command is based on the Talos guide for KVM, but with a bridge instead of a libvirt network (the sizes are examples, adjust them to your host):

Shell
virt-install \
  --virt-type kvm \
  --name talos-cp-1 \
  --ram 4096 --vcpus 2 \
  --disk path=/var/lib/libvirt/images/talos-cp-1.qcow2,bus=virtio,size=40,format=qcow2 \
  --cdrom metal-amd64.iso \
  --os-variant=linux2022 \
  --network bridge=br0 \
  --boot hd,cdrom --noautoconsole

You repeat it for the two workers, changing --name and the disk file. You read the node addresses from the machine console, and then follow the Talos documentation:

Shell
talosctl gen config my-cluster https://$CP_IP:6443 --install-disk /dev/vda -o configs/
talosctl apply-config --insecure --nodes $CP_IP --file configs/controlplane.yaml
talosctl apply-config --insecure --nodes $WORKER_IP --file configs/worker.yaml
talosctl -n $CP_IP bootstrap
talosctl -n $CP_IP kubeconfig ./kubeconfig

The machines restart after apply-config. --install-disk /dev/vda matches a virtio disk. When the cluster is up, talosctl health checks its state.

Windows Server alongside

Windows has no virtio drivers, so for the installation you attach a second CD image with the virtio-win drivers. The installer will not see the virtio disk until you load the driver from that image (the "Load driver" option). You can check the name of the system variant with osinfo-query os.

Shell
virt-install \
  --name win-server \
  --ram 8192 --vcpus 4 \
  --cpu host-passthrough \
  --disk path=/var/lib/libvirt/images/win-server.qcow2,bus=virtio,size=80,format=qcow2 \
  --disk path=windows-server.iso,device=cdrom \
  --disk path=virtio-win.iso,device=cdrom \
  --os-variant win2k22 \
  --network bridge=br0,model=virtio \
  --boot uefi --noautoconsole

Everyday operation

Most of the work is a few virsh commands:

Shell
virsh list --all
virsh start win-server
virsh shutdown win-server
virsh autostart talos-cp-1
virsh autostart --disable win-server

autostart starts a machine when the host boots. Before a bigger change I take a snapshot of the powered-off machine:

Shell
virsh shutdown win-server
virsh snapshot-create-as win-server before-update --description "before the update"
virsh snapshot-list win-server
virsh snapshot-revert win-server before-update

A snapshot is not a backup, because it sits on the same disk. For machines with UEFI, check the libvirt snapshot documentation to see which snapshot types are supported before you build a recovery plan on them.

The downsides of a laptop as a server

  • The lid. By default closing the lid suspends the laptop. In /etc/systemd/logind.conf I set HandleLidSwitch=ignore.
  • Cooling and dust. The case is not designed to run around the clock. The fans need cleaning and the temperature needs watching.
  • A single network card. The host, the bridge and all the machines share one cable.
  • Little room for disks. Capacity is limited by the laptop's design, so data you cannot afford to lose needs a copy outside the host.
  • The battery. It works as a simple UPS, but it wears out and has to be replaced after a few years. The battery alone will not shut the virtual machines down for you: what they do when the host shuts down is set separately.

What helps me most: an agent over SSH

The biggest difference for me came from Claude Code with access to the laptop over SSH. I describe what I want ("set up a new Talos worker", "why does the machine not start", "update the cluster"), and the agent reads the logs, checks the state, proposes steps, carries them out and finally shows that it works. Diagnostics that used to take an evening take a few minutes.

The setup is a separate account on the host, key-only login and sudo without a password, so the agent can do the whole administration job itself: virsh, talosctl, kubectl, updates, systemd logs, networking.

Shell
sudo adduser --disabled-password --gecos "" ACCOUNT
echo 'ACCOUNT ALL=(ALL) NOPASSWD:ALL' | sudo tee /etc/sudoers.d/ACCOUNT
sudo chmod 440 /etc/sudoers.d/ACCOUNT
sudo visudo -c

I disable passwords in /etc/ssh/sshd_config.d/01-keys.conf (the low number in the name matters, because sshd takes the first value):

text
PasswordAuthentication no
PubkeyAuthentication yes

After sudo sshd -t and reloading the service I check the effect with sudo sshd -T | grep -i passwordauthentication.

First, the cluster configuration lives in a git repository, so every change can be undone. Second, I write down the knowledge about the lab as instructions for the agent (a skill): service names, start order, pitfalls. Every session starts from the same knowledge.

markdown
---
name: lab
description: Knowledge about my home lab - start order, pitfalls, rules
---
Start order: host, control plane, workers, and only then Windows.
Rules: take a machine snapshot before a bigger change. Deleting disks and resetting the cluster only with my consent.
Pitfalls: things that already cost an evening once.

The risk

Honestly: sudo without a password means the agent can do anything on the host, including breaking something. An instruction like "ask before deleting a disk" is an agreement, not a technical safeguard. I limit this as follows: SSH works only in the home network and is not exposed to the internet, the agent has its own account, I take machine snapshots before bigger changes, and the configuration is in git. Irreversible things, that is deleting disks and resetting the cluster, the agent does only after my consent.

This is a conscious trade-off for a home lab, not a pattern for production or a company network.