VirtualBox

Opened 10 years ago

Closed 9 years ago

#12817 closed enhancement (worksforme)

Treatment of host only network on host sleep/wake: keep SSH connections open?

Reported by: Jeff Morgenthaler Owned by:
Component: network/hostif Version: VirtualBox 4.3.8
Keywords: network hangup Cc:
Guest type: Linux Host type: Windows

Description

Using VirtualBox 4.2.16, my laptop could emulate my desktop setup: a Windows/Cygwin "front end" (host) connected to a headless LINUX server (guest). I could put the laptop to sleep or hibernate and when it woke back up, usually the SSH connection from the host to the guest was intact. I logged in to the guest via the NAT connection (e.g. 127.0.0.1), with ssh port forwarding.

In 4.3.XX, the NAT ports started to be HUPed by VirtualBox upon wake, so my SSH connection always broke. I tried a host-only network adapter instead (with and without the DHCP server enabled) and find the network connection to the guest is usually HUPed there too.

Looking in the kernel logs, I see the issue may boil down to the order in which things happen (see below).

Is there any way to consistently make the host-only connection (or any network connection between host and guest) rock-solid across sleep-wake events? If so, it might also help my samba connections from guest to host, which sometimes suffer a pause (or something) that ends up making my MS Office files read from my LINUX guest read-only after wake events.

Any help appreciated.

jpm

Works (network remains intact long enough to keep SSH happy on wake):

Mar 12 23:41:38 byted kernel: [ 9.420948] e1000: eth0 NIC Link is Up 1000 Mbps Full Duplex, Flow Control: RX

Mar 12 23:41:38 byted kernel: [ 9.422561] ADDRCONF(NETDEV_UP): eth0: link is not ready

Mar 12 23:41:38 byted kernel: [ 9.422760] ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready

Does not work (SSH connection is killed on wake):

Mar 12 23:41:38 byted kernel: [ 8.462367] ADDRCONF(NETDEV_UP): eth1: link is not ready

Mar 12 23:41:38 byted kernel: [ 8.464562] e1000: eth1 NIC Link is Up 1000 Mbps Full Duplex, Flow Control: RX

Mar 12 23:41:38 byted kernel: [ 8.465166] ADDRCONF(NETDEV_CHANGE): eth1: link becomes ready

PS using up-to-date Windows 7 Pro (host) Debian wheezy (guest)

Change History (2)

in reply to:  description comment:1 by Jeff Morgenthaler, 10 years ago

In 4.3.10, SSH using port forwarding on the NAT adapter is now rock-solid across sleep-wake events. THANKS!

I am still struggling with samba from the LINUX guest to the Windows host on sleep-wake events. I get the error "<Office program> error: The file '<file name>' may have been changed by another user since you last saved it." Microsoft doesn't seem to offer the network timeout solution for Office 2013 that they did for earlier versions of Office. I suppose I could downgrade Office, but finding a solution on the VirtualBox end of things seems better.

Ideas?

jpm

Last edited 10 years ago by Jeff Morgenthaler (previous) (diff)

comment:2 by Valery Ushakov, 9 years ago

Resolution: worksforme
Status: newclosed

Closing this since ssh problem is reproted to be fixed.

Re samba problem - sorry, 1) don't repurpose a bug to discuss a different problem; 2) this is bug tracker, we can't use it to provide support.

Note: See TracTickets for help on using tickets.

© 2023 Oracle
ContactPrivacy policyTerms of Use