Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Using Virtualbox, is it possible to execute a shell command on the guest operating system from the host operating system? I'd like to create a script that runs the command firefox http://www.google.com on a Linux guest machine (from a Windows host machine.)

share|improve this question
    
It appears that it's possible to do this on Linux (for a Linux host and a Windows guest): seechrisblog.com/2010/06/21/making-virtualbox-more-seamless – Anderson Green Nov 8 '12 at 3:32
1  
You can use sshd on linux guest and ssh client putty.exe on windows host, but it requires network between host and guest. – week Nov 8 '12 at 3:37
    
@week Could you use this command to run a program from a Linux guest on a Windows host? "VBoxManage guestcontrol execute "Windows XP" "C:\Program Files\Internet Explorer\iexplore.exe" --username windowsusername – Anderson Green Nov 8 '12 at 3:38
    
That URL is broken, but luckily the page is archived: wayback.archive.org/web/20140210180433/http://seechrisblog.com/…. – Tshepang Dec 11 '15 at 9:34

You must log in to answer this question.

Browse other questions tagged .