How to create virtual machine programatically?

Mar 16, 2010 at 10:29 AM
Edited Mar 16, 2010 at 12:34 PM

Hey i want to create virtual machine in vmware server environment programatically . Does anybody have sample code in c#  for creating virtual machine . I am referencing vestris.vmware.dll and interop.vixcom.dll and can't seem to find createvirtualmachine method which exists for microsoft virtualised environment. Also i want to access console of vmware server in my application. How can i do that.

Coordinator
Mar 16, 2010 at 6:07 PM

Hi!

As of now, I don't think there is a way to create a VM programatically via the VIX API. You can, however, register an existing .vmx file by using the RegisterVM() method.