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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build fails with vmware-iso on ESXi #17

Open
berney opened this issue Oct 17, 2016 · 0 comments
Open

Build fails with vmware-iso on ESXi #17

berney opened this issue Oct 17, 2016 · 0 comments

Comments

@berney
Copy link

berney commented Oct 17, 2016

When trying to build an image on ESXi using the vmware-iso builder it fails at the end because Packer was no able to install vmware-tools. Packer tries to use a vim-cmd when "remote_type": "esx5" is set. I believe this is hashicorp/packer#1795. I opened hashicorp/packer#4022.

In addition, the scripts/vmware.sh provisioner script tries to install VMware Tools expecting that the iso file was uploaded, but with the esx5 target this is not the case. I modified the script but due to the vim-cmd failing, ultimately packer fails the build.

Finally when running the script/minimize.sh script the vmware-tools-cli disk shrink / command gets an error and returns exit-code 72 because shrinking is disabled for linked clones, parents of linked clones, pre-allocated disks, snapshots, or due to other factors. I worked around this by doing an echo after the vmware-tools-cli command, so that the script would exit cleanly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant