VB 3.0.6 looses bridged network connectivity on 10.6 server

Discussions related to using VirtualBox on Mac OS X hosts.

VB 3.0.6 looses bridged network connectivity on 10.6 server

Postby mcptron » 12. Sep 2009, 13:47

i' running ubuntu 8.04.3 server inside vb 3.0.6 on osx 10.6.1 server host.
at first everything works out fine, but after a few hours the vm looses network connectivity over the bridged adapter and cannot be reattached any more.

in the system.log of osx i find repeatedly the following message:

kernel.log:Sep 9 12:59:23 pegasus kernel[0]: VBoxNetFlt: was detached from 'en0' (0)

i'm not sure if it's related.

go anyone similar problems and eventually a solution?

thx & rg.
michael
mcptron
 
Posts: 5
Joined: 12. Sep 2009, 12:59
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Ubuntu 8.04.3 LTE Server

Re: VB 3.0.6 looses bridged network connectivity on 10.6 server

Postby mcptron » 12. Sep 2009, 23:56

ok, so now after some tries, it appears that this problem also occures for host-only and nat networking.

has anyone similar problems?

rg.
michael
mcptron
 
Posts: 5
Joined: 12. Sep 2009, 12:59
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Ubuntu 8.04.3 LTE Server

Re: VB 3.0.6 looses bridged network connectivity on 10.6 server

Postby Perryg » 13. Sep 2009, 00:10

I am no MAC expert but the log that shows this error is the MAC log correct? If so you also need to look at the VBox guest log and see if it is indicating anything there. Also look for power management features that may be shutting down the Net adapter on the MAC if it detects no communication for a period of time. Screen savers on the guest may also cause this I think. You can test this by setting up a periodic request on the guest to see if it continues to stay functional like email checks every 5 minutes ETC.
Perryg
Site Moderator
 
Posts: 25964
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX - Other

Re: VB 3.0.6 looses bridged network connectivity on 10.6 server

Postby mcptron » 13. Sep 2009, 09:41

Perryg wrote:I am no MAC expert but the log that shows this error is the MAC log correct?


yes it is the hosts log file

If so you also need to look at the VBox guest log and see if it is indicating anything there.
Also look for power management features that may be shutting down the Net adapter on the MAC if it detects no communication for a period of time. Screen savers on the guest may also cause this I think. You can test this by setting up a periodic request on the guest to see if it continues to stay functional like email checks every 5 minutes ETC.


i did another test this night, with one ping from the host to the guest per minute over a bridged adapter. the only thing i found in power management of the host was to disable monitor power save to disable, everything else was already off.

the result was: after approx 40 minutes of operation the interface began to stutter and after 3 more hours it went offine completely. see the sections of the log generated the the ping-script:

So 13 Sep 2009 00:51:13 CEST: 64 bytes from 192.168.1.4: icmp_seq=0 ttl=64 time=1.098 ms
So 13 Sep 2009 00:52:13 CEST: 64 bytes from 192.168.1.4: icmp_seq=0 ttl=64 time=0.457 ms
So 13 Sep 2009 00:53:13 CEST: 64 bytes from 192.168.1.4: icmp_seq=0 ttl=64 time=0.422 ms
...
So 13 Sep 2009 01:27:14 CEST: 64 bytes from 192.168.1.4: icmp_seq=0 ttl=64 time=0.422 ms
So 13 Sep 2009 01:28:14 CEST: 64 bytes from 192.168.1.4: icmp_seq=0 ttl=64 time=0.414 ms
So 13 Sep 2009 01:29:14 CEST: 64 bytes from 192.168.1.4: icmp_seq=0 ttl=64 time=0.423 ms
So 13 Sep 2009 01:30:14 CEST:
So 13 Sep 2009 01:31:25 CEST:
So 13 Sep 2009 01:32:36 CEST: 64 bytes from 192.168.1.4: icmp_seq=0 ttl=64 time=3625.693 ms
So 13 Sep 2009 01:33:40 CEST:
So 13 Sep 2009 01:34:51 CEST:
So 13 Sep 2009 01:36:02 CEST: 64 bytes from 192.168.1.4: icmp_seq=0 ttl=64 time=7961.489 ms
So 13 Sep 2009 01:37:10 CEST:
So 13 Sep 2009 01:38:21 CEST:
So 13 Sep 2009 01:39:32 CEST:
So 13 Sep 2009 01:40:43 CEST:
So 13 Sep 2009 01:41:54 CEST:
So 13 Sep 2009 01:43:05 CEST: 64 bytes from 192.168.1.4: icmp_seq=0 ttl=64 time=4924.311 ms
So 13 Sep 2009 01:44:10 CEST:
So 13 Sep 2009 01:45:21 CEST:
...
So 13 Sep 2009 04:25:09 CEST:
So 13 Sep 2009 04:26:20 CEST:
So 13 Sep 2009 04:27:31 CEST: 64 bytes from 192.168.1.4: icmp_seq=0 ttl=64 time=7963.771 ms
So 13 Sep 2009 04:28:39 CEST:
So 13 Sep 2009 04:29:50 CEST:
So 13 Sep 2009 04:31:01 CEST: ping: cannot resolve pilot.lan.petroni.cc: Unknown host
So 13 Sep 2009 04:32:01 CEST: ping: cannot resolve pilot.lan.petroni.cc: Unknown host
So 13 Sep 2009 04:33:01 CEST: ping: cannot resolve pilot.lan.petroni.cc: Unknown host
So 13 Sep 2009 04:34:01 CEST: ping: cannot resolve pilot.lan.petroni.cc: Unknown host

the guests logfile shows exactly nothing:
00:00:27.950 PCNet#0: Init: ss32=1 GCRDRA=0x1f8c8000[32] GCTDRA=0x1f93a000[16]
00:01:27.646 PCNet#0: Init: ss32=1 GCRDRA=0x1f8c8000[32] GCTDRA=0x1f93a000[16]
08:39:35.289 Entering S5 (power down)
08:39:35.289 ****************** Guest state at power off ******************
08:39:35.289 Guest CPUM (VCPU 0) state: se

it's rather weird, isn't it?

thx & rg.
michael
mcptron
 
Posts: 5
Joined: 12. Sep 2009, 12:59
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Ubuntu 8.04.3 LTE Server

Re: VB 3.0.6 looses bridged network connectivity on 10.6 server

Postby Perryg » 13. Sep 2009, 14:37

Yes it is weird. But I still say that since the guest has no reference to it, it sounds like the shutdown seems to be coming from the MAC side.
I suppose it could be a defective VBoxNetFlt driver. You can try to uninstall and reinstall a new copy of VBox to see if the driver became corrupt on download.
Maybe installing a different OS to see if it operates the same. If this persists you may need to create a ticket in bugtracker. Link is below my post and you will need to setup an account there as it is a different system.
Perryg
Site Moderator
 
Posts: 25964
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX - Other

Re: VB 3.0.6 looses bridged network connectivity on 10.6 server

Postby DOCa Cola » 14. Sep 2009, 17:41

i experience the same issue with 10.6 server with 3.0.6 with windows server 2003 guest. the bridged network connection runs absolutely fine at first, but after a few hours the guests lan connection is not working anymore. i have to shutdown the virtual machine entirely (restarting the guest system or disabling/reenabling the network connection from the menu has no effect).
the guest has been copied over from another system that previously ran virtualbox 3.0.4 under 10.5 and first installed with 3.0.0. the guest additions have been upgraded to 3.0.6 also.
10.6 server runs on a mac mini with only the integrated wired lan connection (airport disabled). also a pppoe internet connection is made (dynamic ip) with that server to the internet

edit: that ticket sounds very similar and has just been created for 3.0.6 by another user http://www.virtualbox.org/ticket/4984
DOCa Cola
 
Posts: 1
Joined: 14. Sep 2009, 17:34
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Windows Server 2003

Re: VB 3.0.6 looses bridged network connectivity on 10.6 server

Postby mcptron » 14. Sep 2009, 19:03

maybe we're getting somewhere here after all.

first the bas news: as suggested by Perryg i completely deinstalled vb 3.0.6 and reinstalled it from a fresh downloaded copy. the behaviour is almost the same, only this time net network was up for about 7 hours to stop working completely from one ping to another after that time. no errors in the guest log and no errors in the hosts system.log this time.

but: i get this bad behaviour also on a mac mini (latest generation as of summer 2009) as mentioned above. when trying the same scenario on the same patchlevel of mac os x 10.6.1 (not server, workstation version this time) on my macbook pro with vb 3.0.6, the network connection is rock stable. i suspect the mac mini uses another nic with another mac-os-driver?

rg.
michael
mcptron
 
Posts: 5
Joined: 12. Sep 2009, 12:59
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Ubuntu 8.04.3 LTE Server

Re: VB 3.0.6 looses bridged network connectivity on 10.6 server

Postby sejoe » 12. May 2010, 11:44

I also experience the exact same problem with VirtualBox 3.1.8 and Snow Leopard Server on an mac mini running 2 Debian Linux as virtualized guests. Two weeks ago I updated Snow Leopard Server and also VirtualBox. From then on I experience exactly the same problems. Interestingly I had the same problem with previous Version of Snow Leopard Server and VirtualBox 3.1.6 at the begining. But then, without any changes I made, the problem did not appear any more until two weeks ago.

I can not see any errors reported in any log file and I have no idea how to fix that.

Regards,
Andy
sejoe
 
Posts: 2
Joined: 12. May 2010, 11:35
Primary OS: Mac OS X other
VBox Version: OSE other
Guest OSses: Debian Linux

Re: VB 3.0.6 looses bridged network connectivity on 10.6 server

Postby jwilliams108 » 12. May 2010, 19:20

This seems quite similar to my issue:

http://www.virtualbox.org/ticket/6559
http://forums.virtualbox.org/viewtopic.php?t=29884

No solution yet, but a constant ping seems to keep the network adapter alive.
jwilliams108
 
Posts: 15
Joined: 23. Sep 2009, 21:13
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: CentOS

Re: VB 3.0.6 looses bridged network connectivity on 10.6 server

Postby sejoe » 14. May 2010, 10:48

A constant ping command really seems to solve the problem. I did this ping by a daemon placed in /Library/LaunchDaemons. For whom who's interested in, here it is:


Code: Select all   Expand viewCollapse view
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
   <key>KeepAlive</key>
   <true/>
   <key>Label</key>
   <string>michelangelo-1.ping.plist</string>
   <key>ProgramArguments</key>
   <array>
      <string>ping</string>
      <string>192.168.14.201</string>
   </array>
   <key>RunAtLoad</key>
   <true/>
   <key>StartInterval</key>
   <integer>30</integer>
</dict>
</plist>


Regards,
Andy
sejoe
 
Posts: 2
Joined: 12. May 2010, 11:35
Primary OS: Mac OS X other
VBox Version: OSE other
Guest OSses: Debian Linux


Return to VirtualBox on Mac OS X Hosts

Who is online

Users browsing this forum: Google [Bot] and 17 guests