Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

Is it possible to run commands on a VirtualBox VM from outside? Or should I use some sort of remote control tool like VNC? If so, what would be the easiest and best for such a simple task. I have a Windows 7 VM inside an LMDE Linux.

share|improve this question
up vote 9 down vote accepted

You can use the VBoxManage guestcontrol command to run any command runnable in the guest provided you have guest additions installed.

share|improve this answer

If your virtual machine is using bridged networking, then it is on the same network as the host machine. It appears to be just another computer on the network, so any remote access or remote command mechanism that works between physical machines will work here: SSH, VNC, RDP, etc.

If your VM is using NAT networking, you cannot connect directly to it over the network unless you first set up port forwarding, but thereafter it works as described above.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.