-
Notifications
You must be signed in to change notification settings - Fork 51
vmware-iso: "Couldn't find VMware tools for 'linux'!" #137
Copy link
Copy link
Closed
Labels
Description
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
Overview of the Issue
Upgrading from VMWare Fusion 12 to Fusion 13 broke my current builds when installing VMWare Tools
Reproduction Steps
Using the vmware-iso builder, include the tools_upload_flavor directive and attempt to build a Linux machine.
Packer version
packer --version
1.9.1
Simplified Packer Template
... snip ...
# VM Configurations
vm_name = "base-vm"
headless = false
shutdown_timeout = "10m"
snapshot_name = "Base - ${formatdate("YYYY-MM-DD hh:mm", timestamp())}"
# Bug in VMWare Fusion Pro 13?
tools_upload_flavor = "linux"
# Begin Attempt to Fix
# tools_upload_path = "/tmp"
# tools_source_path = "/Applications/VMware Fusion.app/Contents/Library/isoimages/x86_x64/linux.iso"
# End Attempt to Fix
... snip ...
Operating system and Environment details
MacOS 13.4, Intel x64, VMWare Fusion Pro 13.0.2
Log Fragments and crash.log files
2023/06/06 09:54:54 packer-builder-vmware-iso plugin: Detected VMware version: 13
2023/06/06 09:54:54 packer-builder-vmware-iso plugin: Testing against vmware driver *common.Fusion6Driver, Success: true
2023/06/06 09:54:54 [INFO] (telemetry) ending vmware-iso.base-<sensitive>
tools on-demand. However, to do this, you need to create a fake VM
of the proper type then click the 'install tools' option in the
VMware GUI.
==> Wait completed after 115 milliseconds 147 microseconds
2023/06/06 09:54:54 machine readable: error-count []string{"1"}
==> Some builds didn't complete successfully and had errors:
2023/06/06 09:54:54 machine readable: base-<sensitive>.vmware-iso.base-<sensitive>,error []string{"Couldn't find VMware tools for 'linux'! VMware often downloads these\ntools on-demand. However, to do this, you need to create a fake VM\nof the proper type then click the 'install tools' option in the\nVMware GUI."}
tools on-demand. However, to do this, you need to create a fake VM
of the proper type then click the 'install tools' option in the
VMware GUI.
==> Builds finished but no artifacts were created.
2023/06/06 09:54:54 [INFO] (telemetry) Finalizing.
Build 'base-<sensitive>.vmware-iso.base-<sensitive>' errored after 115 milliseconds 91 microseconds: Couldn't find VMware tools for 'linux'! VMware often downloads these
tools on-demand. However, to do this, you need to create a fake VM
of the proper type then click the 'install tools' option in the
VMware GUI.
==> Wait completed after 115 milliseconds 147 microseconds
ls -l "/Applications/VMware Fusion.app/Contents/Library/isoimages/x86_x64/linux.iso"
-rw-r--r--@ 1 root wheel 56272896 Apr 10 01:44 /Applications/VMware Fusion.app/Contents/Library/isoimages/x86_x64/linux.iso
I did try to make sure I was on the latest version of everything. Adding a requires block doesn't seem to help. Additionally, you can see in my comments that I tried manually specifying the path to the tools iso which also did not change the behavior.
packer init src/packer.pkr.hcl
Installed plugin github.com/hashicorp/vmware v1.0.8 in "/usr/local/bin/github.com/hashicorp/vmware/packer-plugin-vmware_v1.0.8_x5.0_darwin_amd64"
packer build src/packer.pkr.hcl
base-<sensitive>.vmware-iso.base-<sensitive>: output will be in this color.
Build 'base-<sensitive>.vmware-iso.base-<sensitive>' errored after 201 milliseconds 154 microseconds: Couldn't find VMware tools for 'linux'! VMware often downloads these
tools on-demand. However, to do this, you need to create a fake VM
of the proper type then click the 'install tools' option in the
VMware GUI.
==> Wait completed after 201 milliseconds 229 microseconds
==> Some builds didn't complete successfully and had errors:
--> base-<sensitive>.vmware-iso.base-<sensitive>: Couldn't find VMware tools for 'linux'! VMware often downloads these
tools on-demand. However, to do this, you need to create a fake VM
of the proper type then click the 'install tools' option in the
VMware GUI.
==> Builds finished but no artifacts were created.
Reactions are currently unavailable