I am trying to control my virtual machines by C#. Using ESX 5.5 and windows 7 I found these 2 wrappers:
With both DLL
s I can connect to the ESX server and power on my machine.
But after power on, the code gets stuck and I can't continue.
There is any other solution to control ESX machine ?
When I try to control a VM workstation I don't have any issues, so my real problem is with ESX server. Huge thanks for helpers.
Edit
using (VMWareVirtualHost virtualHost = new VMWareVirtualHost())
{
virtualHost.ConnectToVMWareVIServer("1.1.1.1", "root", "password");
using (VMWareVirtualMachine virtualMachine = virtualHost.Open(@"[Compellent_External_] yosia_win7_1/yosia.vmx"))
{
virtualMachine.PowerOn();
virtualMachine.WaitForToolsInGuest();
virtualMachine.LoginInGuest("user", "password");
}