How to start a program on a guest XP

Discussions related to using VirtualBox on Windows hosts.
Post Reply
Docfxit
Posts: 134
Joined: 23. May 2014, 12:35
Primary OS: MS Windows 10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Win7, Win10

How to start a program on a guest XP

Post by Docfxit »

I'm trying to launch a program from the host (Win7 Pro) on the Guest (XP Pro).

I created a bat file to run it:

Code: Select all

C:\Programs\VirtualBox\VBoxManage.exe guestcontrol "XPVirtualMachine" execute --image "\\VBOXSVR\Dnload\StartAllSesions.exe" --username Name --password RealPassword --wait-stdout --verbose
cmd
The bat files runs with no errors. The program doesn't stay running on the guest.

Code: Select all

Opening guest session as user 'jimxp' ...
Waiting for guest session to start ...
Guest session (ID 1) has been started
Starting guest process ...
Process '\\VBOXSVR\Dnload\StartAllSesions.exe' (PID 592) started
Process terminated
Exit code=0 (Status=500 [successfully terminated])
Closing guest session ...
What do I need to change to have the process stay running?

Thank you,

Docfxit
mpack
Site Moderator
Posts: 39134
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Mostly XP

Re: How to start a program on a guest XP

Post by mpack »

That isn't a VirtualBox question. VBox may provide the tools to launch an application. The decision to terminate an application is taken by the application itself - or the guest OS.

If the application doesn't keep running then I'd guess that it's unhappy with the task you asked it to do. Don't ask me what that is.
Docfxit
Posts: 134
Joined: 23. May 2014, 12:35
Primary OS: MS Windows 10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Win7, Win10

Re: How to start a program on a guest XP

Post by Docfxit »

This same program runs fine if I start it within the guest OS (XP). The problem has to be the way it's being called with VBoxManage.exe guestcontrol.
Do I have the parameters correct?

Thanks,

Docfxit
mpack
Site Moderator
Posts: 39134
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Mostly XP

Re: How to start a program on a guest XP

Post by mpack »

I have no way to know if the parameters are correct. I assume name and realpassword are placeholders for the real thing, and while I see a misspelling of "sesion" a.k.a. session, I don't know if it's intended.
Post Reply