Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

Thanks.

share|improve this question
add comment

2 Answers

up vote 7 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
add comment

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
add comment

Your Answer

 
discard

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.