VMware Cloud Community
pprandive
Contributor
Contributor

Accessing .VMDK using VDDK 5.5.4 library

Hello,

I am new to VMWare and need some help with one issue resulting while calling VixDiskLib_Open() method of VDDK. If this is not the right forum, please let me know the correct forum to take this query to.

Software Details:

ESXi version 6.0

VDDK version 5.5.4 - VMware-vix-disklib-5.5.4-2454786.x86_64.tar.gz. With VDDK version 6.0, some invalid configuration error message is seen.

Operating System Ubuntu 14.04

Description:

VixDiskLib_Open() is resulting into below mentioned error when I try to connect to EXSi server.

[NFC ERROR] NfcNewAuthdConnectionEx: Failed to connect to peer. Error: Connection terminated by server

I noticed that functions VixDiskLib_Init and VixDiskLib_Connect succeed but VixDiskLib_Open() fails with above error.

I tried to debug the issue using strace tool. Here is some of the suspicious entries-

=======================================================================================================================================

stat("ha-nfc://[datastore1] RHEL6.3/RHEL6.3.vmdk@172.22.15.80:443?root/Password_123", 0x7fffa3b99290) = -1 ENOE    NT (No such file or directory)

write(3, "NBD_ClientOpen: attempting to cr"..., 111) = 111

socket(PF_INET, SOCK_STREAM, IPPROTO_TCP) = 8

connect(8, {sa_family=AF_INET, sin_port=htons(443), sin_addr=inet_addr("172.22.15.80")}, 16) = 0

read(8, "", 1)                          = 0

close(8)                                = 0

write(3, "CnxAuthdConnect: Returning false"..., 75) = 75

write(3, "CnxConnectAuthd: Returning false"..., 64) = 64

write(3, "Cnx_Connect: Returning false bec"..., 60) = 60

write(3, "Cnx_Connect: Error message: Conn"..., 60) = 60

write(2, "[NFC ERROR] NfcNewAuthdConnectio"..., 103[NFC ERROR] NfcNewAuthdConnectionEx: Failed to connect to peer. Error: Connection terminated by server

) = 103

write(3, "[NFC ERROR] NfcNewAuthdConnectio"..., 103) = 103

write(3, "NBD_ClientOpen: Couldn't connect"..., 85) = 85

write(3, "DISKLIB-DSCPTR: : \"ha-nfc://[dat"..., 109) = 109

write(3, "DISKLIB-LINK  : \"ha-nfc://[datas"..., 124) = 124

write(3, "DISKLIB-CHAIN : \"ha-nfc://[datas"..., 122) = 122

write(3, "DISKLIB-LIB  : Failed to open '"..., 141) = 141

write(3, "VixDiskLib: Detected DiskLib err"..., 67) = 67

write(1, "Message: NBD_ERR_NETWORK_CONNECT"..., 33) = 33

write(3, "VixDiskLib: VixDiskLib_Disconnec"..., 47) = 47

write(3, "VixDiskLib: VixDiskLib_Exit: Unm"..., 61) = 61

write(3, "VixDiskLibVim: VixDiskLibVim_Exi"..., 45) = 45

close(6)                                = 0

write(6, "\25\3\1\0 \24\31\356:\273\206<\310d=([Fw\267\3\275\25=\252]\264\274\222\212\272?"..., 37) = -1 EBADF (Bad file descriptor)

close(7)                                = 0

write(7, "\25\3\1\0 >\305W?\206\335^ \257\35pf|\21\237@[P3(\330\271\3\371l-\254"..., 37) = -1 EBADF (Bad file descriptor)

=======================================================================================================================================

Attached is source code. Could you please help me resolve this error?

Thanks and Regards

0 Kudos
0 Replies