VMware {code} Community
bmani27
Enthusiast
Enthusiast

Regarding creation of a child disk?

Hello folks,

Is there any way that i can create a child/redo disk for a VM using VI SDK (without creating a snapshot)? If not VI SDK, is there any other way to do this? Could anyone help me out?

Thanks in Advance,

-Mani

0 Kudos
4 Replies
Steve_Jin
Expert
Expert

It's an interesting requirement. Can you elaborate a little more what you want to do with the child disk? A little more context of the problem can help us to better understand your problem.

Steve JIN, VMware Engineering

Creator of VMware Infrastructure Java API: http://vijava.sf.net

VI Java API 2.0 --- 15 times faster than AXIS in loading, 4+ faster in deserialization; only 1/4 of the size required by AXIS. More importantly freedom to redistribute your applications.

Download, Samples, DocWiki, RSS Feed

Steve JIN Author of VMware VI and vSphere SDK; Creator of open source VI Java API (http://vijava.sf.net); Blogger at http://www.doublecloud.org
0 Kudos
admin
Immortal
Immortal

You cannot create child disk/redo logs using VI SDK however you can do this using the Virtual Disk API, or VixDiskLib, which is a set of function calls to manipulate virtual disk files in VMDK format(virtual machine disk).

Please check the "Create Child from Parent Disk" section of Virtual Disk API Programming Guide available at for more details.

bmani27
Enthusiast
Enthusiast

Thanks for ur response guys.

I will look into this VDDK stuff.

-Mani

0 Kudos
TimNixonNJ
Contributor
Contributor

Is the correct procedure to

perform a reconfigVM removing the current (persistent) disk and add it back as an independent-nonpersistent one as the child of the original?

That seems to be the case (it works) and seems to be what's explained in the "Linked Virtual Machines" doc in the last section "Perform Advanced manipulation...". Also, I can do it via perl using that procedure rather that the simple add_redo() . '

0 Kudos