<div dir="ltr">I used libvirt-0.8.8. <div>I think it is the last version on the website.<br><br><div class="gmail_quote">On Tue, Oct 23, 2012 at 9:44 AM, Abbas <span dir="ltr"><<a href="mailto:akhan@phi9.com" target="_blank">akhan@phi9.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Is your libvirt up-to-date?<div class="HOEnZb"><div class="h5"><br>
<br>
<br>
On 10/23/2012 06:39 PM, Ali Nikzad wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
No, I just tried it but  it didn't connect.<br>
After it gets the username and password it shows the following error<br>
message:<br>
error: internal error Expecting VI API major/minor version '2.5' or '4.x'<br>
but found '5.0'<br>
<br>
On Tue, Oct 23, 2012 at 6:42 AM, Matthias Bolte <<br>
<a href="mailto:matthias.bolte@googlemail.com" target="_blank">matthias.bolte@googlemail.com</a>> wrote:<br>
<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" target="_blank">akhan@phi9.com</a>>:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Yes, that seems to be correct.<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
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<br>
</blockquote></blockquote></blockquote>
versions.<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


Since 0.8.3 the driver can also connect to a VMware vCenter 2.5/4.x<br>
</blockquote></blockquote></blockquote>
(VPX).<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
<br>
<br>
On 10/23/2012 07:40 AM, Ali Nikzad wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Thank you Abbas,<br>
I already tried it but I got a message saying it found version 5.0<br>
</blockquote></blockquote>
instead<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
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" target="_blank">akhan@phi9.com</a>> wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
   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>
______________________________<u></u>_________________<br>
libvirt-users mailing<br>
listlibvirt-users@redhat.<u></u>comhttps://<br>
</blockquote></blockquote></blockquote>
<a href="http://www.redhat.com/mailman/listinfo/libvirt-users" target="_blank">www.redhat.com/mailman/<u></u>listinfo/libvirt-users</a><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


<br>
<br>
<br>
______________________________<u></u>_________________<br>
libvirt-users mailing list<br>
<a href="mailto:libvirt-users@redhat.com" target="_blank">libvirt-users@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/libvirt-users" target="_blank">https://www.redhat.com/<u></u>mailman/listinfo/libvirt-users</a><br>
<br>
</blockquote></blockquote>
<br>
______________________________<u></u>_________________<br>
libvirt-users mailing list<br>
<a href="mailto:libvirt-users@redhat.com" target="_blank">libvirt-users@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/libvirt-users" target="_blank">https://www.redhat.com/<u></u>mailman/listinfo/libvirt-users</a><br>
</blockquote>
<br>
<br>
--<br>
Matthias Bolte<br>
<a href="http://photron.blogspot.com" target="_blank">http://photron.blogspot.com</a><br>
<br>
</blockquote></blockquote>
<br>
<br>
</div></div></blockquote></div><br></div></div>