Error handshaking with VNC: no suitable auth schemes found. server supported: []byte{0x1}

82 views
Skip to first unread message

Andrea Arquint

unread,
Jan 19, 2021, 4:36:33 PM1/19/21
to Packer
Hi

I run ESXi 6.7 in my Lab and tried to install an ubuntu vm into it.

... snip ...
==> utest: Retrieving 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

Stan Dorsett

unread,
Jan 19, 2021, 7:08:53 PM1/19/21
to packe...@googlegroups.com
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

--
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 packer-tool...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/33d8d8e9-44ee-4d35-bb05-b8ffcaacfa5bn%40googlegroups.com.

AusserBetrieb

unread,
Jan 20, 2021, 4:56:15 AM1/20/21
to packe...@googlegroups.com
Hi Stan

Thx so far... I did all those 3 steps you mentioned and I got over the VNC issue but now there is a new one as shown in screenshot:

image.png

==> 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/1611136306/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: packer067613816 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: Waiting 10s for boot...
==> utest: Typing the boot command over VNC...
==> utest: Waiting for SSH to become available...

And now it stuck's there... for what ever reason?

Thx Andrea

You received this message because you are subscribed to a topic in the Google Groups "Packer" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/packer-tool/-kP16PUywh0/unsubscribe.
To unsubscribe from this group and all its topics, send an email to packer-tool...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/CA%2BT1%2Bddxj00syrsnybckHAty0tnBTvuncixNtnE7pHNkx3qWpg%40mail.gmail.com.

Andrea Arquint

unread,
Jan 20, 2021, 5:07:16 AM1/20/21
to Packer
I fixed it... Had to increase the amount of RAM allocation from 512 to 1024
So, this is solved so far!

Thx Stan !!!

Stan Dorsett

unread,
Jan 20, 2021, 2:27:46 PM1/20/21
to packe...@googlegroups.com
No worries. I'm glad it is working for you now.

Stan

Reply all
Reply to author
Forward
0 new messages