问题
I have problem with cloning a virtual machine using VMware VIX api in C#. I am using following code to do so and getting following error.
Code:
VMWareVirtualHost virtualhost = new VMWareVirtualHost();
virtualhost.ConnectToVMWareVIServer("ip", "username", "password");
VMWareVirtualMachine vm = virtualhost.Open("Machine path");
Console.WriteLine("vm is open");
vm.Clone(VMWareVirtualMachineCloneType.Full, "CLone path");
I am getting this error:
operation is not supported.
来源:https://stackoverflow.com/questions/26232652/vmware-vsphere-vix-clone-function