-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
vmware-vmx does not detect vmplayer version and refuses to clone #972
Comments
I am having this issue on Ubuntu 12.04.4 LTS using Packer v0.6.0 and VMware Player 6.0.3 build-1895310. Any chance that there is a known work-around? |
I'm seeing this too with Packer v0.6.0 and Workstation 10.0.0 & Workstation 10.0.3 on SLES 11 SP3. |
Here's a link to the debug log, although I didn't find anything useful in it: |
@veshi Hi Adrian, Do you literally only have Played 6.0.x installed directly, or did you get Player installed by way of having Workstation 10.0.x installed? I have a hunch as to what's happening here... Dan |
I definitely only have Player and VIX installed.
|
@veshi - Ok so your problem is a bit different than mines AFAICT. Take a look at: https://github.com/mitchellh/packer/tree/master/builder/vmware/common . There's a driver for Player 5 ("drier_player5.go"), but no driver implemented for Player 6. And of course the Clone() method in that Player 5 driver raises the error: https://github.com/mitchellh/packer/blob/master/builder/vmware/common/driver_player5.go#L25 I think my problem is a bit different... I have WS 10 installed (which includes Player 6). For some reason, Packer wants to use this Player 5 driver instead of the WS 10 driver even though I have WS 10 installed. |
Aaah I figured out my issue. I'd never licensed the copy of WS10 on the build slave that this was running on. Adding a license key and re-running got me going. I figured this out by digging through the driver's Verify() code. Strangely, the workstationCheckLicense() method seems to return/log errors about not being licensed but they never appeared in the output. See: https://github.com/mitchellh/packer/blob/master/builder/vmware/common/driver_workstation_unix.go#L17-L28 My feedback is that the logging around the WS driver selection & verification steps could be better. |
@tehranian thanks for that message, installing the license also fixed my build. |
I'm having this issue with Packer 0.7.5 and VMware Player 6.0.3 on Ubuntu Server 14. $ vmware-vix.bundle --list-products
Product Name Product Version
==================== ====================
vmware-player 6.0.3.1895310
vmware-vix 1.13.0.1295980 Getting the same |
Any update on above? please let me know what need to be done to fix this? |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
/home/Jaspersoft/DemoVM/packer $ packer --version
Packer v0.5.2
/home/Jaspersoft/DemoVM/packer $ vmplayer -v
VMware Player 6.0.1 build-1379776
/home/Jaspersoft/DemoVM/packer $ LANG=C time packer build -force -only vmware-vmx demovm.json
vmware-vmx output will be in this color.
==> vmware-vmx: Cloning source VM...
==> vmware-vmx: Deleting output directory...
Build 'vmware-vmx' errored: Cloning is not supported with Player 5. Please use Player 6+.
==> Some builds didn't complete successfully and had errors:
--> vmware-vmx: Cloning is not supported with Player 5. Please use Player 6+.
==> Builds finished but no artifacts were created.
Command exited with non-zero status 1
0.05user 0.02system 0:00.06elapsed 114%CPU (0avgtext+0avgdata 6040maxresident)k
256inputs+0outputs (1major+9838minor)pagefaults 0swaps
The text was updated successfully, but these errors were encountered: