hashicorp / packer-plugin-vmware

Packer plugin for VMware Builder
https://www.packer.io/docs/builders/vmware
Mozilla Public License 2.0
47 stars 41 forks source link

packer build stuck after Connecting to VM via VNC (127.0.0.1:5964) #5

Closed ghost closed 1 year ago

ghost commented 3 years ago

This issue was originally opened by @atileren as hashicorp/packer#9847. It was migrated here as a result of the Packer plugin split. The original body of the issue is below.


when I was run packer build over ssh packer stucks the Connecting to VM via VNC (127.0.0.1:5964). I built centos 7.8 machine with headless true option. I have updated packer to 1.6.2. Is there any solution for this?

vmware-iso: view the screen of the VM, connect via VNC with the password "F8GCrvNX" to
vmware-iso: vnc://127.0.0.1:5964
vmware-iso: Waiting 10s for boot...
vmware-iso: Connecting to VM via VNC (127.0.0.1:5964)
jdizon commented 3 years ago

I just tried testing building with packer 1.7.2, VMware Fusion 12 and it hangs on the same "Typing Command on VNC" step. I have checked on High Sierra, VMware Fusion 11, packer 1.7.2 and the build works all the time.

stephenreay commented 3 years ago

I don't know if it's related to this issue or not - I'm getting failures to connect to VNC (using Fusion Pro locally) when running with headless set to true.

jdizon commented 3 years ago

I am able to connect via VNC if I set headless to true. I do not see any activity in the VM. I also tried an ubuntu and windows builds and I keep getting the same result - packer just hangs on the VNC step.

jdizon commented 3 years ago

I just tried testing building with packer 1.7.2, VMware Fusion 12 and it hangs on the same "Typing Command on VNC" step. I have checked on High Sierra, VMware Fusion 11, packer 1.7.2 and the build works all the time.

I ended up re-imaging my macOS Big Sur to a base installation and also installed a base install of VMware Fusion 12 Pro and packer has been running without any problems.

stephenreay commented 3 years ago

I ended up re-imaging my macOS Big Sur to a base installation and also installed a base install of VMware Fusion 12 Pro and packer has been running without any problems.

I had wondered about this too, given some other existing incompatibilities I'd seen (DHCP leases from memory). I'll try a fresh OS install when I get a chance and report back with results.

tenthirtyam commented 2 years ago

For general questions, we recommend reaching out to the community forum for greater visibility. The GitHub issue tracker is only watched by a small group of maintainers and collaborators and is typically reserved for bug reports and enhancement request. You will typically have more success finding assistance on the forum.

If you find the forum to be more helpful or if you've found the answer to your question elsewhere, please comment and close the issue. If there is no further activity on this question within the next 30 days it will be closed.

Ryan Johnson Senior Staff Solutions Architect | Product Engineering @ VMware, Inc.