Quantcast
Channel: VMware Communities : Discussion List - Virtual Disk Development Kit
Viewing all articles
Browse latest Browse all 2039

VixDiskLib_Open() returns VixError = 1 when connecting to ESX/ESXi (Not through vCenter)

$
0
0

Hi Folks,

 

Environment:

- VDDK: 5.1

- Target hosts: ESX4.1 and ESXi 5.0 (being managed by vCenter 4 and 5 respectivley)

 

I have an issue where VixDiskLib_Open() returns VixError = 1 (see below for more details) when I connect to an ESX host. When I connect to a vCenter and attempt to open the exact same virtual disk, then I have no such problems. 

 

I’ve tried using both VixDiskLib_Connect() and VixDiskLib_ConnectEx().  Both connect calls return ok but the subsequent VixDiskLib_Open() always fails in both cases. I’ve also tried VixDiskLib_Init() and VixDiskLib_InitEx and again the problem persists in both cases. I’ve tried various vCenters and hosts and the issue is always the same: no problems when logging in to the Vcenter, but logging in directly to an ESX host results in problems opening disks. Omitting the call to VixDiskLib_PrepareForAccess() does not change the behavior.

 

As for the actual error received, I’ve attached the full contents of the default log file as well as a screenshot of the console, both of which I hope help in pinpointing the cause of this issue.

 

Thanks,

James

 

Here are the full contents of the log file:

 

VixDiskLib: config options: libdir '<null>', tmpDir 'C:\Users\ms\AppData\Local\Temp\vmware-ms'.

VixDiskLib: Transport modes available: file:nbdssl:nbd.

VixDiskLib: Advanced transport module not loaded.

VMware VixDiskLib (5.0) Release build-427917

POLL Using the WSAPoll API Implementation for PollDefault

VixDiskLibVimResolveHostName: Resolving IP address for hostname newbexesx6.

VixDiskLibVimResolveHostName: Resolved to 71.100.140.11.

HOSTINFO 6807883587803 @ 2727578Hz -> 0 @ 1000000000Hz

HOSTINFO ((x * 3075478684) >> 23) + -2495944602184482

VThreadBase detected multiple threads.

VixDiskLibVim: VixDiskLibVimLogin

VixDiskLibVim: TicketFindVMByMoRef: vmxPath = -vm-6685-

VixDiskLibVim: VixDiskLibVimLoadVM

VixDiskLibVim: VixDiskLibVimLoadVMCb

VixDiskLibVim: VixDiskLibVimLoadVMCb failure - VixError = 1.

VixDiskLibVim: VixDiskLibVimLogout

 

 

Here’s a screenshot of the console:


Viewing all articles
Browse latest Browse all 2039

Trending Articles



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