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: global license_override ignored #90

Open
pale3 opened this issue Jun 14, 2023 · 0 comments
Open

vagrant-vmware-utility: global license_override ignored #90

pale3 opened this issue Jun 14, 2023 · 0 comments

Comments

@pale3
Copy link

pale3 commented Jun 14, 2023

Vagrant version

2.3.6

Vagrant VMware plugin version

vagrant-vmware-desktop (3.0.3, global)

Vagrant VMware utility version

1.0.22

Host operating system

Archlinux

Guest operating system

Ubuntu 16.04

Vagrantfile

Vagrant.configure(2) do |config|
  config.vm.box_check_update = false
  config.vm.box = "generic/ubuntu1604"

  config.vm.provider :vmware_workstation do |v, override|
    v.vmx["memsize"] = "2048"
    v.vmx["numvcpus"] = "2"
    #v.force_vmware_license = "professional" # when doing it here it works
  end
end

Debug output

vagrant vmware utility:
2023-06-14T07:11:36.957+0200 [DEBUG] vagrant-vmware-utility.api: initial vmware information loaded: license=ws.fusion.pro.vl
2023-06-14T07:11:36.957+0200 [DEBUG] vagrant-vmware-utility.api: normalized vmware information: license=standard
2023-06-14T07:11:36.957+0200 [DEBUG] vagrant-vmware-utility.api: creating new simple driver
2023-06-14T07:11:36.957+0200 [INFO] vagrant-vmware-utility.api: attempting to upgrade to vmrest driver
2023-06-14T07:11:36.957+0200 [WARN] vagrant-vmware-utility.api.vmrest: standard vmware license detected, using fallback
Starting the Vagrant VMware API service
...
vagrant up:
Bringing machine 'default' up with 'vmware_workstation' provider...
==> default: Cloning VMware VM: 'generic/ubuntu1604'. This can take some time...
An error occurred while executing vmrun, a utility for controlling
VMware machines. The command and output are below:

Command: ["-T", "player", "snapshot", "/home/marko/.vagrant.d/boxes/generic-VAGRANTSLASH-ubuntu1604/4.2.16/vmware_desktop/generic-ubuntu1604-vmware.vmx", "06ca91b2-0c17-41ac-b86b-7ffe61ec8d2b", {:notify=>[:stdout, :stderr]}]

Stdout: Error: The operation is not supported

Expected behavior

license_override should be respected from /opt/vagrant-vmware-desktop/config/service.hcl

core {
level = "debug"
}

api {
port = 9922
license_override = "professional"
}

Actual behavior

Fallback to "standard" always, and result in vmrun error as written above

Steps to reproduce

  1. vagrant destroy (start fresh)
  2. vagrant up
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