Vmware has an api the vmware server, vmware workstation and esx all (mostly)
share.
--
march
-Original Message-
From: Stefan de Konink [EMAIL PROTECTED]
Date: Fri, 15 Aug 2008 00:33:20
To: Yushu Yao[EMAIL PROTECTED]
Cc: libvir-list@redhat.com
Subject: Re: [libvirt] VMWare support,
This might not be the 'right way' but here is how I handled
communication to each Xen instance my web interface is managing. I used
the ssh style connect string.. even if it was a local instance.. here is
a line ripped right from my code:
server_list={michael:['127.0.0.1',],
Michael March schreef:
.. in this setup you MUST have the ssh public key of the user the web
server runs as in the 'root' account of each server it manages..
again, this might not be 100% kosher.. but it works.
The main problem I encounter is the hostname voodoo...but that check
can
On Wed, Jul 09, 2008 at 06:57:11AM -0700, Michael March wrote:
This might not be the 'right way' but here is how I handled
communication to each Xen instance my web interface is managing. I used
the ssh style connect string.. even if it was a local instance.. here is
a line ripped right
Stefan de Konink wrote:
Michael March schreef:
Michael March schreef:
.. in this setup you MUST have the ssh public key of the user the
web server runs as in the 'root' account of each server it
manages.. again, this might not be 100% kosher.. but it works.
The main problem I encounter
When I do this:
conn.lookupByName('myDomU').destroy()
... I get this:
Traceback (most recent call last):
File test.py, line 30, in ?
print conn.lookupByName('myDomU').destroy()
File /usr/lib64/python2.4/site-packages/libvirt.py, line 238, in destroy
if ret == -1: raise libvirtError
When I do this:
conn.lookupByName('myDomU').destroy()
... I get this:
Traceback (most recent call last):
File test.py, line 30, in ?
print conn.lookupByName('myDomU').destroy()
File /usr/lib64/python2.4/site-packages/libvirt.py, line 238, in destroy
if ret == -1: raise
On Sat, Jul 05, 2008 at 04:31:05PM -0700, Michael March wrote:
I'm trying to figure out how to start a domain .. and I can't figure out
what method to use..
When I do this:
dir(conn.lookupByName('my-vm-1'))
I get these options:
['ID', 'OSType', 'UUID', 'UUIDString
I'm trying to figure out how to start a domain .. and I can't figure out
what method to use..
When I do this:
dir(conn.lookupByName('my-vm-1'))
I get these options:
['ID', 'OSType', 'UUID', 'UUIDString', 'XMLDesc', '__del__', '__doc__',
'__init__', '__module__', '_conn', '_o',