<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: domain\user fomat in ovftool.exe command cause string misinterpretation in vSphere Command-Line Interface Discussions</title>
    <link>https://communities.vmware.com/t5/vSphere-Command-Line-Interface/domain-user-fomat-in-ovftool-exe-command-cause-string/m-p/371938#M157</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In case you are still needing this (and to document another workaround) I had to find a way around this as well and I did not have any access to mess with the user accounts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;What I did was to use this form for the user name - &lt;/SPAN&gt;&lt;A class="jive-link-email-small" href="mailto:uName@domain.com"&gt;uName@domain.com&lt;/A&gt;&lt;/SPAN&gt;&lt;SPAN&gt; this worked.&amp;nbsp; See example Below&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS C:\Program Files\VMware\VMware OVF Tool&amp;gt; .\ovftool.exe --X:logFile=deploy.log --X:logLevel=verbose --disableVerification --noSSLVerify -ds=dataStore -n=vmName C:\packer-vmware-iso.ovf vi://&amp;lt;IPAddress&amp;gt;/DataCenter/host/esxhost.domain.com&lt;/P&gt;&lt;P&gt;Opening OVF source: C:\packer-vmware-iso.ovf&lt;/P&gt;&lt;P&gt;The manifest validates&lt;/P&gt;&lt;P&gt;Enter login information for target vi://&amp;lt;IPAddress&amp;gt;/&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;Username: &lt;/SPAN&gt;&lt;A class="jive-link-email-small" href="mailto:uName@domain.com"&gt;uName@domain.com&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Password: ***********&lt;/P&gt;&lt;P&gt;Opening VI target: vi://uName%40domain.com@&amp;lt;IPAddress&amp;gt;:443/DataCenter/host/esxhost.domain.com&lt;/P&gt;&lt;P&gt;Deploying to VI: vi://uName%40domain.com@&amp;lt;IPAddress&amp;gt;:443/DataCenter/host/esxhost.domain.com&lt;/P&gt;&lt;P&gt;Transfer Completed&lt;/P&gt;&lt;P&gt;Completed successfully&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note the '%40' chars in the lines following the authentication.&amp;nbsp; This led me to realize that the '@' char in the user name needed to be encoded.&amp;nbsp; Then I could pass the user name and pwd in the command like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS C:\Program Files\VMware\VMware OVF Tool&amp;gt; .\ovftool.exe --X:logFile=deploy.log --X:logLevel=verbose --disableVerification --noSSLVerify -ds=dataStore -n=vmName C:\packer-vmware-iso.ovf vi://uName%40domain.com:PWD&amp;lt;IPAddress&amp;gt;/DataCenter/host/esxhost.domain.com&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BOOM.&amp;nbsp; This worked.&amp;nbsp; Finally.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 17 Nov 2017 19:53:51 GMT</pubDate>
    <dc:creator>mhay</dc:creator>
    <dc:date>2017-11-17T19:53:51Z</dc:date>
    <item>
      <title>domain\user fomat in ovftool.exe command cause string misinterpretation</title>
      <link>https://communities.vmware.com/t5/vSphere-Command-Line-Interface/domain-user-fomat-in-ovftool-exe-command-cause-string/m-p/371937#M156</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi VMWare experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am having problem with automation script because the string passed in the ovftool command uses credential vsphere.local\userXYZ instead of just userXYZ.&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It appears that the backsplash in the 'vsphere.local\user' cause the command line to be misinterpreted, so the automation script that calls ovftool to deploy VMs kept failing.&amp;nbsp; It erred with "cURL error of ‘couldn’t resolve hostname" even though there is nothing wrong with any hosts or hostname resolution on the network.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On a Win-based vCenter I was able to reconfigure it so that instead of requiring login user format of 'vsphere.local\userXYZ', it will now accept user = 'userXYZ'.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With that change, ovftool.exe command string is now progress correctly and VMs are deployed.&amp;nbsp;&amp;nbsp; I could do that on Window-based vCenter, but I could not set up vApp vCenter to use just 'userXYZ'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The string segment in the long ovftool.exe command line looked like this …&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This works:&lt;/P&gt;&lt;P&gt;"vi://userXYZ:password@tm-vcenter55/DC2-SJ/host/Topology/csg-sj-esxi112.cisco.com"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This does not work:&lt;/P&gt;&lt;P&gt;"vi://vsphere.local\userXYZ:password@lin-vcenter55/DC2-SJ/host/Topology/csg-sj-esxi111.cisco.com"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there anyway to configure vCenter Virtual Appliance to use log in format of user = userXYZ instead of user = vsphere.local\userXYZ?&amp;nbsp;&amp;nbsp; Or is there some way of reformatting the string so that OS can interpret it correctly even with backsplash '\' is used in the string? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;Charles&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The complete ovftool.exe command is shown below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"C:\Program Files\VMware\VMware OVF Tool\ovftool.exe" --acceptAllEulas --skipManifestCheck --diskMode=thin --name=linsys2-vm1 --deploymentOption&lt;/P&gt;&lt;P&gt;=vm_typeA --datastore=EMC-LUN1 --net:"Network Adapter 1"="VLAN 410 - 172.27.14.0/24" --net:"Network Adapter 2"="VLAN 410 - 172.27.14.0/24" --vmFold&lt;/P&gt;&lt;P&gt;er=&amp;nbsp;&amp;nbsp; --prop:cisco_hostname.Proj=linsys2-vm1 --prop:cisco_ip_0.Proj=172.27.14.135 --prop:cisco_dnsDomain.Proj=cisco.com --prop:cisco_netmask_0.Proj=255.255.255.0 --prop:cisco_gateway_0.Proj=172.27.14.1 --prop:cisco_dns1_0.Proj=172.27.200.199 --prop:cisco_dns2_0.Proj=173.36.131.10 --prop:cisco_language.Proj=English v:\ova\projectX_1.0.0.ova "vi://vsphere.local\userXYZ:password@lin-vcenter55/DC2-SJ/host/Topology/csg-sj-esxi111.cisco.com"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Opening OVA source: v:\ova\projectX_1.0.0.ova&lt;/P&gt;&lt;P&gt;The manifest does not validate&lt;/P&gt;&lt;P&gt;Error: cURL error: Couldn't resolve host name&lt;/P&gt;&lt;P&gt;Completed with errors&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Installation Done!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 17 May 2014 17:35:40 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/vSphere-Command-Line-Interface/domain-user-fomat-in-ovftool-exe-command-cause-string/m-p/371937#M156</guid>
      <dc:creator>charlin</dc:creator>
      <dc:date>2014-05-17T17:35:40Z</dc:date>
    </item>
    <item>
      <title>Re: domain\user fomat in ovftool.exe command cause string misinterpretation</title>
      <link>https://communities.vmware.com/t5/vSphere-Command-Line-Interface/domain-user-fomat-in-ovftool-exe-command-cause-string/m-p/371938#M157</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In case you are still needing this (and to document another workaround) I had to find a way around this as well and I did not have any access to mess with the user accounts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;What I did was to use this form for the user name - &lt;/SPAN&gt;&lt;A class="jive-link-email-small" href="mailto:uName@domain.com"&gt;uName@domain.com&lt;/A&gt;&lt;/SPAN&gt;&lt;SPAN&gt; this worked.&amp;nbsp; See example Below&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS C:\Program Files\VMware\VMware OVF Tool&amp;gt; .\ovftool.exe --X:logFile=deploy.log --X:logLevel=verbose --disableVerification --noSSLVerify -ds=dataStore -n=vmName C:\packer-vmware-iso.ovf vi://&amp;lt;IPAddress&amp;gt;/DataCenter/host/esxhost.domain.com&lt;/P&gt;&lt;P&gt;Opening OVF source: C:\packer-vmware-iso.ovf&lt;/P&gt;&lt;P&gt;The manifest validates&lt;/P&gt;&lt;P&gt;Enter login information for target vi://&amp;lt;IPAddress&amp;gt;/&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;Username: &lt;/SPAN&gt;&lt;A class="jive-link-email-small" href="mailto:uName@domain.com"&gt;uName@domain.com&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Password: ***********&lt;/P&gt;&lt;P&gt;Opening VI target: vi://uName%40domain.com@&amp;lt;IPAddress&amp;gt;:443/DataCenter/host/esxhost.domain.com&lt;/P&gt;&lt;P&gt;Deploying to VI: vi://uName%40domain.com@&amp;lt;IPAddress&amp;gt;:443/DataCenter/host/esxhost.domain.com&lt;/P&gt;&lt;P&gt;Transfer Completed&lt;/P&gt;&lt;P&gt;Completed successfully&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note the '%40' chars in the lines following the authentication.&amp;nbsp; This led me to realize that the '@' char in the user name needed to be encoded.&amp;nbsp; Then I could pass the user name and pwd in the command like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS C:\Program Files\VMware\VMware OVF Tool&amp;gt; .\ovftool.exe --X:logFile=deploy.log --X:logLevel=verbose --disableVerification --noSSLVerify -ds=dataStore -n=vmName C:\packer-vmware-iso.ovf vi://uName%40domain.com:PWD&amp;lt;IPAddress&amp;gt;/DataCenter/host/esxhost.domain.com&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BOOM.&amp;nbsp; This worked.&amp;nbsp; Finally.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Nov 2017 19:53:51 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/vSphere-Command-Line-Interface/domain-user-fomat-in-ovftool-exe-command-cause-string/m-p/371938#M157</guid>
      <dc:creator>mhay</dc:creator>
      <dc:date>2017-11-17T19:53:51Z</dc:date>
    </item>
  </channel>
</rss>

