Page 1 of 1

VirtualBox API OpenRemoteSession vs PopUp Dialogs!

Posted: 6. Nov 2009, 11:56
by Cryon
Hi!

I’m using VirtualBox API to launch several virtual machines one by one in automatic way. When one ends its job next one gets executed by my application. Recently I’ve came across a ‘PopUp Dialogs’ problem, launching a virtual machine with API OpenRemoteSession function in GUI mode I might get these pop up interactive dialogs warning me about ‘mouse integration’ problem for example. Where I need to tick this ‘Don’t ask me again’ checkbox! So, it spoils whole idea about automation… :?
Please, does anyone know how to get rid of such dialogs in GUI execution mode?
Thanks!

Re: VirtualBox API OpenRemoteSession vs PopUp Dialogs!

Posted: 6. Nov 2009, 16:22
by JshWright
You can disable those by setting the appropriate extradata flags.

After you've run a VM locally and checked all those boxes, dump the extradata settings with 'VBoxManage getextradata global enumerate'. It should be fairly obvious which settings apply to which boxes.

Alternatively, you could use the SDL session type, since VBoxSDL doesn't have any of those popups.

~JW

Re: VirtualBox API OpenRemoteSession vs PopUp Dialogs!

Posted: 6. Nov 2009, 18:24
by Cryon
Thank you! That exactly what I needed! :D

Just in case somebody's curious about my list of those 'confirm/remind' pop up boxes:

Code: Select all

remindAboutAutoCapture
confirmInputCapture
remindAboutMouseIntegrationOn
remindAboutWrongColorDepth
confirmGoingFullscreen
remindAboutMouseIntegrationOff
And the commands:

Code: Select all

1) VBoxManage setextradata global GUI/SuppressMessages
2) VBoxManage setextradata global GUI/SuppressMessages remindAboutAutoCapture,confirmInputCapture,remindAboutMouseIntegrationOn,
remindAboutWrongColorDepth,confirmGoingFullscreen,remindAboutMouseIntegrationOff
It's also possible to put those values directly to VirtualBox.xml into 'ExtraData' section:

Code: Select all

<ExtraDataItem name="GUI/SuppressMessages" value="remindAboutAutoCapture,confirmInputCapture,remindAboutMouseIntegrationOn,remindAboutWrongColorDepth,confirmGoingFullscreen,remindAboutMouseIntegrationOff"/>
See you!