VMware {code} Community
nicok
Contributor
Contributor

VixDiskLib_Clone() just for conversion?

Hi,

I need some clarification about the VixDisklib_Clone() function.

Is the function only intended to move a vmdk from a local host to a ESX?

Could I use that function also to simply create a copy of my vmdk on the ESX?

Thanks in advance.

Nico

0 Kudos
5 Replies
admin
Immortal
Immortal

You can use clone to copy from any format of VMDK to any other format. ESX ->local, Local->ESX or any other combination.

-Sudarsan

nicok
Contributor
Contributor

So ESX->ESX would be a combintion that works to?

Are there any special considerations when using clone() with a vmdk on the ESX as source?

0 Kudos
admin
Immortal
Immortal

While Clone can 'convert' ESX->ESX, there is no way in VDDK to connect an ESX to another ESX without involving the machine that is running the VDDK application. If this is what you need, you are better off using the VC's clone functionality as it would copy from ESX to ESX directly.

-Sudarsan

0 Kudos
nicok
Contributor
Contributor

I actually want to just create a copy of a virtual disk on the same ESX.

When I do that I get an error that it could not find the file. From the logs it seems it triws to open the vmdk locally on the machine where I run my application.

Any thoughts?

0 Kudos
rcardona2k
Immortal
Immortal

After going around in a circle with VMware, I cannot find a supported, remote API for cloning/coping VMDKs on VMFS or NFS datastores. I updated this message: confirming sudarsan is only offering experimental, unsupported APIs with a known file locking bug as an alternative to the supported VDDK APIs.

0 Kudos