VirtualBox API OpenRemoteSession vs PopUp Dialogs!

This is for discussing general topics about how to use VirtualBox.
Post Reply
Cryon
Posts: 2
Joined: 6. Nov 2009, 10:51
Primary OS: MS Windows XP
VBox Version: OSE other
Guest OSses: Windows All

VirtualBox API OpenRemoteSession vs PopUp Dialogs!

Post 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!
JshWright
Volunteer
Posts: 119
Joined: 13. Sep 2007, 00:33
Primary OS: Debian Lenny
VBox Version: OSE self-compiled
Guest OSses: Many...

Re: VirtualBox API OpenRemoteSession vs PopUp Dialogs!

Post 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
Join us in the VirtualBox IRC channel: #vbox on FreeNode
http://www.virtualbox.org/wiki/IRC
Cryon
Posts: 2
Joined: 6. Nov 2009, 10:51
Primary OS: MS Windows XP
VBox Version: OSE other
Guest OSses: Windows All

Re: VirtualBox API OpenRemoteSession vs PopUp Dialogs!

Post 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!
Post Reply