Using VBoxManage's guestcontrol To Launch A Program In Linux
Posted: 10. Dec 2012, 09:31
Hi,
I am using an Ubuntu 12.04 guest in a Windows 7 host. I would like to launch Ubuntu's Firefox using a command in Windows. I discovered the vboxmanage guestcontrol function and it sounds like it does exactly what I want. The problem is that I can't get it to work. Here is the command and output that I type at the DOS prompt:
I have my Ubuntu machine running. Nothing visibly happens, except the VBoxService process spikes up in the "top" command, so something is happening. When I replace the Firefox command with /bin/ls, the command works:
So it seems like I can get stdout from simple commands to display, but I don't know how to launch programs/scripts. Is anyone able to launch a program like Firefox in an Ubuntu guest via a command in the Host? If you have any idea about general guest/host communication best practices, I'd also be interested in that.
Thanks.
I am using an Ubuntu 12.04 guest in a Windows 7 host. I would like to launch Ubuntu's Firefox using a command in Windows. I discovered the vboxmanage guestcontrol function and it sounds like it does exactly what I want. The problem is that I can't get it to work. Here is the command and output that I type at the DOS prompt:
Code: Select all
C:\VirtualBox>VBoxManage.exe guestcontrol MyVirtualMachineUbuntu exec --image /usr/bin/firefox --username bob --password password --wait-stdout --verbose
Waiting for guest to start process ...
Waiting for process to exit ...
Exit code=1 (Status=500 [successfully terminated])Code: Select all
C:\VirtualBox>VBoxManage.exe guestcontrol MyVirtualMachineUbuntu exec --image /bin/ls --username bob --password password --wait-stdout --verbose
Waiting for guest to start process ...
Waiting for process to exit ...
bin
boot
cdrom
dev
etc
......Thanks.