Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Invalid configuration for device '0'" when >1 network uses the same name in the vSphere inventory #213

Closed
hc-github-team-packer opened this issue Aug 31, 2022 · 2 comments
Labels
Milestone

Comments

@hc-github-team-packer
Copy link

This issue was originally opened by @eperts in hashicorp/packer#11963 and has been migrated to this repository. The original issue description is below.


Community Note

  • Please vote on this issue by adding a 馃憤 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

I'm trying to run a Packer build to get a windows 10 template for Horizon VDI. My build runs fine in our lab environment, but in our production environment, it cannot find the correct network. There are several networks with the same name so I am specifying the entire path down to the correct network. Using the same structure that worked without issues in our lab environment, it does not work in the production environment.

The error that comes back is: Invalid configuration for device '0'.

I cannot use a different network for the production vCenter.

When I cut it down to just the network name, it comes back with an error: path '' resolves to multiples provide a host to match or full network path.

The path I'm using is, essentially: //network//

Again, this works in our test vCenter, but not production. If anyone has run into this issue before, I'd appreciate any advice.

@tenthirtyam
Copy link
Collaborator

tenthirtyam commented Aug 31, 2022

@eperts - Today, the plugin does not support the use of data sources (see plugin enhancement request GH-196). With this limitation of filtering networks and filtering those with the same name within the vSphere inventory (one or more linked instances) in mind and assuming that you are using services accounts, one workaround may be to limit the scope for the service account to only those networks that are applicable for the build processes. If you're using the content library, you'll need Global Permissions, but at the network level you can reduce the visibility of the networks readable by the service account depending on how you've organized the inventory, for example, with network folders.

Recommend: waiting-reply

Ryan Johnson
Senior Staff Solutions Architect | Product Engineering @ VMware, Inc.

@tenthirtyam
Copy link
Collaborator

For general questions, we recommend reaching out to the community forum for greater visibility. The GitHub issue tracker is only watched by a small group of maintainers and collaborators and is typically reserved for bug reports and enhancement request. You will typically have more success finding assistance on the forum.

If you find the forum to be more helpful or if you've found the answer to your question elsewhere, please comment and close the issue. If there is no further activity on this question within the next 30 days it will be closed.

Ryan Johnson
Senior Staff Solutions Architect | Product Engineering @ VMware, Inc.

@tenthirtyam tenthirtyam changed the title Packer cannot find network in vCenter "Invalid configuration for device '0' when >1 network uses the same name in the vSphere inventory Oct 5, 2022
@tenthirtyam tenthirtyam changed the title "Invalid configuration for device '0' when >1 network uses the same name in the vSphere inventory "Invalid configuration for device '0'" when >1 network uses the same name in the vSphere inventory Oct 5, 2022
@tenthirtyam tenthirtyam added this to the Questions milestone May 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants