Supervisor cluster new deployment is stuck in VCSA UI with error "Guest operation failed with err ServerFaultCode: Failed to authenticate with the guest operating system using the supplied credentials"
search cancel

Supervisor cluster new deployment is stuck in VCSA UI with error "Guest operation failed with err ServerFaultCode: Failed to authenticate with the guest operating system using the supplied credentials"

book

Article ID: 420297

calendar_today

Updated On:

Products

VMware vSphere Kubernetes Service

Issue/Introduction

- The SCPVM's are keep getting recreated in the environment.

- When deployment is initiated  with storage policy selected as VM Encryption from VCSA.

From VCSA logs /var/log/vmware/wcp/wscpsvc.log

YYYY-MM-DDTHH:MM:SS debug wcp [vclib/authz.go:54] [opID=69247558] Successfully set permissions [{{} <nil> [email protected] false 1090 true}] on entity Datastore:datastore-18
YYYY-MM-DDTHH:MM:SS error wcp [vclib/guestop_manager.go:54] [opID=xxxxxx-xxxxxxx-xxxxxxxx-vm-ID] Guest operation failed with err ServerFaultCode: Failed to authenticate with the guest operating system using the supplied credentials.
YYYY-MM-DDTHH:MM:SS info wcp [vclib/guestop_manager.go:57] [opID=xxxxxx-xxxxxxx-xxxxxxxx-vm-ID] Guest operation failure is not retriable.
YYYY-MM-DDTHH:MM:SS debug wcp [kubelifecycle/kubenodeconfig.go:161] [opID=xxxxxx-xxxxxxx-xxxxxxxx-vm-ID] Guest login reports invalid credentials
YYYY-MM-DDTHH:MM:SS error wcp [kubelifecycle/master_node_bootstrap.go:179] [opID=xxxxxx-xxxxxxx-xxxxxxxx-vm-ID] Failed to get guest configuration status. err Guest operation for the vm-ID VM failed due to authentication failure.
YYYY-MM-DDTHH:MM:SS error wcp [vclib/guestop_manager.go:54] [opID=xxxxxx-xxxxxxx-xxxxxxxx-vm-ID] Guest operation failed with err ServerFaultCode: Failed to authenticate with the guest operating system using the supplied credentials.
YYYY-MM-DDTHH:MM:SS info wcp [vclib/guestop_manager.go:57] [opID=xxxxxx-xxxxxxx-xxxxxxxx-vm-ID] Guest operation failure is not retriable.
YYYY-MM-DDTHH:MM:SS debug wcp [kubelifecycle/kubenodeconfig.go:161] [opID=xxxxxx-xxxxxxx-xxxxxxxx-vm-ID] Guest login reports invalid credentials
YYYY-MM-DDTHH:MM:SS error wcp [kubelifecycle/master_node_bootstrap.go:179] [opID=xxxxxx-xxxxxxx-xxxxxxxx-vm-ID] Failed to get guest configuration status. err Guest operation for the vm-ID VM failed due to authentication failure.
YYYY-MM-DDTHH:MM:SS debug wcp [retry/serialized_op_retrier.go:71] [opID=xxxxxx-xxxxxxx-xxxxxxxx-SecretUploader-vm-ID] Retry operation.
YYYY-MM-DDTHH:MM:SS error wcp [vclib/guestop.go:111] [opID=xxxxxx-xxxxxxx-xxxxxxxx-SecretUploader-vm-ID] Failed to get guest ops client helper for VM VirtualMachine:vm-ID: ServerFaultCode: The object 'vim.VirtualMachine:vm-ID' has already been deleted or has not been completely created
YYYY-MM-DDTHH:MM:SS error wcp [kubelifecycle/master_node.go:644] [opID=xxxxxx-xxxxxxx-xxxxxxxx-SecretUploader-vm-ID] Failed to setup GuestOps client for VirtualMachine:vm-ID: ServerFaultCode: The object 'vim.VirtualMachine:vm-ID' has already been deleted or has not been completely created
YYYY-MM-DDTHH:MM:SS error wcp [kubelifecycle/master_node.go:631] [opID=xxxxxx-xxxxxxx-xxxxxxxx-SecretUploader-vm-ID] Failed to upload encryption secret to MasterVM VirtualMachine:vm-ID: ServerFaultCode: The object 'vim.VirtualMachine:vm-ID' has already been deleted or has not been completely created
YYYY-MM-DDTHH:MM:SS debug wcp [retry/serialized_op_retrier.go:71] [opID=xxxxxx-xxxxxxx-xxxxxxxx-SecretUploader-vm-ID] Retry operation.
2025-11-25T09:48:05 debug wcp [logger/trace.go:77] [BEGIN] [kubelifecycle.(*kubeInstanceImpl).handleMasterNodeUpdates:1150]

Environment

vSphere Kubernetes Service

Cause

The SCPVMs were being provisioned on different VMFS local datastores attached to the ESXi hosts. The selected storage policy included encryption and had the datastore permission policy for the group set to false. These incorrect or misconfigured storage policies led to failures during the deployment of the Supervisor Cluster.

Resolution

  1. Create a new tag and category specifically for Kubernetes.

  2. Add the newly created tag to the VMFS datastore intended for Supervisor deployments.

  3. Create a new storage policy for Kubernetes.

  4. While configuring the storage policy for hosting Supervisor container images:

    • Set the Volume Allocation Type to Fully initialized under VMFS storage rules.

    • Enabled tag-based placement rules under datastore-specific settings.

  5. Apply the corrected Kubernetes storage policy.

  6. The Supervisor Cluster deployment will show completed successfully.

Reference: Create Storage Policies for vSphere Supervisor