hashicorp / packer-plugin-vmware

Packer plugin for VMware Builder
https://www.packer.io/docs/builders/vmware
Mozilla Public License 2.0
49 stars 42 forks source link

Refactor the Workstation driver check on Linux #242

Open tenthirtyam opened 3 months ago

tenthirtyam commented 3 months ago

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 list 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:

Plugin and Packer versions

tenthirtyam commented 1 week ago

VMware Fusion and Workstation are Now Free for All Users

TL;DR:

"We’re thrilled to announce a significant change that reflects our commitment to making VMware Fusion and VMware Workstation more accessible than ever. Starting November 11, 2024, these powerful desktop hypervisor products will be available for free to everyone—commercial, educational, and personal users alike."

Based upon this change, for license check will be removed from the plugin for the latest versions for Fusion and Workstation.