sethmlarson / virtualbox-python

Complete implementation of VirtualBox's COM API with a Pythonic interface.
https://pypi.org/project/virtualbox
Apache License 2.0
354 stars 75 forks source link

Win10 create machine not work, and give me execptions #166

Closed x007007007 closed 1 year ago

x007007007 commented 1 year ago

https://stackoverflow.com/questions/75890104/virtualbox-api-ivirtualboxcreatemachine-causing-exceptions

ENVIRONMENT

Virtualbox SDK pywin32 306 vboxapi 1.0 virtualbox 2.1.1

SUMMARY
STEPS TO REPRODUCE
EXPECTED RESULTS
ACTUAL RESULTS
sethmlarson commented 1 year ago

I no longer have time to maintain this library, so am closing this issue.

guriWiz commented 7 months ago

The virtual box API version 7.0 doesn't work with python 3.11.0. It only supports 3.10 version so you should switch back to that version and try again.

0nelight commented 6 months ago

Unfortunately, the "createMachine" interface has changed from VirtualBox 6 to 7. This Repo was made for the Version vbox_version = "6.1.16" as written in virtualbox/library.py.

You can change library.py to the following to make it work again. (but I don't know what else is broken too):

machine = self._call(
    "createMachine", in_p=[settings_file, name, groups, os_type_id, flags, "", "", ""]
)

Check out https://download.virtualbox.org/virtualbox/ and then the SDK Documentation in the respective Version-Folders.

guriWiz commented 6 months ago

@0nelight I have been testing each method to see which one's are broken. I will take a look at createMachine method too.