Packer Windows Image Pipeline Boundaries

Windows images fail differently than Linux images, but the lifecycle boundary is the same: the template should contain the reusable mechanism, not the clone’s final identity. A Windows Packer build usually has more moving parts before the first provisioner runs: unattended installation or answer-file behavior. VMware Tools installation and reboot timing. WinRM enablement and firewall access. Windows Update or baseline configuration. sysprep and shutdown before template capture. vSphere clone customization or first-boot configuration after deployment. Do not compress those into “Packer built a Windows template.” Ask which stage owns which state. ...

August 21, 2026 · 4 min · Trinidad Marroquin

vSphere CD-ROM Cleanup With Power-Cycle Gates

The first version of a vSphere CD-ROM cleanup runbook treated device removal as a live VM reconfigure task. That worked for some VMs, but it also exposed a bad assumption: a CD-ROM change on a running Kubernetes VM is still a VM reconfigure operation, and VM reconfigure operations can disturb guest responsiveness, kubelet status, API availability, and storage controllers. The safer pattern was to stop trying to make CD-ROM removal invisible. Treat it as node maintenance: ...

August 13, 2026 · 5 min · Trinidad Marroquin

Packer Template Sealing After Clone-Time Bootstrap

A Packer template can contain a bootstrap framework without owning every piece of clone behavior. The boundary is sealing. A successful packer build produces a configured machine; it does not, by itself, prove that the resulting artifact is safe to clone. Sealing is the lifecycle stage where a configured build machine is deliberately converted into a reusable artifact, and ownership of state changes hands: configured machine -> sanitized machine -> sealed template -> clone -> uniquely identified machine That makes the ownership boundaries explicit: ...

August 7, 2026 · Last modified: August 20, 2026 · 8 min · Trinidad Marroquin

GitOps-Owned vSphere CSI Maintenance Pauses

During a vSphere CNS backlog, stopping the source of new CSI work can be safer than continuing to submit attach, detach, resize, and update requests into a stuck backend queue. The trap is that GitOps may immediately undo the pause. Scaling a vSphere CSI controller Deployment to 0 is not a durable pause if Argo CD, an ApplicationSet, or a higher root Application owns it. The visible command succeeds, then self-heal restores the replicas and new controller pods start submitting tasks again. ...

August 5, 2026 · 4 min · Trinidad Marroquin

vSphere CD-ROM Host Device Cleanup With govc

A connected or host-backed virtual CD-ROM can become operational noise during VM maintenance. It can trigger device-lock prompts, confuse vMotion or storage work, and leave operators answering vCenter questions that have nothing to do with the actual change. If the VM is already locked by storage or vMotion tasks, clear the task contention first; see vSphere CSI CNS ExtendVolume Triage. For the incident-level journal on why CD-ROM cleanup should be treated as Kubernetes maintenance, see Journal: When Storage Triage Turns Into Platform Maintenance. If live VM reconfigure causes Kubernetes symptoms, use a power-cycle-first workflow with role gates instead; see vSphere CD-ROM Cleanup With Power-Cycle Gates. ...

August 5, 2026 · 4 min · Trinidad Marroquin

vSphere CSI CNS ExtendVolume Triage

A vSphere CSI controller log that says a CNS ExtendVolume task is pending does not immediately tell you whether the workload is blocked by resize, attachment, mount, or a stale backend task. The first job is to map the CNS volume ID back to Kubernetes state and avoid turning a storage delay into a destructive rollback. For the broader maintenance journal that ties this pattern to GitOps containment, vCenter task queues, VM device cleanup, and stop conditions, see Journal: When Storage Triage Turns Into Platform Maintenance. ...

August 5, 2026 · 7 min · Trinidad Marroquin

vSphere HA Reset Evidence For Kubernetes Nodes

When Kubernetes nodes reboot during a storage incident, the cause matters. An in-guest reboot, a Rancher/system-upgrade action, a human SSH session, and a vSphere HA reset all have different follow-up work. The useful pattern is to prove the reboot from multiple layers before assigning cause. Start With Kubernetes Check node readiness, boot ID, kernel, and recent events: kubectl get nodes -o wide kubectl describe node cp-1 | grep -A5 -E 'Conditions:|Events:' kubectl get events -A --sort-by=.lastTimestamp | grep -i 'reboot\|node' kubectl get node cp-1 -o jsonpath='{.status.nodeInfo.bootID}{"\n"}{.status.nodeInfo.kernelVersion}{"\n"}' Kubernetes can tell you that a node rebooted. It usually cannot tell you why. ...

August 5, 2026 · 3 min · Trinidad Marroquin

Fast OS Template Node Replacement Rehearsal

Replacing Kubernetes nodes from a fresh OS template can be faster than repairing legacy VM drift in place, but speed only helps if the risky work is moved out of the maintenance window without creating identity conflicts. The useful rehearsal pattern is to pre-create replacement VMs from the current template, leave them powered off, and join them one at a time during the window. That turns the maintenance window into a controlled cluster-change sequence instead of a race to clone, customize, debug, and drain all at once. ...

August 3, 2026 · 6 min · Trinidad Marroquin

Packer Bootstrap Placement Versus Runtime Execution

A Packer template build can fail in three different places that look similar from the outside: Packer never reaches SSH, so file and shell provisioners never run. Packer places bootstrap files into the template, but does not execute runtime bootstrap. Terraform/cloud-init clones the VM but does not start the bootstrap entrypoint correctly. Do not diagnose all three as “bootstrap did not work.” Ask which layer failed. Placement Is Packer’s Job For a reusable vSphere template, Packer should place static resources only. For the follow-on sealing pattern after the bootstrap payload is placed and validated, see Packer Template Sealing After Clone-Time Bootstrap. ...

July 16, 2026 · 3 min · Trinidad Marroquin

Terraform Cloud-Init Ownership For Rancher Data Disks

Attaching a second vSphere disk is not the same as using it. In one worker replacement, Terraform correctly attached a second disk to the VM, Packer correctly placed the static bootstrap entrypoint, and cloud-init completed. But the guest still showed the second disk as blank and unmounted: sda sda1 /boot/efi sda2 / sdb <blank> The result was subtle: bootstrap succeeded, but /var/lib/rancher stayed on the operating-system disk. For an RKE2 node, that means Rancher/RKE2 state and container log growth can still fill / even though Terraform created a data disk. ...

July 16, 2026 · 5 min · Trinidad Marroquin