I recently installed a Linux (Mint 17) virtual Machine on a Windows 7 PC. In order to be able to SSH to this virtual machine, I had to define a few rules and redirect ports as explained in other posts of this very forum (see this link for instance).

I realized that there is a known bug on virtual box regarding the drop of TCP connections (see this ticket). After updating the natdnshostresolver1 however, I still experience loss of TCP connections after about 10 to 12 minutes.

The virtualmachine is still on and can still access the internet but it is impossible to ssh to it. From the virtual machine, I can ssh to any other machine, it is only the "input" ssh that is not working.

Does anyone know if this is a known issue with VirtualBox ? I am using version 4.3.20 of the software.

  • I have never experienced this issue, but I can tell you from my experience networking misconfiguration is the #1 reason that anything doesn't work in a Virtualbox. – felixphew Feb 9 '15 at 20:01
  • 1
    Sounds like a ports/NAT problem - have you considered using bridged networking? It eliminates some of these issues by connecting your VM directly to the network. – felixphew Feb 9 '15 at 20:02
  • I did not consider using bridged networking, I will try that. I did not assume it could be a port issue as this problem only occurs after a certain time... – Alain Feb 9 '15 at 21:16
  • Ok, so indeed with a bridged connection it seems to be working fine, no more loss of connection. Thanks for the tip ! – Alain Feb 10 '15 at 13:02

I'm not sure af the exact cause of your woes, but networking virtual machines can be complicated. Your computer is acting as a NAT router for your VM(s), and so it has to manage port forwarding and address translation, among many other things.

One way of eliminating these problems can be to use bridged networking instead. Instead of providing address translation, your computer uses a series of tricks to share your network card between the virtual and real machines. Each has its own IP on the network, through one physical connection.

VirtualBox, Parallels, and most VMware products (Fusion, Player etc.) have an option to enable bridged networking.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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