packer-plugin-vmware
packer-plugin-vmware copied to clipboard
Refactor the Workstation driver check on Linux
Overview of the Issue
When using VMware Workstation 17.5.2 (Linux) and the personal license the drive can be mistake as Player.
When using the personal license, there is no license file in /etc/vmware/license-ws*
, thus it skips the Workstation drivers and uses Player; thereby updating the driver state and app path from /usr/bin/vmware
to /usr/bin/player
. Then it will try to use the /usr/bin/vmrun -T player list
instead of /usr/bin/vmrun -T ws lis
t and that is where it fails.
To workaround the issue, you can run the following:
sudo touch /etc/vmware/license-ws-foo
However, the following will need to be addressed:
- Alternative method to confirm us of Workstation vs Player.
- Determine if the license check is still needed.
Plugin and Packer versions
-
hashicorp/packer
v1.11.2 and earlier. -
hashicorp/packer-pluign-vmware
v1.1.0 and earlier.