VMware {code} Community
SachinDurge
Contributor
Contributor

using vix api with non-root user to download disk info/data.

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.

suser has is Administrator , Also tried adding in root group. With some changes I can ssh to ESX box using  suser, but my client always fail with username/password incorrect.

vix version i am using - VMware-vix-disklib-5.1.1-1042608.x86_64

my client side vix related logs

31249:07:21:2014:11:54:23:WARNING:SSL_VerifyCbHelper: Certificate verification is disabled, so connection will proceed despite the error

31249:07:21:2014:11:54:23:WARNING:SSL_VerifyCbHelper: Certificate verification is disabled, so connection will proceed despite the error

31249:07:21:2014:11:54:23:INFO:CnxConnectAuthd: Returning false because CnxAuthdProtoAuthenticate failed

31249:07:21:2014:11:54:23:INFO:Cnx_Connect: Returning false because CnxConnectAuthd failed

31249:07:21:2014:11:54:23:INFO:Cnx_Connect: Error message: Login (username/password) incorrect

31249:07:21:2014:11:54:23:WARNING:[NFC ERROR] NfcNewAuthdConnectionEx: Failed to connect to peer. Error: Login (username/password) incorrect

31249:07:21:2014:11:54:23:INFO:NBD_ClientOpen: Couldn't connect to 172.16.8.155:902 Login (username/password) incorrect

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.

31249:07:21:2014:11:54:23:INFO:DISKLIB-LINK  : "ha-nfc://[datastore1] foo/foo-000001.vmdk@172.16.8.155:902" : failed to open (NBD_ERR_NETWORK_CONNECT).

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).

31249:07:21:2014:11:54:23:INFO:DISKLIB-LIB   : Failed to open 'ha-nfc://[datastore1] foo/foo-000001.vmdk@172.16.8.155:902' with flags 0x1e NBD_ERR_NETWORK_CONNECT (2338).

I  think this is corresponding log from hostd-*.log

[2014-07-21 17:11:13.482 6DD05B90 info 'ha-eventmgr'] Event 162 : User suser@172.16.10.10 logged in

[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))

[2014-07-21 17:11:13.741 6DD05B90 verbose 'ha-license-manager'] Load: Loading existing file: /etc/vmware/license.cfg

[2014-07-21 17:11:13.747 6DD05B90 verbose 'ha-license-manager'] Load: Loading existing file: /etc/vmware/license.cfg

[2014-07-21 17:11:13.755 6DD05B90 verbose 'App'] ha-license-manager:Validate -> Valid evaluation detected for "VMware ESX Server 4.0" (lastError=0, desc.IsValid:Yes)

[2014-07-21 17:11:13.759 6DD05B90 error 'PropertyProvider'] Unexpected fault reading property: vim.LicenseManager,IsSourceAvailable: vmodl.fault.NotSupported

[2014-07-21 17:11:13.759 6DD05B90 verbose 'Locale'] Default resource used for 'LicenseManager.LicenseInfo.dpvmotion.label' expected in module 'default'.

[2014-07-21 17:11:13.759 6DD05B90 verbose 'Locale'] Default resource used for 'LicenseManager.LicenseInfo.vaai.label' expected in module 'default'.

[2014-07-21 17:11:13.871 6E780B90 verbose 'App'] CloseSession called for session id=52a1457d-28a8-936c-857b-408e4fa2a3cf

Thanks,

Sachin

0 Kudos
0 Replies