[libvirt-users] Libvirt api for esx

Martin Kletzander mkletzan at redhat.com
Thu Nov 29 09:04:55 UTC 2018


On Wed, Nov 28, 2018 at 10:24:55PM +0530, ROHIT SINGH wrote:
>Hi Martin,
>
>Could you please point me to any example codes in python present for esx?
>Suppose, I have to power off and power on esx virtual machine, can i get
>this code somewhere on python to develop some understanding.
>

https://www.mail-archive.com/libvir-list@redhat.com/msg17903.html

>Actually, I am not able to find sample code related to esx in python,
>please point me if any such link available.
>

https://github.com/libvirt/libvirt-python/blob/master/examples/esxlist.py

and all other examples:

https://github.com/libvirt/libvirt-python/tree/master/examples

The point of libvirt is that the code doesn't have to be (way) different
depending on the hypervisor.

>Appreciate your help !!
>
>Thanks.
>
>Regards
>Rohit Singh
>
>On Wed, 28 Nov 2018 at 9:54 PM, ROHIT SINGH <rohit.singh0908 at gmail.com>
>wrote:
>
>> Thanks, I'll check it out.
>>
>> On Wed, 28 Nov 2018 at 9:31 PM, Martin Kletzander <mkletzan at redhat.com>
>> wrote:
>>
>>> On Mon, Nov 26, 2018 at 04:11:20PM +0530, ROHIT SINGH wrote:
>>> >Hi,
>>> >
>>> >I am doing poc for using libvirt api for implementation of esx in python.
>>> >
>>> >I tried researching through module but did not find a way how it works
>>> for
>>> >esx.
>>> >Any help on how to proceed specifically for esx would be of great help.
>>> >
>>>
>>> See https://libvirt.org/drvesx.html for ESX-related stuff.  But mainly
>>> it is the
>>> URI you need to use.  Then look at https://libvirt.org/hvsupport.html
>>> where you
>>> can see what APIs are available for that HV driver.
>>>
>>> >Please let me know as soon as possible, lagging on deliverables.
>>> >
>>> >Thanks for help!!
>>> >
>>> >Regards
>>> >Rohit Singh
>>>
>>> >_______________________________________________
>>> >libvirt-users mailing list
>>> >libvirt-users at redhat.com
>>> >https://www.redhat.com/mailman/listinfo/libvirt-users
>>>
>>>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: Digital signature
URL: <http://listman.redhat.com/archives/libvirt-users/attachments/20181129/5fae1b15/attachment.sig>


More information about the libvirt-users mailing list