If you are deployed directly to ESXi you might need to run the following
commands on your ESXi host:

# enable GuestIpHack to allow packer to determine the vm IP address
before vmtools are installed
esxcli system settings advanced set -o /Net/GuestIPHack -i 1
# open inbound VNC connections on the firewall
esxcli network firewall ruleset set -e true -r gdbserver

I have also had to add '"vnc_disable_password": true,' as described on the
following link:
https://www.packer.io/docs/builders/vmware/iso#building-on-a-remote-vsphere-hypervisor

Hope this helps.

Stan

On Tue, Jan 19, 2021 at 3:36 PM Andrea Arquint <[email protected]>
wrote:

> Hi
>
> I run ESXi 6.7 in my Lab and tried to install an ubuntu vm into it.
>
> ... snip ...
> ==> utest: Retrieving ISO
> ==> utest: Trying
> https://releases.ubuntu.com/focal/ubuntu-20.04.1-live-server-amd64.iso
> ==> utest: Trying
> https://releases.ubuntu.com/focal/ubuntu-20.04.1-live-server-amd64.iso?checksum=sha256%3A443511f6bf12402c12503733059269a2e10dec602916c0a75263e5d990f6bb93
> ==> utest:
> https://releases.ubuntu.com/focal/ubuntu-20.04.1-live-server-amd64.iso?checksum=sha256%3A443511f6bf12402c12503733059269a2e10dec602916c0a75263e5d990f6bb93
> => /home/ndee/.packer/e30b34e4d3c536763868a42bb9d5b8f14af297b8.iso
> ==> utest: Configuring output and export directories...
> ==> utest: Creating floppy disk...
>     utest: Copying files flatly from floppy_files
>     utest: Copying file: /tmp/packer/1611091651/preseed.cfg
>     utest: Done copying files from floppy_files
>     utest: Collecting paths from floppy_dirs
>     utest: Resulting paths from floppy_dirs : []
>     utest: Done copying paths from floppy_dirs
> ==> utest: Uploading Floppy to remote machine...
>     utest: packer554707513 1.41 MiB / 1.41 MiB
> [=========================================================================================================================================]
> 100.00% 0s
> ==> utest: Remote cache was verified skipping remote upload...
> ==> utest: Creating required virtual machine disks
> ==> utest: Building and writing VMX file
> ==> utest: Registering remote VM...
> ==> utest: Starting virtual machine...
> ==> utest: Connecting to VNC...
> ==> utest: Error handshaking with VNC: no suitable auth schemes found.
> server supported: []byte{0x1}
> ==> utest: Waiting 3.268086874s to give VMware time to clean up...
> ==> utest: Stopping virtual machine...
> ==> utest: Destroying virtual machine...
> *Build 'utest' errored after 20 seconds 189 milliseconds: Error
> handshaking with VNC: no suitable auth schemes found. server supported:
> []byte{0x1}*
> ...snip...
>
> There is no VNC on ESXi 6.7. Does some else faced same issues?
>
> Any input kindly appreciated!
> Andrea
>
> --
> This mailing list is governed under the HashiCorp Community Guidelines -
> https://www.hashicorp.com/community-guidelines.html. Behavior in
> violation of those guidelines may result in your removal from this mailing
> list.
>
> GitHub Issues: https://github.com/hashicorp/packer/issues
> IRC: #packer-tool on Freenode
> ---
> You received this message because you are subscribed to the Google Groups
> "Packer" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/packer-tool/33d8d8e9-44ee-4d35-bb05-b8ffcaacfa5bn%40googlegroups.com
> <https://groups.google.com/d/msgid/packer-tool/33d8d8e9-44ee-4d35-bb05-b8ffcaacfa5bn%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
This mailing list is governed under the HashiCorp Community Guidelines - 
https://www.hashicorp.com/community-guidelines.html. Behavior in violation of 
those guidelines may result in your removal from this mailing list.

GitHub Issues: https://github.com/hashicorp/packer/issues
IRC: #packer-tool on Freenode
--- 
You received this message because you are subscribed to the Google Groups 
"Packer" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/packer-tool/CA%2BT1%2Bddxj00syrsnybckHAty0tnBTvuncixNtnE7pHNkx3qWpg%40mail.gmail.com.

Reply via email to