-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Build 'vsphere-iso' errored: error creating vm: host '' not found #8817
Comments
Thanks for bubbling this up. We will try to take a look when we get a chance. |
Has there by chance been any update to this issue? I too am trying to setup our environment to use Packer with VMware. Running 6.7u3 we are running in to this issue and our Clusters are not in a folder hierarchy, so that does not appear to be our issue. |
No update yet, sorry. |
In my case the issue came down to the network adapter being chosen/specified not actually existing. I corrected that and the error went away and the build(s) are finishing successfully. |
@natepalm, |
Thank you @sylviamoss for the work you have put in. |
@mashiutz hmm that's weird because Packer only tries to find the host when the |
@sylviamoss Have yet to try your binaries, |
This currently not identified as an issue since we only check for Can you paste the complete output logs when running Packer with PACKER_LOG=1 set? |
So i used your binaries - no error was shown on the console.
|
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
While trying to build a New Windows Template using vSphere-ISO, im getting an error:
Build 'vsphere-iso' errored: error creating vm: host '' not found
I have tried using a resource pool an also omitting, same results.
Packer Version 1.5.4.
happened on older versions as well, back when vSphere-ISO was on https://github.com/jetbrains-infra/packer-builder-vsphere
Sample of the JSON:
`{
"builders": [
{
"type": "vsphere-iso",
}`
OS is Windows 10 1909 (had this error in 1809 and 1903)
vSphere version is 6.7
relevant log entries:
2020/03/01 18:22:04 packer.exe plugin: Serving a plugin connection...
2020/03/01 18:22:04 ui: vsphere-iso: output will be in this color.
2020/03/01 18:22:04 ui:
2020/03/01 18:22:04 Build debug mode: false
2020/03/01 18:22:04 Force build: false
2020/03/01 18:22:04 On error:
2020/03/01 18:22:04 Preparing build: vsphere-iso
2020/03/01 18:22:04 Waiting on builds to complete...
2020/03/01 18:22:04 Starting build run: vsphere-iso
2020/03/01 18:22:04 Running builder: vsphere-iso
2020/03/01 18:22:04 [INFO] (telemetry) Starting builder vsphere-iso
2020/03/01 18:22:05 ui: ==> vsphere-iso: Creating VM...
2020/03/01 18:22:05 [INFO] (telemetry) ending vsphere-iso
2020/03/01 18:22:05 ui error: Build 'vsphere-iso' errored: error creating vm: host '' not found
2020/03/01 18:22:05 machine readable: error-count []string{"1"}
2020/03/01 18:22:05 ui error:
==> Some builds didn't complete successfully and had errors:
2020/03/01 18:22:05 machine readable: vsphere-iso,error []string{"error creating vm: host '' not found"}
2020/03/01 18:22:05 ui error: --> vsphere-iso: error creating vm: host '' not found
2020/03/01 18:22:05 ui:
==> Builds finished but no artifacts were created.
2020/03/01 18:22:05 [INFO] (telemetry) Finalizing.
2020/03/01 18:22:06 waiting for all plugin processes to complete...
A few people also reported this issue on the older GitHub:
jetbrains-infra/packer-builder-vsphere#295
Some has more input on this?
Thanks!
The text was updated successfully, but these errors were encountered: