Use Virtual Machine remotely

Discussions related to using VirtualBox on Windows hosts.
Post Reply
microbert
Posts: 5
Joined: 11. Aug 2010, 10:58
Primary OS: MS Windows 7
VBox Version: OSE self-compiled
Guest OSses: Windows XP

Use Virtual Machine remotely

Post by microbert »

Hi,

I am using virtual box v4.0.6-71416 on windows server 2008. I have installed a virtual machine with windows xp.

now i want to be able to use the virtual machine using remote desktop from another computer. i'd like to know if can start the machine from the remote computer?

thanks for your help.
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Use Virtual Machine remotely

Post by Perryg »

See Chapter 7 Remote virtual machines in your VirtualBox users guide.
vRDP will do what you need.
microbert
Posts: 5
Joined: 11. Aug 2010, 10:58
Primary OS: MS Windows 7
VBox Version: OSE self-compiled
Guest OSses: Windows XP

Re: Use Virtual Machine remotely

Post by microbert »

thanks for your reply

but i have looked that page but could not make it to start from the remote computer.

all i managed to do is to first start it up from the host pc and then remotely connect to the virtual os

but i'd like to be able to switch on the virtual from the remote pc too? if that is possible.

thanks
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Use Virtual Machine remotely

Post by Perryg »

i'd like to be able to switch on the virtual from the remote pc too? if that is possible.
Sure it is. but the remote machine is not the guest that is powered off. You remote into the host and power on the guest. I know of no way to tell a machine that is powered off to do anything directly.
microbert
Posts: 5
Joined: 11. Aug 2010, 10:58
Primary OS: MS Windows 7
VBox Version: OSE self-compiled
Guest OSses: Windows XP

Re: Use Virtual Machine remotely

Post by microbert »

Hi,

thankks for your help, i was using the method that you told me loggin into the host and switch on the virtual.

but i was wondering if i can lunch the virtual machine from a batch file or something like that. without the need to remote dekstop with the host

i used something like that to start the virtual machine from the same compueter:
@echo off
cls
"C:\Program Files\Oracle\VirtualBox\VBoxManage.exe" startvm "myvirtual"
@exit
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Use Virtual Machine remotely

Post by Perryg »

I doubt it. as soon as you hit the @exit the batch will end and so will the process. Windows change the ability to close the command window and leave the process running a long time ago. They only want to start things as a service or leave the command window open. There is an unsupported method at the beginning of this forum about starting as a service if you care to read up about it.
scottgus1
Site Moderator
Posts: 20945
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows, Linux

Re: Use Virtual Machine remotely

Post by scottgus1 »

The "Start" command allows launching a process from within a command line window without tying the launched process to the window. For example, on my SBS2003 backup batch file, this line:

Code: Select all

start cmd /c CopyVMsInt2Ext.cmd %extdrive%
launches the secondary batch file "CopyVMsInt2Ext.cmd" in a separate window, allowing the backup batch file to finish without waiting for the CopyVMsInt2Ext.cmd window to close.

You could try:

Code: Select all

@echo off
start "C:\Program Files\Oracle\VirtualBox\VBoxManage.exe" startvm "myvirtual"
You could also try PsExec (http://technet.microsoft.com/en-us/sysi ... s/bb897553), which allows remote launching of applications. Probably batch files, too.
infoshri
Posts: 1
Joined: 23. Nov 2012, 08:29

Re: Use Virtual Machine remotely

Post by infoshri »

You can start virtual XP desktop on windows server 2008 by establishing remote connection between windows server 2008 and other computer from where you wish to start the virtual machine. You can use various remote support services such as logmeinrescue, gosupportnow etc. regarding the same.
Twisted Lucidity
Posts: 170
Joined: 18. Feb 2012, 12:42
Primary OS: Ubuntu other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Various GNU/Linux
Location: Here
Contact:

Re: Use Virtual Machine remotely

Post by Twisted Lucidity »

Why did you reply to a thread that is over a year old?

Don't wake the dead.
A new account for an old user.
Post Reply