Loading

×Sorry to interrupt
Uncaught ReferenceError: addCTracking is not defined
throws at https://kb.vmware.com/resource/KM_TealiumTrackingJS?v=0.5:100:1

Refresh

Cookie Preference Center

General Information on cookies

When you visit our website, we use cookies to ensure that we give you the best experience. This information does not usually directly identify you, but it can give you a more personalized web experience. Because we respect your right to privacy, you can choose not to allow some types of cookies by clicking on the different category headings to find out more and change your settings. However, blocking some types of cookies may impact your experience on the site and the services we are able to offer. Further information can be found in our

Cookie Policy.

Strictly Necessary

Strictly Necessary

Always Active

Strictly Necessary

Strictly necessary cookies are always enabled since they are essential for our website to function. They enable core functionality such as security, network management, and website accessibility. You can set your browser to block or alert you about these cookies, but this may affect how the website functions. For more information please visit www.aboutcookies.org or www.allaboutcookies.org.

Cookie Details‎

Performance

Performance

Performance

Performance cookies are used to analyze the user experience to improve our website by collecting and reporting information on how you use it. They allow us to know which pages are the most and least popular, see how visitors move around the site, optimize our website and make it easier to navigate.

Cookie Details‎

Please confirm your settings by refreshing the page.

Functional

Functional

Functional

Functional cookies help us keep track of your past browsing choices so we can improve usability and customize your experience. These cookies enable the website to remember your preferred settings, language preferences, location and other customizable elements such as font or text size. If you do not allow these cookies, then some or all of these services may not function properly.

Cookie Details‎

Advertising

Advertising

Advertising

Advertising cookies are used to send you relevant advertising and promotional information. They may be set through our site by third parties to build a profile of your interests and show you relevant advertisements on other sites. These cookies do not directly store personal information, but their function is based on uniquely identifying your browser and internet device.

Cookie Details‎

Advertising Cookies

Consent Leg.Interest

Select All Vendors

Select All Vendors

Select All Hosts

Select All

Clear Filters

Information storage and access

Apply

Confirm My Choices Reject All Allow All

My Subscriptions

Loading

Knowledge Base

How to access a cluster created by Tanzu Mission Control when no web browser is available (78268)

Last Updated: 3/23/2020Categories: How toTotal Views: 4576Language:
English

2 like this article

Subscribe to get an email
newsletter with new updates

2 people found this helpful Please provide article feedback:

Symptoms

You are unable to login to a cluster created by Tanzu Mission control from a system with no web browser.

You see messages similar to the following when running the provided kubectl --kubeconfig=<path/to>/kubeconfig-test-<cluster-name>.yml get namespaces command:

Error: exec: "xdg-open": executable file not found in $PATH
Unable to connect to the server: getting credentials: exec: exit status 1

Note: The preceding log excerpts are only examples. Date, time, and environmental variables may vary depending on your environment.

Purpose

This article provides instructions need to access a cluster created by Tanzu Mission Control when no web browser is available on the system where kubectl commands are being run.

Cause

The initial connection to a cluster created by Tanzu Mission Control requires a web-based authentication to cloud.vmware.com. If no web browser is available on the system where kubectl commands are run, the authentication attempt will fail.

Resolution

This is a known issue affecting Tanzu Mission Control. There is currently no resolution.

Workaround

Use the following steps to workaround this issue:

On the system where you will run kubectl commands, issue the following command:

export TMC_BROWSER=none

Download the provided <cluster-name>.yml file to the system where you will run kubectl commands.

Issue the provided kubectl --kubeconfig=<path/to>/kubeconfig-test-<cluster-name>.yml get namespaces command.

Note: You will see output similar to the following:

Go to the following link in your browser:

https://console.cloud.vmware.com/csp/gateway/discovery?access_type=offline&client_id=vmware-oidc-87fb8673-685a-11ea-b53d-2a3296114abf&code_challenge=SqO1m-uVvnpmsocLhNRNW_-WrGG_67ACpdamJX9lh4w&code_challenge_method=S256&orgLink=%2Fcsp%2Fgateway%2Fam%2Fapi%2Forgs%2Fe6f8b4af-faa2-4b55-8403-97d2d6b19341&redirect_uri=http%3A%2F%2Flocalhost%3A56312%2Ftoken&response_type=code&state=03ab58d8eb210552f75c28e71fe8c155

Copy the provided link from the output of Step 3 and paste in to the URL bar in a browser on a different system where a web browser is available.

Note:  If you are not already logged in to cloud.vmware.com, you will be presented with a login screen. Enter your credentials. After you login, or if you were already logged in, you will see a page displaying the following text:

tmc login flow complete

You are authenticated and can close this page.

Your kubectl command should complete and you will see a list of namespaces in the cluster.

Note: An alternative workaround would be to run the provided kubectl command from a system with a web browser installed and after the authentication is successful, copy the .vmware-cna-saas folder from the user's home directory to the system where you will normally run kubectl commands. The authentication token in this folder will be active for 90 days.

Detectable by VMware SkylineTM

Actions

Copy

link to clipboard
copied!

Print

Language:
English

Attachments

Additional Resources

KB
•
ESXi 6.7 以降では、仮想スイッチが不正な形式のパケットを仮想マシンに転送しない (78283)

KB
•
无法下载以句点开头的虚拟机文件 (78286)

KB
•
REST API による、新しく作成された「HostAndCluster」フォルダへの ESXi ホストの追加 (78267)

KB
•
SRM サイトのインベントリ マッピングで変更が行われた後、既存の保護グループ（保護された仮想マシン）のインベントリ マッピングを更新できない (78232)

Results 1-4 of 4

Ask The Community

Get answers quickly from VMware experts in the community

Post Subject

CONTINUE IN COMMUNITIES

Related Products:

VMware Tanzu Mission Control

Related Versions:

Take Our Survey

Support Assistant