[vbox-dev] Context Manager for VM Locking in Python API Bindings

2010-09-02 Thread Josh Wright
The new locking/unlocking stuff in 3.3 (4.0?) is nice, and certainly a lot more intuitive than the previous openSession stuff. However, I find obtaining and managing a lock is still pretty verbose, and it's the perfect use case for a context manager (in Python 2.5+). The context manager I use can b

[vbox-dev] Webservice Python API issue

2010-05-06 Thread Josh Wright
I'm attempting to change the type of a hard disk from Normal to Immutable via the webservice API (using the Python bindings from the SDK). hard_disk.type = mgr.constants.HardDiskType_Immutable Which fails with the following error: File "/home/josh/vboxapi/VirtualBox_wrappers.py", line 4656, in

Re: [vbox-dev] Custom front-end using non-OSE SDK

2009-10-26 Thread Josh Wright
OpenRemoteSession(... "vrdp"...) opens a console for you? You might want to look at the VBoxWeb code, since it also starts headless/vrdp sessions. http://code.google.com/p/vboxweb/source/browse/trunk/VBoxWebSrv.py#398 ~JW On Mon, Oct 26, 2009 at 9:18 AM, Brad Robinson wrote: > Thanks Frank, >

Re: [vbox-dev] vbox-3.0.6 'about' defect

2009-09-10 Thread Josh Wright
Clicking anywhere in the window doesn't close it? ~JW On Thu, Sep 10, 2009 at 9:36 AM, Neal Becker wrote: > Just updated to 3.0.6 on fedora f11.  On kde-4.3.1, click on 'about > virtualbox' opens a window that has no way to close it. > > > ___ > vbox-d

Re: [vbox-dev] Add resolution for guest OS frame buffer driver

2009-09-06 Thread Josh Wright
Have you looked at the addcustommode option for the VBoxControl executable in the guest additions? I've only ever had a need to do this with a Windows guest, so I don't know if all the GA platforms have VBoxControl. ~JW Sent from my iPod On Sep 6, 2009, at 12:29 PM, "Kung Chun" wrote:

Re: [vbox-dev] IHardDrive

2009-08-16 Thread Josh Wright
The VMM won't know anything useful about that. IHardDisk::size (which it inherits from IMedium) will give you the size of the the VDI on the disk, so if you're using an expanding VDI, that will give you some clue. However, unless you've just compacted the VDI, there will be space reflected that is

Re: [vbox-dev] Audio mixer on host for multiple virtual machines

2009-06-21 Thread Josh Wright
VirtualBox supports Pulseaudio, which should give you pretty much all the control you would need in that regard (assuming a host OS with Pulse support) ~JW On Sun, Jun 21, 2009 at 10:08 AM, wrote: > > Hello, > > can someone reading this please give me a hint whom I can address this > request? >

Re: [vbox-dev] How to start a headless VM with IVirtualBox::openRemoteSession and OSE

2009-05-29 Thread Josh Wright
The attached patch is against the current svn head (20158), but has not been tested since the svn version won't build right now. I have tested an identical patch against the 2.2.2 tarball without an issue. The attach patch is released under the MIT license. This seemed a little "too easy". I hope

Re: [vbox-dev] How to get the current running IMachine instance inside a host service?

2009-05-08 Thread Josh Wright
e VirtualBox.exe launching the vm. I just need to find out the current vm this shared dll is being used. I couldn't find any method to do this simple thing: where am I? --- On Fri, 5/8/09, Josh Wright wrote: From: Josh Wright Subject: Re: [vbox-dev] How to get the current running IMachi

Re: [vbox-dev] How to get the current running IMachine instance inside a host service?

2009-05-08 Thread Josh Wright
What do you mean by "the" running VMs? IVirtualBox::machines[] will give you a list of all the existing VMs, you can then look at IMachine::state to see if they're running or not. ~JW On Fri, May 8, 2009 at 12:38 PM, Huihong Luo wrote: > some clarification: Host service, I mean something like t

Re: [vbox-dev] VBoxWeb

2009-04-22 Thread Josh Wright
site-packages/ ~JW On Tue, Apr 21, 2009 at 2:43 PM, Alexey Eremenko wrote: > On Tue, Apr 14, 2009 at 1:38 PM, Josh Wright wrote: >> http://github.com/JshWright/vboxweb/tree/master >> >> In in interest of trying to start a community project that utilizes >> the VB

Re: [vbox-dev] VBoxWeb

2009-04-14 Thread Josh Wright
you're getting this twice... hit the wrong reply button...) On Tue, Apr 14, 2009 at 11:30 AM, Alexey Eremenko wrote: > On Tue, Apr 14, 2009 at 3:38 PM, Josh Wright wrote: >> http://github.com/JshWright/vboxweb/tree/master >> >> In in interest of trying to start a commun

[vbox-dev] VBoxWeb

2009-04-14 Thread Josh Wright
http://github.com/JshWright/vboxweb/tree/master In in interest of trying to start a community project that utilizes the VBox SDK, I've started VBoxWeb, a web frontend for VirtualBox on Solaris/Linux/Mac (only tested on Linux thus far) hosts using cherrypy. Over the past week (with a lot of help fr

[vbox-dev] How to start a headless VM with IVirtualBox::openRemoteSession and OSE

2009-04-09 Thread Josh Wright
Per the documentation of IVirtualBox::openRemoteSession, the currently supported session types are gui and vrdp. With the OSE version, gui works, but vrdp errors out. I assume this is because OSE lacks vrdp support. How should I start a headless VM session via the API with the OSE version of VBox

Re: [vbox-dev] For Code

2009-03-18 Thread Josh Wright
The VirtualBox site has fairly detailed build instructions for all supported platforms. http://www.virtualbox.org/wiki/Build_instructions ~JW 2009/3/18 Cornell Cornell : > Hi member: >     I am very exciting to find virtualbox, and I had download the code > source already. > But I  have some tro

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

2009-02-17 Thread Josh Wright
Here's the traceback: Traceback (most recent call last): File "./VBoxExporter.py", line 164, in 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'

Re: [vbox-dev] svn 15197 not complie

2008-12-10 Thread Josh Wright
Due to some work to add ICMP support to NAT on linux hosts, the libcap developments headers are currently a build dependency. apt-get install libcap2-dev ~JW On Wed, Dec 10, 2008 at 5:17 AM, Antonio Doldo <[EMAIL PROTECTED]>wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > yesterday

[vbox-dev] Patch to add NOQT build option to debian/rules

2008-11-24 Thread Josh Wright
I don't use the Qt GUI, and the existing rules script needs a few tweaks before it'll build with --disable-qt The attached patch adds a NOQT environment override. The attached patch is released under the MIT license, do with it as you will. http://www.opensource.org/licenses/mit-license.php ~JW

Re: [vbox-dev] Patch to add more evdev keycodes to VBoxSDL

2008-11-24 Thread Josh Wright
Sorry, forgot to include that the attached patch is released under the MIT license. Do with it as you see fit. http://www.opensource.org/licenses/mit-license.php ~JW On Mon, Nov 24, 2008 at 1:12 PM, Josh Wright <[EMAIL PROTECTED]> wrote: > I contributed the original evdev keyboar

[vbox-dev] Patch to add more evdev keycodes to VBoxSDL

2008-11-24 Thread Josh Wright
I contributed the original evdev keyboard support patch to VBoxSDL a while ago, and just noticed that more keycodes have been added in src/VBox/Frontends/VirtualBox4/src/X11/keyboard-types.h This patch just adds those keycodes to VBoxSDL.cpp. See attached ~JW Index: src/VBox/Frontends/VBoxSDL/VB

Re: [vbox-dev] Announce: VirtualBox 2.0.6 released!

2008-11-23 Thread Josh Wright
On Sun, Nov 23, 2008 at 4:37 PM, Huihong Luo <[EMAIL PROTECTED]> wrote: > > > For example, I wanted to compile 2.0.6 from vbox OSE, which revision number > to use to get the snapshot? Is it revision 14483? > > Thanks, > > Use the tarball provided at http://www.virtualbox.org/wiki/Downloads ~JW

Re: [vbox-dev] setup of module vboxdrv failed with svn 14276

2008-11-21 Thread Josh Wright
>Hi Antonio. Are you getting your virtualbox source code from debian? Since he refers to the svn rev he's using, I think it's safe to assume he's using the debian packaging environment that ships with Vbox. I was able to build 14434 on both Etch and Intrepid using the debian packaging scripts. I'

Re: [vbox-dev] svn 13842 debian package not compile

2008-11-05 Thread Josh Wright
I can confirm that a fresh svn checkout at 13842 fails to build for me as well (with the same errors detailed below). ~JW On Wed, Nov 5, 2008 at 8:53 AM, Antonio Doldo <[EMAIL PROTECTED]> wrote: > I have a tested and simple procedure that use: > > dpkg-buildpackage -rfaferoot -us -uc > > I h

[vbox-dev] Python webservice example

2008-07-02 Thread Josh Wright
Please find attached a short example of a VirtualBox webservice client written in Python. It was written to pretty closely mirror the existing Java example. It's released under the MIT license (http://www.opensource.org/licenses/mit-license.php), and if anyone has a use for it, have at it. ~JW #!/

Re: [vbox-dev] webservice and SOAPpy

2008-05-12 Thread Josh Wright
Christian, Thank you kindly... Apparently I made a dumb assumption and thought the webservice auth method was null by default. Works fine now. ~JW On Fri, May 9, 2008 at 5:39 AM, Christian Smith - Sun Microsystems - Dublin Ireland <[EMAIL PROTECTED]> wrote: > Hi Josh, > > I have encountered tha

Re: [vbox-dev] webservice and SOAPpy

2008-05-08 Thread Josh Wright
On Thu, 2008-05-08 at 08:21 +0200, Jakob Simon-Gaarde wrote: > I think you have posted to the wrong list. > > / Jakob VirtualBox developer's list seemed like an appropriate place for questions regarding the a VirtualBox API... The python code is a WSDL boilerplate that works fine everywhere else

[vbox-dev] webservice and SOAPpy

2008-05-07 Thread Josh Wright
Attempting to connect to the webservice via SOAPpy. Code: -- from SOAPpy import WSDL WSDLFile = '/usr/share/virtualbox/sdk/webservice/vboxwebService.wsdl' proxy = WSDL.Proxy(WSDLFile) oVbox = proxy.IWebsessionManager_logon('', '') print "'%s'" % oVbox ---