Can't create HDD through python + OOWS
Posted: 7. May 2012, 12:16
Hey!
I have got python (2.7.1) + VirtualBox XPCOM (4.1.12) to work on my host (Ubuntu 10.04 Server), now I wanted to add another host and control it over OOWS (web service) and python. I'm using vboxshell.py that comes with the SDK and follow the instructions in the SDK "Programmimng Guid and Reference". I got so far that I can create the virtual machine on the other host but when I run:
I get
%d format: a number is required, not str
I tried to create new python files by running:
I get this:
What should I do to create HDD with python over OOWS?
/Nicklas
I have got python (2.7.1) + VirtualBox XPCOM (4.1.12) to work on my host (Ubuntu 10.04 Server), now I wanted to add another host and control it over OOWS (web service) and python. I'm using vboxshell.py that comes with the SDK and follow the instructions in the SDK "Programmimng Guid and Reference". I got so far that I can create the virtual machine on the other host but when I run:
Code: Select all
createHdd 125829120000 /home/user/VMs/machine/machine.vdi %d format: a number is required, not str
I tried to create new python files by running:
Code: Select all
wsdl2py vboxweb.wsdl Traceback (most recent call last):
File "/usr/bin/wsdl2py", line 9, in <module>
wsdl2py()
File "/usr/lib/pymodules/python2.7/ZSI/generate/commands.py", line 148, in wsdl2py
files.append(_wsdl2dispatch(options, wsdl))
File "/usr/lib/pymodules/python2.7/ZSI/generate/commands.py", line 263, in _wsdl2dispatch
ss.fromWSDL(wsdl)
File "/usr/lib/pymodules/python2.7/ZSI/generate/wsdl2dispatch.py", line 281, in fromWSDL
raise WsdlGeneratorError, 'No service defined'
ZSI.generate.WsdlGeneratorError: No service defined
What should I do to create HDD with python over OOWS?
/Nicklas