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

Vagrant VMware utility version fail to recognize pro license for VMWare Workstation version 17 #94

Open
Fred78290 opened this issue Jul 10, 2023 · 1 comment

Comments

@Fred78290
Copy link

VMWare workstation version

VMware Workstation Information:
VMware Workstation 17.0.2 build-21581411 Release

The vmware-vmx doesn't return same result as expected in code and the vagrant utility doesn't recognize professional license.

/usr/lib/vmware/bin/vmware-vmx --query-license LicenseEdition

return ws.fusion.pro.vl

Vagrant VMware utility version

Last version build from git clone

Host operating system

Ubuntu 20.04.

Debug output

2023-07-10T15:37:56.046+0200 [INFO]  api: created: vmx=<nil>
2023-07-10T15:52:17.026+0200 [INFO]  api: attempting to upgrade to vmrest driver
2023-07-10T15:52:21.357+0200 [WARN]  api.vmrest: standard vmware license detected, using fallback

Solution to fix it

$GO_SRC/github.com/hashicorp/vagrant-vmware-desktop/go_src/vagrant-vmware-utility/driver/core.go
func (v *VmwareInfo) IsProfessional() bool {
	// First, lets check if the license has been explicitly
	// set to standard or professional
	if v.License == "professional" {
		return true
	}
	if v.License == "standard" {
		return false
	}
	
	return strings.Contains(v.License, "pro")
}
@chrisroberts
Copy link
Member

Hi there,

I'm trying to reproduce the behavior you are encountering but have so far been unsuccessful. The license string you have provided should be properly matched as a professional license. Would you please provide the debug output from the utility startup. If you are running it directly, you can use the -debug flag. Otherwise you can update the configuration file and set the level to debug.

Thanks!

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

No branches or pull requests

2 participants