pyVBox | Python API on top of VirtualBox Python SDK API
kandi X-RAY | pyVBox Summary
kandi X-RAY | pyVBox Summary
This is pyVBOX, a shim layer above the VirtualBox Python API. Why? Becuase the VirtualBox Python API is somewhat complex and I got tried of trying to remember all the details of its use. Plus it changes from release to release and this gives me an abstraction layer to hide those changes. The software also includes a script, utils/pyVbox.py, that provides the ability to manipulate VMs (like VBoxMange). This code is written to the 4.1 version of VirtualBox (4.1.12 specifically). I have not tried it against any other version. This software is independently created from VirtualBox and Oracle. No endorsement by Oracle or the VirtualBox authors is implied. Use at your own risk. No support guarenteed, but I'm happy to receive bug reports or suggestions (open an issue please). This code is released under the Apache License, Version 2.0. I ask you send me email (von@vwelch.com) if you add any enhancements or just find it useful (open an issue to report a bug please). Kudos to Nikolay Igotti and the vboxshell.py example that comes with the Virtualbox SDK. The home page for this code is
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Find a medium by path
- Check if s is a valid UUID
- Return the canonical path to the medium
- Returns the VirtualBox object
- Gets the vbox
- List of VirtualMachine objects
- Gets the array associated with the given array
- Return an instance from the given type
- Return a class corresponding to the given device type
- Create a session
- Create a session object
- Open a medium file
- Open a medium
- List of guestOSTypes
pyVBox Key Features
pyVBox Examples and Code Snippets
Community Discussions
Trending Discussions on pyVBox
QUESTION
I have VMs created as normal user. I can access them via the GUI and via python bindings (pyvbox). I have a python script that I need to run as root to access other ressources. I cannot access any VMs via the GUI nor python bindings as root. How can I access them from my script ?
Should I drop privileges from my script ran as root whenever I need to access vbox ? and then go back to root user when i need to access other resources ? How would you do this and is it a good idea ?
...ANSWER
Answered 2020-Apr-29 at 14:45I found a solution that requires the name of the user for which you want to monitor VMs:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install pyVBox
The directory containing the pyVBox module directory. I.e. the directory in which you found this README.
The bindings/xpcom/python/ directory in the VirtualBox SDK distribution.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page