Skip to content
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

VNC/ESXI: Error handshaking, no suitable auth schemes found #5939

Closed
arl opened this issue Feb 23, 2018 · 5 comments

Comments

Projects
None yet
3 participants
@arl
Copy link

commented Feb 23, 2018

Packer build fails with:

2018/02/23 11:40:10 [INFO] (telemetry) ending vmware-iso
2018/02/23 11:40:10 ui error: Build 'ubuntu-1604-server' errored: Error handshaking with VNC: no suitable auth schemes found. server supported: []byte{0x1}
2018/02/23 11:40:10 Builds completed. Waiting on interrupt barrier...
  • Packer version from packer version : has the problem with 1.1.3, so i built packer from latest master (9e8e376 version 1.2.1) . packer.log linked below has been produced with the latest packer version.
  • Host platform : ubuntu 16.04 x64
  • command packer build -var-file variables.json ubuntu-1604-base.json

Disabling vnc is not an option has I'm using a boot_command
What am I missing?

Thanks

packer.log

gist:complete packer.log

packer configuration

gist:ubuntu-1604-base.json
I tried with vnc_disable_password set either to "true" and "false"

variables.json

{
  "esxi_host": "192.168.1.10",
  "esxi_datastore": "datastore1/blahblah",
  "esxi_username": "sensible",
  "esxi_password": "sensible"
}

ESXI configuration

There is a rule on the hypervisor firewall for vnc:

  • part of /etc/vmware/firewall/service.xml
  <service id='0044'>                                                                                                                                                                                                                         
     <id>vnc</id>                                                                                                                                                                                                                      
     <rule id='0000'>                                                                                                                                                                                                                         
        <direction>inbound</direction>                                                                                                                                                                                                        
        <protocol>tcp</protocol>                                                                                                                                                                                                              
        <porttype>dst</porttype>                                                                                                                                                                                                              
        <port>5901</port>                                                                                                                                                                                                                     
     </rule>                                                                                                                                                                                                                                  
     <rule id='0001'>                                                                                                                                                                                                                         
        <direction>outbound</direction>                                                                                                                                                                                                       
        <protocol>tcp</protocol>                                                                                                                                                                                                              
        <porttype>dst</porttype>                                                                                                                                                                                                              
        <port>5901</port>                                                                                                                                                                                                                     
     </rule>                                                                                                                                                                                                                                  
     <enabled>true</enabled>                                                                                                                                                                                                                  
     <required>false</required>                                                                                                                                                                                                               
  </service>    

And it is active:

[root@esxitest:~] esxcli network firewall ruleset list
Name                      Enabled
------------------------  -------
sshServer                    true
sshClient                   false
...other services                   ...
vnc                   true
@BeverlyBrown

This comment has been minimized.

Copy link

commented Feb 28, 2018

I'm having the same problem.

@SwampDragons

This comment has been minimized.

Copy link
Member

commented Mar 5, 2018

Just to clarify, you've never gotten this config working with any version of Packer?

@SwampDragons

This comment has been minimized.

Copy link
Member

commented Mar 5, 2018

Ah, I see. You have your port min and max, as well as vnc_disable_password set in the variables section of the config rather than in the builder section of the config. Try moving these variables to up under your ssh_timeout option in your config.

@SwampDragons

This comment has been minimized.

Copy link
Member

commented Mar 5, 2018

I'm going to close this for now because it's more of a question than a bug. If you have any more questions or need any more help getting your packer config working, please reach out to our user group at https://groups.google.com/forum/#!forum/packer-tool; we have lots of people there who are great at helping new users get their feet under them.

@arl

This comment has been minimized.

Copy link
Author

commented Mar 9, 2018

@SwampDragons that was that, thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.