A tiled record of hardware and infrastructure projects —
newest first, click any card for the full photo essay.
I keep adding to this as I go. Each project opens into its own
page of photos, specs and notes.
SCROLL ↓ OR CLICK A CARD
01The goal and the hardware
I wanted hands-on time with Proxmox clustering, Ceph and HA before committing to a
rack of mini PCs. So the whole cluster runs nested inside Hyper-V on my Windows 11 desktop:
64 GB of RAM and a single 2 TB Crucial T710 Gen5 NVMe that also holds Windows, the pagefile and
every VHDX. That one consumer drive turns out to be the main character of this story.
Three Proxmox nodes (ve1–ve3), each a Hyper-V VM with 4 vCPUs and
static memory (8 GB at first, later 12 GB).
Two networks:LabExternal, bridged to my LAN (192.168.100.0/24) for management and
guests, and LabCluster, a private switch (10.10.10.0/24) reserved for corosync and Ceph.
First, the two virtual switches. Creating the external switch briefly drops the host's
network connection while Windows rebinds the adapter.
My first pass built Generation 2 VMs, and the Proxmox installer booted from the ISO
only to report it couldn't find it. Its initrd loaded hv_vmbus but not
hv_storvsc, the Hyper-V synthetic storage driver, so the virtual DVD was invisible. The
installer's debug shell was no escape either: the synthetic keyboard (hid_hyperv) didn't
work there. Generation 1 fixes both, because it emulates an IDE DVD drive and a PS/2 keyboard the
installer handles natively. Nested virtualization works exactly the same on Gen 1.
03Hyper-V: build the three nodes
I tore down the Gen 2 VMs and rebuilt them with this script. Each setting is there for a
reason:
-ExposeVirtualizationExtensions passes VT-x/AMD-V into the guest so Proxmox can run KVM
VMs of its own.
Static memory: dynamic memory and a nested hypervisor don't mix.
-MacAddressSpoofing On: without it, guests inside Proxmox get no network at all.
Automatic checkpoints off, for reasons that become very clear in section 08.
Ceph disks hang off a SCSI controller, since Gen 1's IDE bus only has four slots.
Boot order puts the CD first for the install.
After installing Proxmox, detach the ISO with the VMs off. Otherwise the CD-first boot order
drops you straight back into the installer.
04Proxmox install and node networking
The installer runs in BIOS mode on Gen 1. Each node got a static management address on
vmbr0, the bridge on the first NIC (ve1 = 192.168.100.50, ve2 = .51, and so on). There's
no default password: the root password you set in the installer is the web UI login at
https://<node-ip>:8006, with the Linux PAM realm.
The second NIC carries cluster traffic. It gets a plain IP and no bridge, because corosync and
Ceph are host-level services and no guest ever needs to touch that network:
10.10.10.11/24 on ve1, .12 on ve2, .13 on ve3.
Leave the gateway blank on the cluster NIC. A second default route
causes strange, intermittent routing problems.
Before creating the cluster, check that every node can reach the others over the private
switch. If the pings fail, it's almost always MAC spoofing missing on the second NIC, or that NIC
sitting on the wrong vSwitch.
05Form the cluster
06Ceph
Repositories on every node: under Node > Updates > Repositories, disable the
pve-enterprise and Ceph enterprise entries and add the no-subscription ones, then
apt update && apt full-upgrade.
Install Ceph on each node (Node > Ceph > Install, no-subscription repo, default version,
which was Ceph 20.2).
Initialize once, pinning Ceph to the cluster network.
Create a Monitor and a Manager on all three nodes, so the monitor quorum can lose one node.
OSDs: both blank 50 GB disks on every node, so 6 OSDs.
Poolvmstore: size 3, min_size 2, with "Add as Storage" checked so it becomes the
VM disk store.
Memory tuning. Ceph aims for about 4 GB of cache per OSD, which would eat an 8 GB node
alive with two OSDs on it. I gave each node 12 GB and capped the OSD target at 1.5 GB, which leaves room
for Proxmox itself and a guest or two.
Sizing and fault tolerance, in one table
With size 3 / min_size 2 and host as the failure domain, no two copies of any object ever land
on the same node. Six 50 GB OSDs come to 300 GB raw, about 100 GB usable. Ceph warns at 85% full and
halts writes at 95%, so plan to stay under roughly 70%.
Failure
What Ceph does
1 OSD
I/O continues; the data re-replicates onto the other OSD on that host.
1 node
I/O continues, degraded. With only 2 hosts left, the third copy can't be rebuilt until
the node returns.
2 nodes
One copy left, below min_size, so I/O blocks. Nothing is lost, and it resumes when a
node comes back.
That second row matters: a 3-node cluster survives a node failure but can't heal from
it. Self-healing needs a spare host (N+1), which is why production Ceph usually starts at 4–5 nodes.
07Cloud-init template and the first VM
Everything downstream clones from one template. I used Debian 13's official cloud image, and
baked the QEMU guest agent into the image before importing it. --agent enabled=1
only opens the channel; without the agent inside, Proxmox can't report the VM's IP, and shutdowns and HA
behave worse. My Windows SSH public key went onto the node first so every clone trusts it:
The cloud image is only about 3 GB, so the 32 GB resize happens before templating. Clones
inherit it, cloud-init grows the filesystem on first boot, and thin RBD only consumes what's written.
Then the first real VM: a full clone with a static IP, which became my Docker host for an arr media stack
— a realistic workload to fail over.
08The I/O storm: Ceph meets a consumer SSD
After rebuilding the template, everything crawled, and the drive stayed busy long after the
work was done. Ceph insisted it was fine: HEALTH_OK, all PGs active+clean, low
OSD latency. Untangling it took several rounds:
Hyper-V checkpoints. I had taken baseline checkpoints of all three nodes. While a checkpoint exists,
every write goes to an .avhdx differencing disk, and deleting the checkpoint triggers a merge
that rewrites every changed block. Deleting them calmed ve1, but the storm came back.
Reading Task Manager properly. Active time was pinned and average response time sat in the
hundreds of milliseconds, while actual throughput was only a few hundred KB/s. A drive in that state
isn't moving data, it's waiting — the signature of small synchronous writes and flushes.
The decisive test: shut all three nodes down. The storm stopped instantly. The cluster itself was
the source, even while "idle".
Why. Ceph only acknowledges a write after it's flushed to stable storage. Enterprise SSDs
have power-loss protection (on-board capacitors), so they can acknowledge a flush from cache almost
instantly. Consumer drives like the T710 have to commit to flash every time. Even an idle cluster flushes
constantly — monitor RocksDB stores, OSD housekeeping, Proxmox's cluster filesystem — and here every one
of those flushes travels through BlueStore, then the VHDX, then NTFS, onto one NVMe that is also running
Windows. Each of the three replicas lands on that same drive, and with two OSDs per node, all of the
BlueStore overhead was doubled.
Ceph is efficient at scale and for durability, not per node. It trades write
efficiency for the guarantee that an acknowledged write exists on three machines. The problem is sync-write
latency, not wear and not the interface: a consumer SATA drive would struggle the same way.
09Removing the extra OSD from each node
The cheapest lever was halving the OSD count: one OSD per node instead of two. That cuts the
BlueStore housekeeping and flush traffic in half and costs nothing I was trying to learn. The
methodology:
Drain before destroying. Because the failure domain is host, data on a removed OSD can only
re-replicate onto the other OSD on the same host. Marking an OSD out makes Ceph move
its data there first; destroying it while it still holds data would leave that host's copy missing and the
cluster degraded.
One OSD at a time, waiting for HEALTH_OK and all PGs active+clean between
each, so the drive absorbs one backfill burst at a time instead of three.
Prove it's safe:ceph osd safe-to-destroy must agree before anything is deleted.
If it doesn't, wait for recovery to finish — never force it.
I took the higher-numbered OSD on each host: osd.5 on ve1, osd.3 on ve2,
osd.1 on ve3.
The destroy printed an umount ... not mounted error (exit code 32). That one is
harmless: the OSD was already stopped, so there was nothing to unmount, and it had already been removed
from the CRUSH map, auth keys and config. The only side effect is that the --cleanup disk wipe
may not have run, so check lsblk for a leftover ceph-- volume:
With the nodes cleanly shut down (section 10), the now-empty second VHDX comes off each VM. Match
on the ceph2 filename so you never remove the OS disk or the OSD you're keeping:
The result: the chatter quieted right down. The tradeoff is capacity: three 50 GB OSDs
come to 150 GB raw, about 50 GB usable at size 3. Ceph's dashboard gauge shows the raw number, while
ceph df's MAX AVAIL shows what you can actually store.
10Clean shutdown and startup: the four flags
Taking all three Ceph nodes down without warning makes Ceph watch OSDs vanish one by one and
start re-replicating data that's about to come back. Four OSD flags stop that. First stop the guests
(HA resources first, or HA will try to recover them onto nodes that are also going down), then set the
flags once, from any node:
noout: down OSDs are never marked out, so no data is remapped away from them.
nobackfill: no backfilling PGs onto other OSDs.
norecover: no recovery of "missing" objects.
norebalance: no rebalancing of data across the cluster.
Then shut the nodes down gracefully through Hyper-V's integration services:
Never use -TurnOff for a planned shutdown. It's a hard power
cut that can leave Ceph with unclean OSDs; save it for deliberate failure tests. And the moment all three
nodes read Off is the only safe time to take a Hyper-V checkpoint — then delete it before any heavy work.
On startup, power the nodes on and wait until pvecm status shows quorum and
ceph -s shows every OSD up. Then clear the flags in reverse order and give HA its VMs back. If
you forget to unset them, ceph -s keeps showing flag warnings and recovery never runs.
11HA and the node-kill test
HA has to be configured before anything fails: the HA manager only recovers resources it
already knows about. The prerequisites were in place, with three nodes in quorum and the VM disk on shared
Ceph storage. I added VM 100 as an HA resource (Datacenter > HA > Resources > Add does the same
thing):
Then the real test. With VM 100 running on ve1, I cut ve1's power from Hyper-V. It had to look
like an unplanned failure: a graceful shutdown makes HA stop or migrate the guest instead of exercising
recovery.
Ceph reacted first. It lost a monitor and an OSD, kept quorum on ve2 and ve3, and flagged
every PG active+undersized+degraded: 33.333% of objects were missing a copy, exactly one
host's worth. The PGs stayed active because two copies still meet min_size 2, so the cluster kept
serving I/O.
Meanwhile, the surviving nodes waited out the fencing window (roughly two minutes of missed
heartbeats, so they could be sure ve1 was really gone), then HA restarted VM 100 on ve2. The console showed
a clean boot: cloud-init, Docker, login prompt. The disk didn't have to move, because it was on Ceph
all along.
When I powered ve1 back on, its OSD rejoined and Ceph backfilled the copies it had missed.
There was a short stretch with 3 PGs remapped, then all 33 returned to
active+clean. VM 100 stayed on ve2, because HA doesn't fail back unless you set up node
affinity rules.
12What I'd tell myself on day one
Use Gen 1 VMs for a nested Proxmox install on Hyper-V. The installer can't see Gen 2's synthetic
devices.
Ceph's real cost is sync-write latency. On real hardware, used enterprise SSDs with power-loss
protection (Intel S4510/S4610, Samsung PM883, Micron 5300) are the cheap fix, and 2.5 GbE or better
between nodes matters just as much.
One OSD per node on small clusters. More OSDs just multiply the housekeeping.
Checkpoints are short-lived: take them only with the nodes off, and delete them before heavy work.
Three nodes survive a loss but can't heal. Self-healing needs N+1 hosts.
Set the four flags for planned outages, and never for failure tests.
HA is configured before the failure, not during it.
Next on the list: Terraform (the bpg/proxmox provider) to build VMs from the template,
Ansible to configure them, and k3s on top.