Opened 8 years ago
Closed 8 years ago
#15484 closed defect (duplicate)
Port forwarding (NAT) fails after save state/restore after 5.0.20 update
| Reported by: | chrijm | Owned by: | |
|---|---|---|---|
| Component: | network/NAT | Version: | VirtualBox 5.0.20 |
| Keywords: | Cc: | ||
| Guest type: | Linux | Host type: | Mac OS X |
Description
After a guest OS has saved the machine state and then resumed, port forwarding is no longer working. As soon as the guest uses the network, things start working again. Basically, once you resume you can't ssh into the guest (port 2222 forwarded to 22) from the host. If you then do something simple like ping yahoo, the port forwarding starts working again and you can ssh into the guest os.
It's worth mentioning that I don't really notice this with Windows guests, but I assume that's simply because Windows is always hitting the network behind the scenes.
Note: This only started with the last update (5.0.20 r106931). It did not happen on previous version.
Steps to replicate: 1) Install guest OS so that there are no background network activities (minimal Oracle 5.8 install, tcp dump to verify no background network activity). 2) Setup standard ssh port forwarding (port 2222 to 22) 3) ssh into guest from host (to ensure it's working), log out. 4) save machine state 5) resume machine state 6) ssh into guest from host (just as in step 3).
- that should fail with "Connection closed by remote host"
7) switch to guest window and ping www.yahoo.com 8) ssh into guest from host (just as in step 3).
- that should now connect


#15412