I'm new to VirtualBox API and I'm trying to launch a virtual machine remotely via VBoxWebSrv.exe, which is running locally (for testing).
I've done this so far:
Code: Select all
from vboxapi import *
params = {'ur*' : 'ht*p://localhost/', # I'm not allowed to post links in this thread (it is my first)
'user' : 'user',
'password' : 'password'
}
webmgr = VirtualBoxManager('WEBSERVICE', params)
vbox = webmgr.getVirtualBox()
machines = vbox.getMachines()
for mach in machines:
session = webmgr.getSessionObject(vbox)
# What method to call now?
Code: Select all
progress = vbox.openRemoteSession(session, mach.id, 'WRITE', {})
Code: Select all
ZSI\client.py", line 503, in Receive
File "build\bdist.win32\egg\ZSI\client.py", line 431, in Receive
ZSI.FaultException: Method 'ns1:IVirtualBox_openRemoteSession' not implemented: method name or namespace not recognized
None
Thanks