<?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 using vix api with non-root user to download disk info/data. in VIX API Discussions</title>
    <link>https://communities.vmware.com/t5/VIX-API-Discussions/using-vix-api-with-non-root-user-to-download-disk-info-data/m-p/430845#M537</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to connect to ESX 4.1 to download data from disk(vm snapshot), All this code works fine with root but doesnt work for another Administrator user - suser. &lt;/P&gt;&lt;P&gt;suser has is Administrator , Also tried adding in root group. With some changes I can ssh to ESX box using&amp;nbsp; suser, but my client always fail with username/password incorrect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vix version i am using - VMware-vix-disklib-5.1.1-1042608.x86_64&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my client side vix related logs&lt;/P&gt;&lt;P&gt;31249:07:21:2014:11:54:23:WARNING:SSL_VerifyCbHelper: Certificate verification is disabled, so connection will proceed despite the error&lt;/P&gt;&lt;P&gt;31249:07:21:2014:11:54:23:WARNING:SSL_VerifyCbHelper: Certificate verification is disabled, so connection will proceed despite the error&lt;/P&gt;&lt;P&gt;31249:07:21:2014:11:54:23:INFO:CnxConnectAuthd: Returning false because CnxAuthdProtoAuthenticate failed&lt;/P&gt;&lt;P&gt;31249:07:21:2014:11:54:23:INFO:Cnx_Connect: Returning false because CnxConnectAuthd failed&lt;/P&gt;&lt;P&gt;31249:07:21:2014:11:54:23:INFO:Cnx_Connect: Error message: Login (username/password) incorrect&lt;/P&gt;&lt;P&gt;31249:07:21:2014:11:54:23:WARNING:[NFC ERROR] NfcNewAuthdConnectionEx: Failed to connect to peer. Error: Login (username/password) incorrect&lt;/P&gt;&lt;P&gt;31249:07:21:2014:11:54:23:INFO:NBD_ClientOpen: Couldn't connect to 172.16.8.155:902 Login (username/password) incorrect&lt;/P&gt;&lt;P&gt;31249:07:21:2014:11:54:23:INFO:DISKLIB-DSCPTR: : "ha-nfc://[datastore1] foo/foo-000001.vmdk@172.16.8.155:902" : Failed to open NBD extent.&lt;/P&gt;&lt;P&gt;31249:07:21:2014:11:54:23:INFO:DISKLIB-LINK&amp;nbsp; : "ha-nfc://[datastore1] foo/foo-000001.vmdk@172.16.8.155:902" : failed to open (NBD_ERR_NETWORK_CONNECT).&lt;/P&gt;&lt;P&gt;31249:07:21:2014:11:54:23:INFO:DISKLIB-CHAIN : "ha-nfc://[datastore1] foo/foo-000001.vmdk@172.16.8.155:902" : failed to open (NBD_ERR_NETWORK_CONNECT).&lt;/P&gt;&lt;P&gt;31249:07:21:2014:11:54:23:INFO:DISKLIB-LIB&amp;nbsp;&amp;nbsp; : Failed to open 'ha-nfc://[datastore1] foo/foo-000001.vmdk@172.16.8.155:902' with flags 0x1e NBD_ERR_NETWORK_CONNECT (2338).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I&amp;nbsp; think this is corresponding log from hostd-*.log&lt;/P&gt;&lt;P&gt;[2014-07-21 17:11:13.482 6DD05B90 info 'ha-eventmgr'] Event 162 : User suser@172.16.10.10 logged in&lt;/P&gt;&lt;P&gt;[2014-07-21 17:11:13.494 6DD87B90 verbose 'Proxysvc Req00255'] New proxy client SSL(TCP(local=172.16.10.10:49134, peer=172.16.8.155:443))&lt;/P&gt;&lt;P&gt;[2014-07-21 17:11:13.741 6DD05B90 verbose 'ha-license-manager'] Load: Loading existing file: /etc/vmware/license.cfg&lt;/P&gt;&lt;P&gt;[2014-07-21 17:11:13.747 6DD05B90 verbose 'ha-license-manager'] Load: Loading existing file: /etc/vmware/license.cfg&lt;/P&gt;&lt;P&gt;[2014-07-21 17:11:13.755 6DD05B90 verbose 'App'] ha-license-manager:Validate -&amp;gt; Valid evaluation detected for "VMware ESX Server 4.0" (lastError=0, desc.IsValid:Yes)&lt;/P&gt;&lt;P&gt;[2014-07-21 17:11:13.759 6DD05B90 error 'PropertyProvider'] Unexpected fault reading property: vim.LicenseManager,IsSourceAvailable: vmodl.fault.NotSupported&lt;/P&gt;&lt;P&gt;[2014-07-21 17:11:13.759 6DD05B90 verbose 'Locale'] Default resource used for 'LicenseManager.LicenseInfo.dpvmotion.label' expected in module 'default'.&lt;/P&gt;&lt;P&gt;[2014-07-21 17:11:13.759 6DD05B90 verbose 'Locale'] Default resource used for 'LicenseManager.LicenseInfo.vaai.label' expected in module 'default'.&lt;/P&gt;&lt;P&gt;[2014-07-21 17:11:13.871 6E780B90 verbose 'App'] CloseSession called for session id=52a1457d-28a8-936c-857b-408e4fa2a3cf&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sachin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 21 Jul 2014 12:33:47 GMT</pubDate>
    <dc:creator>SachinDurge</dc:creator>
    <dc:date>2014-07-21T12:33:47Z</dc:date>
    <item>
      <title>using vix api with non-root user to download disk info/data.</title>
      <link>https://communities.vmware.com/t5/VIX-API-Discussions/using-vix-api-with-non-root-user-to-download-disk-info-data/m-p/430845#M537</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to connect to ESX 4.1 to download data from disk(vm snapshot), All this code works fine with root but doesnt work for another Administrator user - suser. &lt;/P&gt;&lt;P&gt;suser has is Administrator , Also tried adding in root group. With some changes I can ssh to ESX box using&amp;nbsp; suser, but my client always fail with username/password incorrect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vix version i am using - VMware-vix-disklib-5.1.1-1042608.x86_64&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my client side vix related logs&lt;/P&gt;&lt;P&gt;31249:07:21:2014:11:54:23:WARNING:SSL_VerifyCbHelper: Certificate verification is disabled, so connection will proceed despite the error&lt;/P&gt;&lt;P&gt;31249:07:21:2014:11:54:23:WARNING:SSL_VerifyCbHelper: Certificate verification is disabled, so connection will proceed despite the error&lt;/P&gt;&lt;P&gt;31249:07:21:2014:11:54:23:INFO:CnxConnectAuthd: Returning false because CnxAuthdProtoAuthenticate failed&lt;/P&gt;&lt;P&gt;31249:07:21:2014:11:54:23:INFO:Cnx_Connect: Returning false because CnxConnectAuthd failed&lt;/P&gt;&lt;P&gt;31249:07:21:2014:11:54:23:INFO:Cnx_Connect: Error message: Login (username/password) incorrect&lt;/P&gt;&lt;P&gt;31249:07:21:2014:11:54:23:WARNING:[NFC ERROR] NfcNewAuthdConnectionEx: Failed to connect to peer. Error: Login (username/password) incorrect&lt;/P&gt;&lt;P&gt;31249:07:21:2014:11:54:23:INFO:NBD_ClientOpen: Couldn't connect to 172.16.8.155:902 Login (username/password) incorrect&lt;/P&gt;&lt;P&gt;31249:07:21:2014:11:54:23:INFO:DISKLIB-DSCPTR: : "ha-nfc://[datastore1] foo/foo-000001.vmdk@172.16.8.155:902" : Failed to open NBD extent.&lt;/P&gt;&lt;P&gt;31249:07:21:2014:11:54:23:INFO:DISKLIB-LINK&amp;nbsp; : "ha-nfc://[datastore1] foo/foo-000001.vmdk@172.16.8.155:902" : failed to open (NBD_ERR_NETWORK_CONNECT).&lt;/P&gt;&lt;P&gt;31249:07:21:2014:11:54:23:INFO:DISKLIB-CHAIN : "ha-nfc://[datastore1] foo/foo-000001.vmdk@172.16.8.155:902" : failed to open (NBD_ERR_NETWORK_CONNECT).&lt;/P&gt;&lt;P&gt;31249:07:21:2014:11:54:23:INFO:DISKLIB-LIB&amp;nbsp;&amp;nbsp; : Failed to open 'ha-nfc://[datastore1] foo/foo-000001.vmdk@172.16.8.155:902' with flags 0x1e NBD_ERR_NETWORK_CONNECT (2338).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I&amp;nbsp; think this is corresponding log from hostd-*.log&lt;/P&gt;&lt;P&gt;[2014-07-21 17:11:13.482 6DD05B90 info 'ha-eventmgr'] Event 162 : User suser@172.16.10.10 logged in&lt;/P&gt;&lt;P&gt;[2014-07-21 17:11:13.494 6DD87B90 verbose 'Proxysvc Req00255'] New proxy client SSL(TCP(local=172.16.10.10:49134, peer=172.16.8.155:443))&lt;/P&gt;&lt;P&gt;[2014-07-21 17:11:13.741 6DD05B90 verbose 'ha-license-manager'] Load: Loading existing file: /etc/vmware/license.cfg&lt;/P&gt;&lt;P&gt;[2014-07-21 17:11:13.747 6DD05B90 verbose 'ha-license-manager'] Load: Loading existing file: /etc/vmware/license.cfg&lt;/P&gt;&lt;P&gt;[2014-07-21 17:11:13.755 6DD05B90 verbose 'App'] ha-license-manager:Validate -&amp;gt; Valid evaluation detected for "VMware ESX Server 4.0" (lastError=0, desc.IsValid:Yes)&lt;/P&gt;&lt;P&gt;[2014-07-21 17:11:13.759 6DD05B90 error 'PropertyProvider'] Unexpected fault reading property: vim.LicenseManager,IsSourceAvailable: vmodl.fault.NotSupported&lt;/P&gt;&lt;P&gt;[2014-07-21 17:11:13.759 6DD05B90 verbose 'Locale'] Default resource used for 'LicenseManager.LicenseInfo.dpvmotion.label' expected in module 'default'.&lt;/P&gt;&lt;P&gt;[2014-07-21 17:11:13.759 6DD05B90 verbose 'Locale'] Default resource used for 'LicenseManager.LicenseInfo.vaai.label' expected in module 'default'.&lt;/P&gt;&lt;P&gt;[2014-07-21 17:11:13.871 6E780B90 verbose 'App'] CloseSession called for session id=52a1457d-28a8-936c-857b-408e4fa2a3cf&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sachin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jul 2014 12:33:47 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VIX-API-Discussions/using-vix-api-with-non-root-user-to-download-disk-info-data/m-p/430845#M537</guid>
      <dc:creator>SachinDurge</dc:creator>
      <dc:date>2014-07-21T12:33:47Z</dc:date>
    </item>
  </channel>
</rss>

