vmware / vmware/Holodeck

[Bug]: New-HolodeckInstance fails with -DeveloperMode when Cluster has limited view or resource pool

Open
#167 3 comments 0 reactions 1 assignee View on GitHub

@dhruv-tyagi-broadcom is already working on this.

Since Aug 7, 2026.

bug
Dominant language
HTML
Stars
30
Forks
4
PR merge metrics
No merged PRs in 30d

Description

Holorouter Version

9.1

VCF Version

VCF 9.1

Target Type

vCenter Cluster

Describe the bug

Similar to #140, but when deploying New-HolodeckInstance with all appropriate env vars set, including $env:cluster_name = "MY-CLUSTER" the deployment fails with error:

PreChecks[1101]: [ERROR] Failed to verify target host hardware details.
PreChecks[1101]: [ERROR] Cannot process argument transformation on parameter 'Cluster'. Cannot convert value to type System.String.
PreChecks[1101]: [ERROR] Failed to complete Pre-Checks.

This likely happens when a Cluster has a user with limited permissions on it or a Resource Pool. As the table output with Cluster and ResourcePool objects displays multiple entries for the Cluster with the given name.

Per #140 it looks like a Resource Pool can now be selected, but is this exposed via an env var for -DeveloperMode and documented?

Reproduction steps
  1. Create a vSphere Cluster in vCenter and a user with limited permissions on it
  2. Set appropriate env vars for your environment per docs
  3. Attempt a New-HolodeckInstance deployment with -DeveloperMode
Expected behavior

The deployment works using the first named instance of the Cluster found, or fails as expected and an env var is exposed for Resource Pool or Cluster MOID or similar?

Relevant logs

Additional context

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.