[vbox-dev] Unable to create a machine via the python bindings

Nikolay Igotti Nikolay.Igotti at Sun.COM
Wed Feb 18 13:06:32 GMT 2009


   Hi Josh,

 Thanks for your report - what happened is that you hit some form of 
subtlety in VirtualBox interfaces.
Unfortunately, you cannot use '' as 'null' UUID, as described in 
createMachine() documentation.
Instead the right code should be

vm = vbox.createMachine('WinXP2', 'WindowsXP', '', '00000000-0000-0000-0000-000000000000')


I will update VBox shell with proper createMachine() example.

 Thanks,
   Nikolay.

Josh Wright wrote:
> Here's the traceback:
>
> Traceback (most recent call last):
>   File "./VBoxExporter.py", line 164, in <module>
>     main()
>   File "./VBoxExporter.py", line 154, in main
>     import_vm(vbox, vm_name, vm_settings)
>   File "./VBoxExporter.py", line 113, in import_vm
>     vm = vbox.createMachine('WinXP2', 'WindowsXP', '', '')
>   File "<XPCOMObject method 'createMachine'>", line 3, in createMachine
> xpcom.Exception: 0x80070057 (Error 87 in module 8130)
>
> Context code is certainly available if it would be helpful, but it's
> really just that line that's failing.
>
> Obviously the vm name and osTypeId aren't usually hard-coded like
> that, I just wanted to make sure nothing weird was happening with the
> variables.
>
> I know the vbox object is valid, since I poll some information from it
> just before this failure (looking for duplicate VM names)
>
> ~JW
>
> _______________________________________________
> vbox-dev mailing list
> vbox-dev at virtualbox.org
> http://vbox.innotek.de/mailman/listinfo/vbox-dev
>   





More information about the vbox-dev mailing list