VMware OVF Tool password prompt does not take password correctly from prompted URL
search cancel

VMware OVF Tool password prompt does not take password correctly from prompted URL

book

Article ID: 450021

calendar_today

Updated On:

Products

VMware vCenter Server

Issue/Introduction

  • When running OVF Tool with a vi://<vCenter_URL> containing a username only you will get prompted to enter password and authentication will fail after too many retries 
  • The same password works when embedding it directly into vi//username@domain:password@vc_fqdn
  • ovftool logs will show: 
    DEBUG OVFTool ##### [Originator@####="Default"] Connected to VI server version: 8.0.3
    DEBUG OVFTool ##### [Originator@#### sub="Default"] Determine if server is a standalone host or vpxd
    DEBUG OVFTool ##### [Originator@#### sub="Default"] VI API type: VirtualCenter
    DEBUG OVFTool ##### [Originator@#### sub="Default"] Login to server based on username and password
    DEBUG OVFTool ##### [Originator@#### sub="Default"] Setting VI connection message locale (via login) to:
    DEBUG OVFTool ##### [Originator@#### sub="HttpConnectionPool-######"] LayeredHttpConnectionPool created. maxPoolConnections = 1; idleTimeout = 900000000 us; maxOpenConnections = 1; detectRemoteClose = true
    INFO OVFTool ##### [Originator@#### sub="vmomi.soapStub[1]"] SOAP request returned HTTP failure; <SSL(<io_obj t:class Vmacore::System::TCPSocketObjectAsio, h:1536, <TCP '<ip> : 61581'>, <TCP '<ip> : 443'>>), /sdk>, method: login; code: 500(Internal Server Error); fault: (vim.fault.InvalidLogin) {
    -->    faultCause = (vmodl.MethodFault) null,
    -->    faultMessage = <unset>
    -->    msg = "Received SOAP response fault from [<SSL(<io_obj t:class Vmacore::System::TCPSocketObjectAsio, h:1536, <TCP '<ip> : 61581'>, <TCP '<ip> : 443'>>), /sdk>]: login
    --> Cannot complete login due to an incorrect user name or password."
    --> }
    DEBUG OVFTool ##### [Originator@#### sub="Default"] Destruction of ViConnection
    DEBUG OVFTool ##### [Originator@#### sub="Default"] Getting username and password
    DEBUG OVFTool ##### [Originator@#### sub="Default"] Exception thrown: struct boost::wrapexcept<class OvfToolException>(Login aborted)
    --> [context]zKq7AVMEAQAAAAC6gwERT1ZGVG9vbAAA8Msndm1hY29yZS5kbGwAAAAXBwA+2QYAQVEBAZAFDW92ZnRvb2wuZXhlAAHnxQoBb1MLASDsCgGyrkICYEEAVkNSVU5USU1FMTQwXzEuZGxsAAJyJQADRkEKbnRkbGwuZGxsAAEzoA4BBaoOAVj3PwSwTAFLRVJORUwzMi5ETEwAA8vtBw==[/context]
    DEBUG OVFTool ##### [Originator@#### sub="Default"] Backtrace:
    --> [backtrace begin] product: VMware Workstation, version: 26.0.0, build: build-25410048, tag: OVFTool, cpu: x86_64, os: windows, buildType: release
    --> backtrace[00] vmacore.dll[0x0027CBF0]
    --> backtrace[01] vmacore.dll[0x00071700]
    --> backtrace[02] vmacore.dll[0x0006D93E]
    --> backtrace[03] vmacore.dll[0x00015141]
    --> backtrace[04] ovftool.exe[0x000D0590]
    --> backtrace[05] ovftool.exe[0x000AC5E7]
    --> backtrace[06] ovftool.exe[0x000B536F]
    --> backtrace[07] ovftool.exe[0x000AEC20]
    --> backtrace[08] ovftool.exe[0x0042AEB2]
    --> backtrace[09] VCRUNTIME140_1.dll[0x00004160]
    --> backtrace[10] VCRUNTIME140_1.dll[0x00002572]
    --> backtrace[11] ntdll.dll[0x000A4146]
    --> backtrace[12] ovftool.exe[0x000EA033]
    --> backtrace[13] ovftool.exe[0x000EAA05]
    --> backtrace[14] ovftool.exe[0x003FF758]
    --> backtrace[15] KERNEL32.DLL[0x00014CB0]
    --> backtrace[16] ntdll.dll[0x0007EDCB]
    --> [backtrace end]
    (END)

Environment

  • VMware OVF Tool 5.1
  • VMware vCenter Server 8.x 

Cause

This is caused by a regression bug in the OVF Tool code 

Resolution

Issue will be resolved in next release of VMware OVF Tool

 

Workaround: 

  • Enter the password via embedded method
    vi//username@domain:password@vc_fqdn

Additional Information

Enable logging on VMware OVF Tool