VMware

This Question is Not Answered

1 "correct" answer available (10 pts) 2 "helpful" answers available (6 pts)
5 Replies Last post: Nov 9, 2009 5:29 AM by tos2k  

VixDiskLib Opening delta disks (snapshots posted: Oct 28, 2009 5:26 AM

Click to view tos2k's profile Expert 307 posts since
May 11, 2007
Hi!

Is it possible to open delta disks with VixDiskLib? Currently connect fails for me:

Trying to connect to: [TP_SANVOL01] test-Delta/test-Delta.vmx?dcPath=ha-datacenter&dsName=TP_SANVOL01 disk: [TP_SANVOL01]test-Delta/test-Delta-000001.vmdk
conn 0 : connPtr 9522368
** INFO: TicketResolveHostName: Resolving IP address for hostname 192.168.73.204.

** INFO: TicketResolveHostName: Resolved to 192.168.73.204.

** INFO: VixDiskLibVim: TicketLogin

** INFO: VixDiskLibVim: TicketFindDatacenter: dcPath = -ha-datacenter- 

** INFO: VixDiskLibVim: TicketFindVMByDatastorePath: vmxPath = -[TP_SANVOL01] test-Delta/test-Delta.vmx- 

** INFO: VixDiskLibVim: TicketLoadVM

** INFO: VixDiskLibVim: Root Snapshot list has 1 elements.

** INFO: VixDiskLibVim: Unable to find key for disk [TP_SANVOL01]test-Delta/test-Delta-000001.vmdk, trying snapshot tree.

** INFO: VixDiskLibVim: TicketCollectSnapshots

** INFO: VixDiskLibVim: TicketLoadSnapshot

** INFO: VixDiskLibVim: TicketLoadVMCb

** INFO: VixDiskLibVim: TicketLoadInternalSic 

** INFO: VixDiskLibVim: TicketLoadNfcTicket: Request FileManagement diskKey = 2000, readOnly = 0, openSnapshot = 1 

** INFO: VixDiskLibVim: TicketLogout 

---EX caught: 0  :  System.OverflowException: Arithmetic operation resulted in an overflow.
   at vddkNativeTest.Module1.Init(String hostIp, String user, String pass, String vmxSource, String vmxTarget, String sourceDatastore, String targetDatastore, String currentDisk, String targetDisk, String datacenter)


The VM has that snapshot, is powered-off and the connect works fine for base disks... Any ideas?

Tos2k

Re: VixDiskLib Opening delta disks (snapshots

1. Oct 28, 2009 9:37 AM in response to: tos2k
Click to view RColbert's profile Enthusiast 98 posts since
Mar 11, 2005

Are you using the .NET wrapper? If so, you should change your VixError (in _native.vb) to be uint64. In the original posted wrapper, I think it was set to Integer which isn't big enough.


Re: VixDiskLib Opening delta disks (snapshots

3. Oct 28, 2009 1:36 PM in response to: tos2k
Click to view RColbert's profile Enthusiast 98 posts since
Mar 11, 2005

I have created,opened and deleted snapshot files w/ the VDDK.

What I discovered though is when you get an arithmetic overflow exception, it is usually because a function tried to come back w/ a VixError that was larger than the datatype defined for it.

If you fix the VixError enum, you should be able to get a real error code back from the VDDK which may help identify why you can't open the detlas.

Developer Social Media

Communities