Skip to content

Troubleshooting

Symptom Cause / action
Test-HypervCsiHost.ps1 fails The hint under each FAIL line names the fix
WebApi /health/ready returns 503 SSH or Kerberos to a cluster fails; docker compose logs shows which node. Check known_hosts, the keytab (kinit -kt /etc/csi-service.keytab k8s-hyperv-csi@EXAMPLE.COM inside the container), RemotingMethod
WebApi log: Update-ClusterVirtualMachineConfiguration ... could not be completed No Kerberos ticket on the Hyper-V node: keytab, krb5.conf (forwardable = true), GSSAPIAuthentication yes in sshd_config, RemotingMethod: SshGssapi (Kerberos)
PVC stays Pending, provisioner log: connection refused / 401 Controller cannot reach the WebApi or the API token differs between ApiSettings:ApiToken and K8sHypervServices__Http__ApiToken
PVC events: PermissionDenied … license Feature or limit not covered by the license (License)
PVC events: ResourceExhausted … MAX_DISKS / MAX_NODES / MAX_CLUSTERS Licensed number of disks, hosts or clusters used up (License)
PVC events: Cluster not found for hostname StorageClass hostname does not match Clusters[].Name+Domain or a listed node
Attach returns Unavailable mentioning a checkpoint The VM has a checkpoint (often a running backup); retried automatically after the merge
Attach fails with FailedPrecondition ... attached to <other VM> The volume is still attached to another node (previous node down?). Detach it there or, if the VM is gone, remove the drive in Hyper-V Manager; the next attach succeeds
Pod stuck in ContainerCreating, node log: refusing to partition The disk has an unexpected layout; the driver never formats a non-blank disk. Inspect the VHDX
Pod stuck in ContainerCreating, node log: no disk with id … The VHDX is attached but not visible in the VM: udev not running, or the VM lacks the Hyper-V SCSI driver (hv_storvsc). lsblk on the node
Node driver CrashLoopBackOff, log mentions .kvp_pool_3 KVP daemon missing or the KVP integration service disabled for the VM (Prepare the Kubernetes cluster)
Controller CrashLoopBackOff at startup License file missing or invalid (check the Secret mount); kubectl logs shows the reason
Every detach fails once and succeeds on retry WebApi and driver versions differ (Upgrading)