<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: cloneVM_Task() over datastores and folders in vSphere Management SDK Discussions</title>
    <link>https://communities.vmware.com/t5/vSphere-Management-SDK/cloneVM-Task-over-datastores-and-folders/m-p/1060993#M5035</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can refer the  Folder Managed Object fromt the reference guide:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.vmware.com/support/developer/vc-sdk/visdk25pubs/ReferenceGuide/index.html"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basically, there is a root folder and it can have descendant folders.A data center's host folder and its descendant foldersA data center's vm folder and its descendant folders&lt;/P&gt;&lt;P&gt;Now, to get a managed object referernce to these folders, you can specify the inventory path to these and use FindByInventoryPath api to retrieve the mor to Folder Managed Entity.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The correct order of specifying the inventory path is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ManagedObjectReference folderRef = &lt;/P&gt;&lt;P&gt;cb.getConnection().getService().findByInventoryPath(content.getSearchIndex(), &lt;/P&gt;&lt;P&gt;pathToFolder);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"myfolder" is a folder - I am assuming myfolder is a folder underneath the root folder.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"myDC" is a data center&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"vm" is a folder holding the vm&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Inventory Path for pathToFolder could be: myfolder/myDC/vm&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 14 Aug 2008 05:24:47 GMT</pubDate>
    <dc:creator>admin</dc:creator>
    <dc:date>2008-08-14T05:24:47Z</dc:date>
    <item>
      <title>cloneVM_Task() over datastores and folders</title>
      <link>https://communities.vmware.com/t5/vSphere-Management-SDK/cloneVM-Task-over-datastores-and-folders/m-p/1060992#M5034</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Cloning always seems to cause problems for me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Some questions I would like to pose to the community. I will continue to work on them in an attempt to solve them , but any help would be appreciated since I lack experience in this area. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Scenario:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(ESX 3.5 VI-Java SDK)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(Let's say) I have two datastores. The datastores, when viewed  with the Datastore Browser have folders within them. These folders have VMs in them. (example. \[DS1\] folder/ folderWithVms/ vm.vmx)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now what I want to be able to do is when cloning a VM to be able to specify what folder, on which Datastore it is going to be on.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I seem not to be able to do this. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And so I noticed the VirtualMachineRelocateSpec. Looking at it's params though it does not seem to go any lower then the datastore in terms of location. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The cloneVM_Task itself takes a Folder. Currently I am passing in the vmFolder. Is this where I should be passing in a more specific folder to the location where the VM is to go. If so how do I get a MOR to the folder from a datastore path? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Of course I may be way off in what I am trying to do.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is a snippet of code, that is used for cloning by me, currently the destination is the same as the source.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;//baseRef previously set mor to machine to clone&lt;/P&gt;&lt;P&gt;			//vmFolder previously set mor to vmFolder of Datacenter&lt;/P&gt;&lt;P&gt;			//clone String name of clone&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;			VirtualMachineCloneSpec vmcs = new VirtualMachineCloneSpec();&lt;/P&gt;&lt;P&gt;			VirtualMachineRelocateSpec vmrs = new VirtualMachineRelocateSpec();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;			vmcs.setLocation(vmrs);&lt;/P&gt;&lt;P&gt;			vmcs.setPowerOn(false);&lt;/P&gt;&lt;P&gt;			vmcs.setTemplate(false);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;			ManagedObjectReference ref = connexion.cloneVM_Task(baseRef, vmFolder, clone, vmcs);&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help would be appreciated. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;M@&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: pomattic (changed to more descriptive thread name)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Aug 2008 15:53:17 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/vSphere-Management-SDK/cloneVM-Task-over-datastores-and-folders/m-p/1060992#M5034</guid>
      <dc:creator>pomattic</dc:creator>
      <dc:date>2008-08-13T15:53:17Z</dc:date>
    </item>
    <item>
      <title>Re: cloneVM_Task() over datastores and folders</title>
      <link>https://communities.vmware.com/t5/vSphere-Management-SDK/cloneVM-Task-over-datastores-and-folders/m-p/1060993#M5035</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can refer the  Folder Managed Object fromt the reference guide:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.vmware.com/support/developer/vc-sdk/visdk25pubs/ReferenceGuide/index.html"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basically, there is a root folder and it can have descendant folders.A data center's host folder and its descendant foldersA data center's vm folder and its descendant folders&lt;/P&gt;&lt;P&gt;Now, to get a managed object referernce to these folders, you can specify the inventory path to these and use FindByInventoryPath api to retrieve the mor to Folder Managed Entity.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The correct order of specifying the inventory path is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ManagedObjectReference folderRef = &lt;/P&gt;&lt;P&gt;cb.getConnection().getService().findByInventoryPath(content.getSearchIndex(), &lt;/P&gt;&lt;P&gt;pathToFolder);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"myfolder" is a folder - I am assuming myfolder is a folder underneath the root folder.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"myDC" is a data center&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"vm" is a folder holding the vm&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Inventory Path for pathToFolder could be: myfolder/myDC/vm&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Aug 2008 05:24:47 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/vSphere-Management-SDK/cloneVM-Task-over-datastores-and-folders/m-p/1060993#M5035</guid>
      <dc:creator>admin</dc:creator>
      <dc:date>2008-08-14T05:24:47Z</dc:date>
    </item>
    <item>
      <title>Re: cloneVM_Task() over datastores and folders</title>
      <link>https://communities.vmware.com/t5/vSphere-Management-SDK/cloneVM-Task-over-datastores-and-folders/m-p/1060994#M5036</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the response.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am still extremely lost and confused. : (&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My inventory (as in the Inventory-&amp;amp;gt;Datatstores view in the Virtual Infrastructure client) looks like such:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;| Datastores&lt;/P&gt;&lt;P&gt;|-&amp;amp;gt; folderName&lt;/P&gt;&lt;P&gt;|--&amp;amp;gt; datastore1&lt;/P&gt;&lt;P&gt;|--&amp;amp;gt; datastore2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now when I click on a datastore (all have same structure) I see a hierarchy like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;| /&lt;/P&gt;&lt;P&gt;|-&amp;amp;gt;myVirtualMachineFolder&lt;/P&gt;&lt;P&gt;|--&amp;amp;gt; baseMachines&lt;/P&gt;&lt;P&gt;|---&amp;amp;gt; machineBase&lt;/P&gt;&lt;P&gt;|--&amp;amp;gt; liveMachines&lt;/P&gt;&lt;P&gt;|---&amp;amp;gt; machineLive1&lt;/P&gt;&lt;P&gt;|---&amp;amp;gt; machineLive2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I look at the childEntities of rootFolder I only have "folderName" as a child.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I want to be able to do is clone say "\[datastore1\] myVirtualMachineFolder/baseMachines/machineBase" to "\[datastore2\] myVirtualMachineFolder/liveMachines/machineLive3"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So this is what I have:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;VirtualMachineCloneSpec vmcs = new VirtualMachineCloneSpec();&lt;/P&gt;&lt;P&gt;VirtualMachineRelocateSpec vmrs = new VirtualMachineRelocateSpec();&lt;/P&gt;&lt;P&gt;vmrs.setDatastore(dataStore); //mor to datastore&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vmcs.setLocation(vmrs);&lt;/P&gt;&lt;P&gt;vmcs.setPowerOn(false);&lt;/P&gt;&lt;P&gt;vmcs.setTemplate(false);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ManagedObjectReference ref = connexion.cloneVM_Task(baseRef, vmFolder, clone, vmcs);&lt;/P&gt;&lt;P&gt;// vmFolder is a ref to the rootFolder&lt;/P&gt;&lt;P&gt;// clone is a String for clone name&lt;/P&gt;&lt;P&gt;// baseRef is mor to base machine&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do I want the Folder to be something else? I am confused as to what this folder is used for. (Ref says "The location of the new virtual machine." but how deep is that?)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My use of the VirtualMachineRelocateSpec is wrong. I am not sure which values are needed...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a sketchy method of getting the HostSystem, but cannot seem to find any way to get a ResourcePool (well I can get this info for a VM that already exists (what Pool it belongs to), but I do not want to relly on that)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I really need to get working is to clone from a datastore to another datastore, the folder thing can be left on the back burner till that works. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any further help in these areas would be greatly appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;M@&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: pomattic (added: "(well I can get this info for a VM that already exists (what Pool it belongs to), but I do not want to relly on that)")&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Aug 2008 14:53:31 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/vSphere-Management-SDK/cloneVM-Task-over-datastores-and-folders/m-p/1060994#M5036</guid>
      <dc:creator>pomattic</dc:creator>
      <dc:date>2008-08-14T14:53:31Z</dc:date>
    </item>
    <item>
      <title>Re: cloneVM_Task() over datastores and folders</title>
      <link>https://communities.vmware.com/t5/vSphere-Management-SDK/cloneVM-Task-over-datastores-and-folders/m-p/1060995#M5037</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alright so one step further.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can clone from a datastore to another one now. Using this: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;VirtualMachineCloneSpec vmcs = new VirtualMachineCloneSpec();&lt;/P&gt;&lt;P&gt;			VirtualMachineRelocateSpec vmrs = new VirtualMachineRelocateSpec();&lt;/P&gt;&lt;P&gt;			vmrs.setDatastore(dataStore); // mor ref to datastore&lt;/P&gt;&lt;P&gt;			vmrs.setHost(findHostByName(serverName)); // findInventoryPath is used&lt;/P&gt;&lt;P&gt;			vmrs.setPool(getResourcePool(serverName));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;			vmcs.setLocation(vmrs);&lt;/P&gt;&lt;P&gt;			vmcs.setPowerOn(false);&lt;/P&gt;&lt;P&gt;			vmcs.setTemplate(false);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;			ManagedObjectReference ref = connexion.cloneVM_Task(baseRef, vmFolder, clone, vmcs);&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; getResourcePool(serverName) is a method written with help from the solution found at: &lt;A href="http://communities.vmware.com/thread/100144" target="test_blank"&gt;http://communities.vmware.com/thread/100144&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So now if I can figure out this folder thing we will be good! : )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;M@ &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Aug 2008 18:03:36 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/vSphere-Management-SDK/cloneVM-Task-over-datastores-and-folders/m-p/1060995#M5037</guid>
      <dc:creator>pomattic</dc:creator>
      <dc:date>2008-08-14T18:03:36Z</dc:date>
    </item>
    <item>
      <title>Re: cloneVM_Task() over datastores and folders</title>
      <link>https://communities.vmware.com/t5/vSphere-Management-SDK/cloneVM-Task-over-datastores-and-folders/m-p/1060996#M5038</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The functionality you are looking for is currently not available through VI SDK. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The location parameter is restricted to the manged object reference of a folder. These folders are created at the top level of the hierarchy and maybe nested or they may be created under a datacenter. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The folders you are referring to are under a datastore to which you cannot get a managed object reference through vi sdk. You will note the same functionality using VI Client, if you try cloning a virtual machine. The location to choose from the inventory will comprise of  choosing a datacenter, any folder under a datacenter, a datastore when selecting storage, selecting a resource pool.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thus when you are using these methods, to the move the files from "[ds1] to "[ds2] , where ds1 and ds2 are datastores, as you have already noted.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using the "CloneVM_Task" API, you would be creating the clone of the machine "vm1", but the files for this new VM would be created in the folder with the name provided for the new vm that would be ready after the cloning. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Aug 2008 07:10:07 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/vSphere-Management-SDK/cloneVM-Task-over-datastores-and-folders/m-p/1060996#M5038</guid>
      <dc:creator>admin</dc:creator>
      <dc:date>2008-08-22T07:10:07Z</dc:date>
    </item>
    <item>
      <title>Re: cloneVM_Task() over datastores and folders</title>
      <link>https://communities.vmware.com/t5/vSphere-Management-SDK/cloneVM-Task-over-datastores-and-folders/m-p/1060997#M5039</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Well that puts closure on that matter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am thinking that maybe the move  moveDatastoreFile_Task() maybe could be used after the cloning to do what I want... but that is very case specific and so won't burden you guys anymore with that. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot for the continued support!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;M@ &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Aug 2008 11:51:46 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/vSphere-Management-SDK/cloneVM-Task-over-datastores-and-folders/m-p/1060997#M5039</guid>
      <dc:creator>pomattic</dc:creator>
      <dc:date>2008-08-22T11:51:46Z</dc:date>
    </item>
    <item>
      <title>Re: cloneVM_Task() over datastores and folders</title>
      <link>https://communities.vmware.com/t5/vSphere-Management-SDK/cloneVM-Task-over-datastores-and-folders/m-p/1060998#M5040</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hello.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want occasionally to hear it. &lt;/P&gt;&lt;P&gt;Where can "moveDatastoreFile_Task()" be acquired?&lt;/P&gt;&lt;P&gt;For instance, "cloneVM_Task()" can be acquired from "S1.getService().cloneVM_Tas". &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As for "sourceDatacenter" and "destinationDatacenter", can the same value be done?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the support!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Aug 2008 04:10:13 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/vSphere-Management-SDK/cloneVM-Task-over-datastores-and-folders/m-p/1060998#M5040</guid>
      <dc:creator>sasama1997</dc:creator>
      <dc:date>2008-08-29T04:10:13Z</dc:date>
    </item>
    <item>
      <title>Re: cloneVM_Task() over datastores and folders</title>
      <link>https://communities.vmware.com/t5/vSphere-Management-SDK/cloneVM-Task-over-datastores-and-folders/m-p/1060999#M5041</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If destination data centre is not specified source is assumed. Meaning that they &lt;U&gt;can&lt;/U&gt; both be the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As for the moveDatastoreFile_Task(), you will find it much the same as cloneVM_Task()&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(I use the same variable:VimPortType to call both methods)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See this for help: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.vmware.com/support/developer/vc-sdk/visdk25pubs/ReferenceGuide/index.html" target="test_blank"&gt;http://www.vmware.com/support/developer/vc-sdk/visdk25pubs/ReferenceGuide/index.html&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Aug 2008 12:48:05 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/vSphere-Management-SDK/cloneVM-Task-over-datastores-and-folders/m-p/1060999#M5041</guid>
      <dc:creator>pomattic</dc:creator>
      <dc:date>2008-08-29T12:48:05Z</dc:date>
    </item>
  </channel>
</rss>

