I am super lost on what my problem is and I have few hints that might give you an idea where I stand right now.
I have successfully build a packer vmware-iso on Ubuntu 18.04.3 Desktop version, the trick was open the VMWare Workstation gui after the installation was completed.
In the other hand in Ubuntu Server I believe I am having problems with the installation of VMWare Workstation since I am getting issues with the libraries and such, I have try many of the link I have found online and nothing seems to fix it
here is the PACKER_LOG=1 output
==> vmware-iso: Starting HTTP server on port 8870
2020/01/17 01:06:04 packer-builder-vmware-iso plugin: Looking for available port between 5900 and 6000
2020/01/17 01:06:04 packer-builder-vmware-iso plugin: Found available port: 5944 on IP: 127.0.0.1
2020/01/17 01:06:04 packer-builder-vmware-iso plugin: Found available VNC port:
127.0.0.1:59442020/01/17 01:06:04 packer-builder-vmware-iso plugin: Writing VMX to: output-vmware-iso/ubuntu-18.04.vmx
==> vmware-iso: Starting virtual machine...
vmware-iso: view the screen of the VM, connect via VNC with the password "c9UBiBZ0" to
vmware-iso: vnc://
127.0.0.1:5944 vmware-iso: The VM will be run headless, without a GUI. If you want to
2020/01/17 01:06:04 packer-builder-vmware-iso plugin: Executing: /usr/bin/vmrun -T player start output-vmware-iso/ubuntu-18.04.vmx nogui
vmware-iso: view the screen of the VM, connect via VNC with the password "c9UBiBZ0" to
vmware-iso: vnc://
127.0.0.1:59442020/01/17 01:06:05 packer-builder-vmware-iso plugin: stdout: Error: The operation was canceled
2020/01/17 01:06:05 packer-builder-vmware-iso plugin: stderr:
==> vmware-iso: Error starting VM: VMware error: Error: The operation was canceled
==> vmware-iso: Waiting 4.395785156s to give VMware time to clean up...
2020/01/17 01:06:09 packer-builder-vmware-iso plugin: Executing: /usr/bin/vmrun -T player list
2020/01/17 01:06:09 packer-builder-vmware-iso plugin: stdout: Total running VMs: 0
2020/01/17 01:06:09 packer-builder-vmware-iso plugin: stderr:
2020/01/17 01:06:09 packer-builder-vmware-iso plugin: failed to unlock port lockfile: close tcp
127.0.0.1:5944: use of closed network connection
==> vmware-iso: Deleting output directory...
2020/01/17 01:06:09 [INFO] (telemetry) ending vmware-iso
2020/01/17 01:06:09 machine readable: error-count []string{"1"}
==> Some builds didn't complete successfully and had errors:
2020/01/17 01:06:09 machine readable: vmware-iso,error []string{"Error starting VM: VMware error: Error: The operation was canceled"}
==> Builds finished but no artifacts were created.
2020/01/17 01:06:09 Cancelling builder after context cancellation context canceled
Build 'vmware-iso' errored: Error starting VM: VMware error: Error: The operation was canceled
2020/01/17 01:06:09 [INFO] (telemetry) Finalizing.
==> Some builds didn't complete successfully and had errors:
--> vmware-iso: Error starting VM: VMware error: Error: The operation was canceled
==> Builds finished but no artifacts were created.
2020/01/17 01:06:10 waiting for all plugin processes to complete...
2020/01/17 01:06:10 /usr/bin/packer: plugin process exited
Also, here are some of the links and steps I have done to try debug the issue.
Also I have manually download the library VMware-vix-disklib-6.7.0-8173251.x86_64.tar.gz and register it in ldconfig using the following steps
I extracted and appended the folder to an existing config /etc/ld.so.conf.d/x86_64-linux-gnu.conf and run ldconfig && updatedb && restart the system
Please help, I am desperate and I don't know what else to do.
I appreciate any help in advance.