﻿id	summary	reporter	owner	description	type	status	component	version	resolution	keywords	cc	guest	host
12817	Treatment of host only network on host sleep/wake: keep SSH connections open?	Jeff Morgenthaler		"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)"	enhancement	closed	network/hostif	VirtualBox 4.3.8	worksforme	network hangup		Linux	Windows
