<div dir="ltr"><div>No, I just tried it but  it didn't connect. </div><div>After it gets the username and password it shows the following error message:</div><div>error: internal error Expecting VI API major/minor version '2.5' or '4.x' but found '5.0'</div>

<br><div class="gmail_quote">On Tue, Oct 23, 2012 at 6:42 AM, Matthias Bolte <span dir="ltr"><<a href="mailto:matthias.bolte@googlemail.com" target="_blank">matthias.bolte@googlemail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

The documentation is outdated. libvirt also supports ESXi 5.0.<br>
<br>
What is the exact error you get?<br>
<br>
You already said that it reports being connected to ESXi 5.0. Why do<br>
you expect it to report 4.x?<br>
<br>
<br>
2012/10/23 Abbas <<a href="mailto:akhan@phi9.com">akhan@phi9.com</a>>:<br>
<div class="HOEnZb"><div class="h5">> Yes, that seems to be correct.<br>
><br>
>>> The libvirt VMware ESX driver can manage VMware ESX/ESXi 3.5/4.x and<br>
>>> VMware GSX 2.0, also called VMware Server 2.0, and possibly later versions.<br>
>>> Since 0.8.3 the driver can also connect to a VMware vCenter 2.5/4.x (VPX).<br>
><br>
><br>
><br>
><br>
> On 10/23/2012 07:40 AM, Ali Nikzad wrote:<br>
>><br>
>> Thank you Abbas,<br>
>> I already tried it but I got a message saying it found version 5.0 instead<br>
>> of 4.x. It seems that libvirt does not support ESXi 5.0.<br>
>> I used the command in libvirt-0.8.8 the windows version.<br>
>><br>
>> Ali<br>
>><br>
>><br>
>> On Mon, Oct 22, 2012 at 10:05 PM, Abbas <<a href="mailto:akhan@phi9.com">akhan@phi9.com</a>> wrote:<br>
>><br>
>>>   You could write a bash or batch script to do that.<br>
>>> Normal connect format is "virsh -c esx://yournode"<br>
>>><br>
>>> "virsh start [domain]" is what starts a VM. Refer to the man pages for<br>
>>> virsh command set.<br>
>>><br>
>>><br>
>>> /Abbas<br>
>>><br>
>>><br>
>>><br>
>>> On 10/23/2012 02:47 AM, Ali Nikzad wrote:<br>
>>><br>
>>> Hi,<br>
>>><br>
>>> I am a new libvirt user and I wonder if I can use this library to start<br>
>>> or<br>
>>> stop a VM in ESXi 5.0.<br>
>>> For example to write an application using libvirt in windows or linux<br>
>>> that<br>
>>> connects to an ESXi 5.0 server and get the list of VMs and start one of<br>
>>> them.<br>
>>><br>
>>> If so, is there any sample about it?<br>
>>><br>
>>> Thank you,<br>
>>> Ali<br>
>>><br>
>>><br>
>>><br>
>>><br>
>>> _______________________________________________<br>
>>> libvirt-users mailing<br>
>>> listlibvirt-users@redhat.comhttps://<a href="http://www.redhat.com/mailman/listinfo/libvirt-users" target="_blank">www.redhat.com/mailman/listinfo/libvirt-users</a><br>
>>><br>
>>><br>
>>><br>
>>><br>
>>> _______________________________________________<br>
>>> libvirt-users mailing list<br>
>>> <a href="mailto:libvirt-users@redhat.com">libvirt-users@redhat.com</a><br>
>>> <a href="https://www.redhat.com/mailman/listinfo/libvirt-users" target="_blank">https://www.redhat.com/mailman/listinfo/libvirt-users</a><br>
>>><br>
><br>
><br>
> _______________________________________________<br>
> libvirt-users mailing list<br>
> <a href="mailto:libvirt-users@redhat.com">libvirt-users@redhat.com</a><br>
> <a href="https://www.redhat.com/mailman/listinfo/libvirt-users" target="_blank">https://www.redhat.com/mailman/listinfo/libvirt-users</a><br>
<br>
<br>
<br>
</div></div><span class="HOEnZb"><font color="#888888">--<br>
Matthias Bolte<br>
<a href="http://photron.blogspot.com" target="_blank">http://photron.blogspot.com</a><br>
</font></span></blockquote></div><br></div>