Hi,
This is Arpita.
I am using Libvirt API in the Windows Vista system.VMware is installed over there.I have installed Libvirt and Python 2.6 in the Windows Vista system andhave written a small test file in Python.
Here is the code:
import libvirt
import
sysconn = libvirt.openReadOnly(
None)if
conn == None: print 'Failed to open connection to the hypervisor'sys.exit(
1)try
:dom0 = conn.lookupByName(
"vmware1")except
: print 'Failed to find the main domain'sys.exit(
1)When I am trying to execute this python code I received error message that :
ImportError: No module named libvirt
Please help me.
Regards,
Arpita