-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Question: Is vbox-api suitable for simple tasks like checking VirtualBox version? #11
Comments
Hi @songyuc, As briefly mentioned in #10,
This allows
All VirtualBox processes, whether the GUI or a virtual machine, communicate to
To answer your original question, in order to use any method of the SOAP interface, you must authenticate first.
The latter will allow any username/password to be passed to If this is not appropriate and authentication is too cumbersome, then you'll need to use local tools, such as those provided by VirtualBox, e.g. Hope this helps, |
To actually answer your original questions haha:
Regarding documentation, feel free to raise a PR adding this information to the Please let me know if you have any other questions. Many thanks, |
Hi, I’d like to ask if you could provide a simple code example demonstrating how to use "vbox-api" to check the VirtualBox version. This would help me better understand how the project works and how to use it. Thank you so much for your time and effort in maintaining this project! Best regards, |
Hi Eric, No worries! Assuming from vbox_api import SOAPInterface, VBoxAPI
interface = SOAPInterface(host="localhost", port=18083) # create SOAP client
interface.connect() # connect and bind methods to interface instance
api = VBoxAPI(interface) # create VirtualBox interface using SOAP client
api.login(username, password) # get session handle - https://www.virtualbox.org/sdkref/interface_i_websession_manager.html
api.get_version() # session handle is passed implicitly
api.get_api_version() You can see this in action in the CLI and web interface: Every object in the VirtualBox API is referenced by a handle. After logging in with Hope this helps, |
Hi @Zedeldi,
I'm a student learning about VirtualBox. I noticed that to check the VirtualBox version using vbox-api, we need to:
While the project seems powerful for complex VM management tasks (as shown in README.md examples from line 194 to line 254), I wonder if it's overkill for simple operations like version checking.
For comparison, we can simply use:
I might feel that vbox-api is not suitable for my current focal task of checking the VirtualBox version.
To make sure of it, my questions are:
VBoxManage
for basic operations?I'm asking this to better understand the project's intended use cases and to help other beginners like me choose the right tool for their needs.
Thank you for creating this interesting project!
The text was updated successfully, but these errors were encountered: