Quantcast
Channel: VMware Communities : Unanswered Discussions - Virtual Disk Development Kit
Viewing all articles
Browse latest Browse all 872

vixDiskLibSample failed when running in a VM

$
0
0

Hi All,

 

I'm recently playing the sample code shipped with vixDiskLib 5.1. I made small changes (i.e. switch the srcConnection with dstConnection, and swith the srcPath with diskPath) in doClone() method to make it clone a vmdk from a remote site to a local environment.

 

It works well in my local machine (Windows 7). I'm able to download a whole vmdk from a vSphere server.

 

But when I move the modified sample code to a VM running in the vSphere server, it fails with this error message:

 

DISKLIB-LIB   : CREATE: "c:\dump\dump.vmdk" -- vmfs capacity=83886080 (40 GB) adapter=buslogic cowGran=128 allocType=3

Object backing type is invalid. Figuring out the most suitable backing type...

CREATE: Creating disk backed by 'default'

DISKLIB-DSCPTR: "c:\dump\dump.vmdk" : creation successful.

DeviceCreateHost_DiskDeviceToUniqueID: c:\dump\dump-flat.vmdk not in \\.\PhysicalDriveX format.

UUID: SMBIOS UUID is reported as '42 13 e4 b6 4f fd 61 88-1c f6 86 c7 ca 55 91 d7'.

FILE: FileLockDynaLink: Further process validation tools are: available

DISKLIB-DSCPTR: Opened [0]: "dump-flat.vmdk" 0 (0x21a)

DISKLIB-LINK  : Opened 'c:\dump\dump.vmdk' (0x21a): vmfs, 83886080 sectors / 40 GB.

DISKLIB-LIB   : Opened "c:\dump\dump.vmdk" (flags 0x21a, type vmfs).


[NFC ERROR] NfcNetTcpRead: bRead: -1

[NFC ERROR] NfcNet_Recv: requested 264, recevied only 0 bytes

[NFC ERROR] NfcFile_Receive: Failed to get message

[NFC ERROR] NFC_NETWORK_ERROR

[NFC ERROR] NfcNetTcpWrite: bWritten: -1

[NFC ERROR] NfcSendMessage: send failed: NFC_NETWORK_ERROR


And sometimes, it will be:


[NFC ERROR] NfcNetTcpRead: bRead: -1
[NFC ERROR] NfcNet_Recv: requested 261736, recevied only 196608 bytes
[NFC ERROR] NfcFile_RecvMessage: data recv failed. retval = 3, expected 261736
[NFC ERROR] NFC_NETWORK_ERROR


And the requested xxx changes all the time.

 

It would be appriecaited if someone could enlight me with some possible causes. Many thanks.


Viewing all articles
Browse latest Browse all 872

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>