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

plugins orders player to create a snapshot, but it's not implemented ! #91

Open
Philippe59710fr opened this issue Jun 14, 2023 · 4 comments

Comments

@Philippe59710fr
Copy link

Using the latest version of Ubuntu LTS, vagrant, VMWare

Vagrant version

Vagrant 2.3.6

Vagrant VMware plugin version

vagrant-vmware-desktop (3.0.3, global)

Vagrant VMware utility version

1.0.22

Host operating system

Linux gt73 5.19.0-43-generic #44~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Mon May 22 13:39:36 UTC 2 x86_64 x86_64 x86_64 GNU/Linux

Guest operating system

Not startable

Vagrantfile

Vagrant.configure("2") do |config|
config.vm.box = "generic/ubuntu2204"
config.vm.provider "vmware_desktop" do |v|
v.gui = true
end
end

Debug output

https://gist.github.com/Philippe59710fr/f5823c46ad0f24dfe3fc2d559635c355#file-vagrant-log

Expected behavior

Execute a new virtual machine to be up.

Actual behavior

Error when launching, caused by the provider to try to create a snapshot using the player, that is not supported.

What actually happened?
Failled

vagrant up
Bringing machine 'default' up with 'vmware_desktop' provider...
==> default: Cloning VMware VM: 'generic/ubuntu2204'. 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/philippe/.vagrant.d/boxes/generic-VAGRANTSLASH-ubuntu2204/4.2.16/vmware_desktop/generic-ubuntu2204-vmware.vmx", "e99e27d5-0a43-41a5-abde-1973fbcfb108", {:notify=>[:stdout, :stderr]}]
Stdout: Error: The operation is not supported
Stderr:

$:/vagrant$ sudo vmrun -T ws snapshot /home/philippe/vmware/Ubuntu/Ubuntu.vmx snname2
$:
/vagrant$ sudo vmrun -T player snapshot /home/philippe/vmware/Ubuntu/Ubuntu.vmx snname3
Error: The operation is not supported

Steps to reproduce

1.Installl Vmware workstation, or player, and vagrant plugins
2.create vagrant file
3.vagrant up

References

Official :
https://www.vmware.com/products/workstation-player.html#compare

https://stackoverflow.com/questions/3558809/vm-player-is-it-possible-to-create-snapshots

@Philippe59710fr
Copy link
Author

After spending hours, I found a patch for this bug :
add -license-override professional to the utility command line...

@edricus
Copy link

edricus commented Jul 10, 2023

After spending hours, I found a patch for this bug : add -license-override professional to the utility command line...

Thx for the workaround but how do you edit this command line ? I'm just using vagrant up and -license-override is not an option

@Philippe59710fr
Copy link
Author

After spending hours, I found a patch for this bug : add -license-override professional to the utility command line...

Thx for the workaround but how do you edit this command line ? I'm just using vagrant up and -license-override is not an option

You need to setup the launch of the Utility like this for example :

sudo nano /etc/systemd/system/vagrant-vmware-utility.service

[Unit]
Description=Vagrant VMware Utility
After=network.target

[Service]
Type=simple
ExecStart=/opt/vagrant-vmware-desktop/bin/vagrant-vmware-utility api -config-file=/opt/vagrant-vmware-desktop/config/service.hcl -license-override professional
Restart=on-abort

[Install]
WantedBy=multi-user.target

@wetzel-cam
Copy link

After spending hours, I found a patch for this bug : add -license-override professional to the utility command line...

Thx for the workaround but how do you edit this command line ? I'm just using vagrant up and -license-override is not an option

You need to setup the launch of the Utility like this for example :

sudo nano /etc/systemd/system/vagrant-vmware-utility.service

[Unit] Description=Vagrant VMware Utility After=network.target

[Service] Type=simple ExecStart=/opt/vagrant-vmware-desktop/bin/vagrant-vmware-utility api -config-file=/opt/vagrant-vmware-desktop/config/service.hcl -license-override professional Restart=on-abort

[Install] WantedBy=multi-user.target

This solved the issue I was having. Thank you!

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

3 participants