VBox 4.3.4 - ssh and X connections to Linux guest dropping.

Discussions related to using VirtualBox on Mac OS X hosts.

VBox 4.3.4 - ssh and X connections to Linux guest dropping.

Postby jglogan » 4. Dec 2013, 18:18

I just upgraded from 4.2.x to 4.3.4 and now see an issue that didn't exist in the prior releases.

I boot my headless Ubuntu VM without any problems, ssh -X into the system, and start up Eclipse. Everything works fine for a while and then bam - the ssh connection drops ("Connection to localhost closed by remote host.") and my Eclipse session goes down with it.

The trigger appears to be a network event on the host - in the log below, it appears something happened that killed a VPN connection on the host also. In 4.2.x I'd see network events that bounced my VPN connection, but these never effected the network state of my guest systems.

Is anyone else seeing this following a 4.3.x upgrade?

Thanks! John

My config:
Host - MacOS 10.8.5,
Guest - Ubuntu 13.04, 3.8.0-34-generic x86_64
Guest network - Paravirtualized network (NAT, natdnshostresolver enabled so that I can resolve VPN hostnames also)
WiFi physical network connection

In the VirtualBox guest log I see:

Code: Select all   Expand viewCollapse view
06:52:54.260901 NAT: DNS servers changed, triggering reconnect
06:52:54.263584 NAT: link down
06:52:54.329513 NAT: DNS servers changed, triggering reconnect
06:52:58.352937 NAT: DNS servers changed, triggering reconnect
06:52:59.262517 NAT: link up
06:52:59.262546 NAT: set redirect TCP host port 2322 => guest port 22 @ 10.0.2.15
06:52:59.262630 NAT: set redirect TCP host port 8443 => guest port 8443 @ 10.0.2.15
06:52:59.262674 NAT: set redirect TCP host port 8080 => guest port 8080 @ 10.0.2.15
06:52:59.482822 NAT: DNS servers changed, triggering reconnect
06:52:59.483737 NAT: link down
06:52:59.493048 NAT: DNS servers changed, triggering reconnect
06:53:04.483444 NAT: link up
06:53:04.483475 NAT: set redirect TCP host port 2322 => guest port 22 @ 10.0.2.15
06:53:04.483551 NAT: set redirect TCP host port 8443 => guest port 8443 @ 10.0.2.15
06:53:04.483590 NAT: set redirect TCP host port 8080 => guest port 8080 @ 10.0.2.15
06:53:05.488904 NAT: DNS servers changed, triggering reconnect
06:53:05.491902 NAT: link down
06:53:05.542726 NAT: DNS servers changed, triggering reconnect
06:53:10.490275 NAT: link up
06:53:10.490314 NAT: set redirect TCP host port 2322 => guest port 22 @ 10.0.2.15
06:53:10.490415 NAT: set redirect TCP host port 8443 => guest port 8443 @ 10.0.2.15
06:53:10.490469 NAT: set redirect TCP host port 8080 => guest port 8080 @ 10.0.2.15


In the MacOS console, it's:

Code: Select all   Expand viewCollapse view
12/3/13 1:32:41.204 PM configd[17]: network changed: v4(en1:192.168.250.15, ppp0-:192.168.200.174) DNS* Proxy SMB
12/3/13 1:32:41.260 PM pppd[3333]: Connection terminated.
12/3/13 1:32:41.274 PM configd[17]: network changed: v4(en1:192.168.250.15) DNS! Proxy SMB
12/3/13 1:32:42.204 PM pppd[3451]: pppd 2.4.2 (Apple version 596.15.2) started by john, uid 501
12/3/13 1:32:42.208 PM pppd[3451]: Connect: ppp0 <--> /dev/ttys002
12/3/13 1:32:45.288 PM pppd[3451]: local  IP address 192.168.200.174
12/3/13 1:32:45.288 PM pppd[3451]: remote IP address 192.0.2.1
12/3/13 1:32:45.297 PM configd[17]: network changed: v4(en1:192.168.250.15, ppp0+:192.168.200.174) DNS* Proxy SMB
12/3/13 1:32:46.427 PM configd[17]: network changed: v4(en1:192.168.250.15, ppp0) DNS! Proxy SMB
12/3/13 1:32:46.438 PM configd[17]: network changed: v4(en1:192.168.250.15, ppp0) DNS! Proxy SMB
12/3/13 1:32:52.439 PM pppd[3451]: Connection terminated.
12/3/13 1:32:52.441 PM configd[17]: network changed: v4(en1:192.168.250.15, ppp0-:192.168.200.174) DNS* Proxy SMB
12/3/13 1:32:52.487 PM configd[17]: network changed: v4(en1:192.168.250.15) DNS! Proxy SMB


I don't see anything interesting in /var/log/* on the guest.
jglogan
 
Posts: 31
Joined: 15. Oct 2011, 02:23
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Linux, Windows 8

Re: VBox 4.3.4 - ssh and X connections to Linux guest droppi

Postby jglogan » 4. Dec 2013, 18:35

Turns out I can reproduce this issue very reliably by simply disabling and enabling my WiFi.

When I disable, nothing happens, but the connection drops after enabling WiFi and the network gets configured.
jglogan
 
Posts: 31
Joined: 15. Oct 2011, 02:23
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Linux, Windows 8

Re: VBox 4.3.4 - ssh and X connections to Linux guest droppi

Postby BruceEdge » 4. Dec 2013, 18:40

I'm experiencing similar problems after upgrading to 4.3.4.

I had been using the paravirt NIC before the upgrade, but had to switch to an emulated NIC as I was getting no network connectivity with the paravirt one.
I just saw this in my VM's kern.log right after a bunch of ssh sessions were dropped.

Code: Select all   Expand viewCollapse view
Dec  3 11:28:34 dev kernel: [69734.531336] e1000 0000:00:03.0 eth0: Detected Tx Unit Hang
Dec  3 11:28:34 dev kernel: [69734.531336]   Tx Queue             <0>
Dec  3 11:28:34 dev kernel: [69734.531336]   TDH                  <99>
Dec  3 11:28:34 dev kernel: [69734.531336]   TDT                  <9b>
Dec  3 11:28:34 dev kernel: [69734.531336]   next_to_use          <9b>
Dec  3 11:28:34 dev kernel: [69734.531336]   next_to_clean        <99>
Dec  3 11:28:34 dev kernel: [69734.531336] buffer_info[next_to_clean]
Dec  3 11:28:34 dev kernel: [69734.531336]   time_stamp           <10108dc2f>
Dec  3 11:28:34 dev kernel: [69734.531336]   next_to_watch        <9a>
Dec  3 11:28:34 dev kernel: [69734.531336]   jiffies              <10108df29>
Dec  3 11:28:34 dev kernel: [69734.531336]   next_to_watch.status <0>


Around the same time I see this in my osx log:
12/4/13 8:35:50.144 AM VirtualBox[34180]: modalSession has been exited prematurely - check for a reentrant call to endModalSession:

config:
Host - MacOS 10.9
Guest - Ubuntu 13.14, 3.11.0-14-generic #21-Ubuntu
Guest network - NAT Intel PRO/1000 T Server (82543GC) with a bunch of forwarded ports.
physical network connection, no wifi
BruceEdge
 
Posts: 1
Joined: 4. Dec 2013, 18:30

Re: VBox 4.3.4 - ssh and X connections to Linux guest droppi

Postby jglogan » 4. Dec 2013, 19:00

Another data point - a colleague of mine is running VBox 4.3.4 with a similar NAT guest (no host DNS resolver) on a Windows 8.1 host, using wired networking. He has had no issues of this kind to date, and when he does a Ethernet cable pull cycle, his host:guest TCP connections remain stable.
jglogan
 
Posts: 31
Joined: 15. Oct 2011, 02:23
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Linux, Windows 8

Re: VBox 4.3.4 - ssh and X connections to Linux guest droppi

Postby jglogan » 4. Dec 2013, 22:21

jglogan
 
Posts: 31
Joined: 15. Oct 2011, 02:23
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Linux, Windows 8

Re: VBox 4.3.4 - ssh and X connections to Linux guest droppi

Postby jglogan » 7. Dec 2013, 01:31

It looks like this is new for 4.3.4. I downgraded to 4.3.2 and don't see the problem.

I suspect is has to do with the bugfix for https://www.virtualbox.org/ticket/12225.
jglogan
 
Posts: 31
Joined: 15. Oct 2011, 02:23
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Linux, Windows 8

Re: VBox 4.3.4 - ssh and X connections to Linux guest droppi

Postby socratis » 7. Dec 2013, 10:59

jglogan wrote:I suspect is has to do with the bugfix for https://www.virtualbox.org/ticket/12225.

Riiiiggghhhttttt.... Blame it on me :D . No, seriously, if the devs try a fix on this, I would love to have an early warning to try it out.
socratis
Volunteer
 
Posts: 2475
Joined: 22. Oct 2010, 11:03
Location: Greece
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win(*>98), Linux*, OSX>10.5

Re: VBox 4.3.4 - ssh and X connections to Linux guest droppi

Postby Vasily » 9. Dec 2013, 15:20

The continue discussion is in the 12441 ticket.
---
Kind Regards,
Vasily.

P.S. Happy VBoxing!
Vasily
 
Posts: 27
Joined: 7. Feb 2012, 10:12
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: All OS which has got TCP/IP stack


Return to VirtualBox on Mac OS X Hosts

Who is online

Users browsing this forum: No registered users and 24 guests