Page 1 of 2
Can I create shortcut to VirtualBox's program ?
Posted: 20. Jun 2012, 00:55
by mercadantelaura
Hi, sorry for disturb, I have downloaded and I'm proving your program VirtualBox, (complete with Guest Addiction and Extension Pack), installing Windows XP virtualized on it.
I ask you if VirtualBox permit me to create a shortcut to program installed in XP virtualized but
in the Start Menu of my Windows7 x64 and run that program without open VirtualBox Program and without
show XP Desktop but showing on screen only program that I have choosed to run as Microsoft VirtualPC XP-Mode do.
Infact Microsoft XP-Mode permit user to run programs virtualized opening only program cliccking on its particular shortcut, without interface on screen that is always invisible.
If VirtualBox permit this, please can you explain me how I can do to obtain this?
Thanks
Re: Can I create shortcut to VirtualBox's program ?
Posted: 20. Jun 2012, 11:44
by mpack
mercadantelaura wrote:I ask you if VirtualBox permit me to create a shortcut to program installed in XP virtualized but
in the Start Menu of my Windows7 x64 ...
Once the guest additions are installed you could write a script to start a guest application (VBoxManage guestcontrol). You can also experiment with running the guest in seamless mode, see how close that gets you to what you want. See the user manual for details of both features.
Re: Can I create shortcut to VirtualBox's program ?
Posted: 20. Jun 2012, 16:18
by scottgus1
mercadantelaura wrote:Guest Addiction
Is this what happens if I use Virtualbox too much?

Re: Can I create shortcut to VirtualBox's program ?
Posted: 20. Jun 2012, 16:52
by mercadantelaura
Sorry, but I'm a beginner and in addiction my english language is not very well. I have do this question before study english manual, because this is an option that I'm searching for, and spend time to study for nothing...

Infact i wrote with the question if VirtualBox Permit this and if were easy the explaination to do this. Now you are answers me that there is possibility using Guest Addiction therefore I will read the manual hoping this is in my possibility to understand how to do. Thanks again
Re: Can I create shortcut to VirtualBox's program ?
Posted: 21. Jun 2012, 04:06
by BillG
There is nothing built into VirtualBox to allow you to run an application in the vm from the host OS (as you can with XP Mode). You would have to write your own script to achieve that (as mpack suggested).
Re: Can I create shortcut to VirtualBox's program ?
Posted: 21. Jun 2012, 08:40
by mercadantelaura
The mpack that you have suggest me is the program showed on this site ?
http://sourceforge.net/projects/mpack-win/
Re: Can I create shortcut to VirtualBox's program ?
Posted: 21. Jun 2012, 13:05
by mpack
Look at my name. "As mpack suggested" means - "do what I said".
Re: Can I create shortcut to VirtualBox's program ?
Posted: 21. Jun 2012, 13:30
by mercadantelaura

Sorry very much for terrible error. Wronging i have thinked was a program that you have suggested me, I have not read that was your username. Sorry so much
Re: Can I create shortcut to VirtualBox's program ?
Posted: 22. Jun 2012, 01:55
by mercadantelaura
Hi, I have read manual and after lots tests I don't know why it don't run.
I have also downloaded last version 4.1.18 but nothing to do.
Manual Pag. 136 specify how run programs using Guest Addiction on the guest with an example
VBoxManage --nologo guestcontrol "My VM" execute --image "c:\\windows\\system32\\ipconfig.exe"
--username foo --password bar --wait-exit --wait-stdout
"double backslashes Only Linux, I have Windows7 x64 and XP 32bits virtualized"
I don't have password and user is also the Administrators of WinXP and XP auto-logon when starts
I wrote command:
VBoxManage --nologo guestcontrol "WinXP" execute --image "c:\Test\Test.exe" --username Laura --wait-exit --wait-stdout
but VirtualBox show me advise:
error: Process execution failed: the specified user was not able to logon on guest.
I have controlled using command: "control userpasswords2" and the user name is correct
I have proved to create an other XP virtualized with username "Andrea" but nothing to do.
If I prove without final string "--wait-exit --wait-stdout" there are no errors on screen but nothing run
VBoxManage --nologo guestcontrol "WinXP" execute --image "c:\Test\Test.exe" --username Andrea
...proved also ....
VBoxManage --nologo guestcontrol "73fc2221-78f4-4caf-8827-cf2f542a2527" execute --image "c:\Test\Test.exe" --username "Andrea" --password ""
nothing to do.
Someone have any idea to suggest me please ??
Re: Can I create shortcut to VirtualBox's program ?
Posted: 22. Jun 2012, 14:40
by svbhvman
I don't know but maybe VirtualBox treats this as a Remote Login session. If this is the case you can enable remote login with out a password by setting these two registry settings in the GUEST:
Code: Select all
[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Lsa]
"LimitBlankPasswordUse"=dword:00000000
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa]
"LimitBlankPasswordUse"=dword:00000000
or you can simply add a password to the account and use it when you launch the program.
Hope this helps you out.
SvbHvman
Re: Can I create shortcut to VirtualBox's program ?
Posted: 22. Jun 2012, 18:00
by scottgus1
for testing purposes, I entered this line in the Windows 7 host command line window:
"c:\program files\oracle\virtualbox\vboxmanage.exe" guestcontrol execute myvmname "c:\windows\system32\calc.exe" --username myusername --password mypassword
Myvmname, myusername, and mypassword were my real vm name and guest username and password. The guest opened the calculator. Seems to work. You might try giving the guest a password just to see if that is the hangup...
Re: Can I create shortcut to VirtualBox's program ?
Posted: 23. Jun 2012, 03:19
by mercadantelaura
The Post by "svbhvman" have solved my problem and Now run very well.
Thank you also to "scottgus1" but your command is not complete for my PC and causes error.
Using regedit I have modified registry as wrote "svbhvman" and with correct parametres all run.
Now there is last point to solve problems: running the guest in seamless mode.
I have choosed LEFT-CTRL as HOST Button, and when I press manually
HOST-F to Full Screen --> therefore for me "LEFT-CTRL + F" ...or...
HOST-L to Invisible Screen --> therefore for me "LEFT-CTRL + L"
all run very well.
I remember that my design is run XP programs using shortcuts on Win7 Start Menu in invisible mode.
Searching on manual I don't find any section with "command line" in order to include string command
for the selection of SEAMLESS MODE in batch file.
For this reason I have create a script using AUTOIT program (if you know it) and
I have added the command that send equal sequence
send("^L") is equal LEFT-CTRL + L" equal "HOST-L"
but don't run.
..proved with
send("{LCTRL}L") nothing
proved in the script also with "ALT" or "SHIFT" changing HOST sequence in VirtualBox,
but unfortunately I don't have fortune.
...nothing to do.
Why ??
Have someone any suggestion also for this last point of my project??
Thanks
Re: Can I create shortcut to VirtualBox's program ?
Posted: 24. Jun 2012, 18:46
by mercadantelaura
Nobody know method to create script (that run) in order to choose invisible desktop without user must operate with keyboard HOST to choose "guest seamless mode" ?? ( HOST-L ... HOST-F )
My script with AUTOIT program don't run.
http://www.autoitscript.com/site/autoit/
This is last step to complete that I'm looking for
using VirtualBox.
Please tell me some suggestion if you can.
Thank you very much
Re: Can I create shortcut to VirtualBox's program ?
Posted: 25. Jun 2012, 05:43
by ChipMcK
mercadantelaura wrote:Nobody know method to create script (that run) in order to choose invisible desktop without user must operate with keyboard HOST to choose "guest seamless mode" ?? ( HOST-L ... HOST-F )
Perhaps one of these
Re: Can I create shortcut to VirtualBox's program ?
Posted: 26. Jun 2012, 01:37
by mercadantelaura
Thanks, I have read more times the link guide that you have wrote and I will read it again.
I think that it is the correct solution but I'm beginner and I have lots difficulty to understand how do it with correct numeric string to include in this string command:
VBoxManage controlvm keyboardputscancode <hex> [<hex> ...]
There are lots keyboard .. parametres...
I found in
http://www.win.tue.nl/~aeb/linux/kbd/sc ... html#ss1.4
"Ordinary scancodes" that
LCTRL = 2d and
L = 26
are these the correct number that I must use ?
therefore i must send this command

--> VBoxManage controlvm "WinXP" keyboardputscancode 2d 26
I have thinked that was sufficient create a script with AUTO IT that send to VirtualBox the "CTRL-L" sequence
but unfortunately really is not so easy infact the script don't run.
I will try again to study the guide.
Thank you very much