[vbox-dev] python: Cannot create HDD

Alexey Eromenko al4321 at gmail.com
Sat Mar 12 19:26:42 PST 2011


It seems one vbox constant fails: (MediumVariant_Standard)

from vboxapi import VirtualBoxManager
globalmgr = VirtualBoxManager(None, None)
...
progress = medium.createBaseStorage(1024*1024*1024,
globalmgr.constants.MediumVariant_Standard)

results in:
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "D:\DOCUME~1\User\LOCALS~1\Temp\gen_py\2.5\46137EEC-703B-4FE5-AFD4-7C9BBB
BA0259x0x1x3\IMedium.py", line 53, in CreateBaseStorage
    , aVariant)
TypeError: The VARIANT type is unknown (0x00000014)

I tried to use official program "vboxshell.py", and same result:
vbox> createHdd 1000 C:/123tst.vdi
The VARIANT type is unknown (0x00000014)

any ideas?
-- 
-Alexey Eromenko "Technologov"




More information about the vbox-dev mailing list