When attempting to launch the Open Web Console or Open Remote Console for a Virtual Machine (VM) within the Virtual Machine Service UI, the connection fails or the URL does not resolve.
search cancel

When attempting to launch the Open Web Console or Open Remote Console for a Virtual Machine (VM) within the Virtual Machine Service UI, the connection fails or the URL does not resolve.

book

Article ID: 429688

calendar_today

Updated On:

Products

VCF Automation

Issue/Introduction

When attempting to launch the Open Web Console or Open Remote Console for a Virtual Machine (VM) within the Virtual Machine Service UI, the connection fails or the URL does not resolve. This typically occurs for VMs that have been imported into the environment.

Environment

VCF Automation 9.0

Cause

The Web Console URL https://URL/cci/kubernetes/apis/infrastructure.cci.vmware.com/v1alpha1/namespaces/<project>/<virtualmachineremoteconsolerequests>  incorrectly defaults to using the VM name in the VCF Portal instead of the actual name in vCenter

Resolution

This issue is expected to be resolved in the upcoming release, imported VMs will correctly map the vmware.com/display-name to the vCenter name for console redirection.

WORKAROUND

To access the console you must manually edit the browser URL to include the correct vCenter VM name. You can find this name without leaving the portal by following these steps:

  1. Navigate to the VCFA Tenant portal > Build & Deploy > Select Namespace from dropdown > Virtual Machine > Virtual Machine Service list.

  2. Select the affected VM and click the VIEW YAML button (as shown in the provided screenshot).

  3. In the YAML editor, look under the metadata: section for the following key:

    • vmware.com/display-name: <vCenter_VM_Name>

  4. Copy the value found in this key

  5. In the new browser tab, locate the URL which follows this structure: https://<URL>/cci/kubernetes/apis/infrastructure.cci.vmware.com/v1alpha1/namespaces/<project>/<virtualmachineremoteconsolerequests> and Replace the string <virtualmachineremoteconsolerequests> at the end of the URL with the vCenter VM Name you copied in Step 4.
  6. Press Enter to reload the console with the correct parameters.