VirtualBox

Ticket #6563 (new defect)

Opened 4 years ago

Last modified 3 years ago

Network dropout (on DHCP reallocation maybe?)..

Reported by: joncage Owned by:
Priority: major Component: network
Version: VirtualBox 3.1.6 Keywords:
Cc: Guest type: Windows
Host type: Linux

Description (last modified by frank) (diff)

I'm using the Ubuntu built v3.1 Virtual Box on Cosmic Koala Ubuntu and though it works very well most of the time, I occasionally (every 3-4 hours or maybe when the dhcp license expires - not sure of the trigger yet) get a network dropout where the guest O/S appears to forget how to network. The weird thing is that I can connect into the guest o/s using RDP fine but it doesn't appear to be able to even ping it's host.

Here's some debug from the guest system while it's working:

C:\Documents and Settings\Uber Virtual User>ipconfig /all

Windows IP Configuration

        Host Name . . . . . . . . . . . . : virtualuber
        Primary Dns Suffix  . . . . . . . :
        Node Type . . . . . . . . . . . . : Unknown
        IP Routing Enabled. . . . . . . . : No
        WINS Proxy Enabled. . . . . . . . : No
        DNS Suffix Search List. . . . . . :

Ethernet adapter Local Area Connection:

        Connection-specific DNS Suffix  . :
        Description . . . . . . . . . . . : AMD PCNET Family PCI Ethernet Adapter
        Physical Address. . . . . . . . . : 08-00-27-2F-D1-3C
        Dhcp Enabled. . . . . . . . . . . : Yes
        Autoconfiguration Enabled . . . . : Yes
        IP Address. . . . . . . . . . . . : 10.0.2.15
        Subnet Mask . . . . . . . . . . . : 255.255.255.0
        Default Gateway . . . . . . . . . : 10.0.2.2
        DHCP Server . . . . . . . . . . . : 10.0.2.2
        DNS Servers . . . . . . . . . . . : 10.0.2.2
        Lease Obtained. . . . . . . . . . : Tuesday, March 09, 2010 12:48:22 PM
        Lease Expires . . . . . . . . . . : Wednesday, March 10, 2010 12:48:22 PM

C:\Documents and Settings\Uber Virtual User>ping 10.0.2.2

Pinging 10.0.2.2 with 32 bytes of data:

Reply from 10.0.2.2: bytes=32 time=1ms TTL=127
Reply from 10.0.2.2: bytes=32 time=1ms TTL=127
Reply from 10.0.2.2: bytes=32 time=2ms TTL=127

This is it after breaking:

C:\Documents and Settings\Uber Virtual User>ipconfig /all

Windows IP Configuration

        Host Name . . . . . . . . . . . . : virtualuber
        Primary Dns Suffix  . . . . . . . :
        Node Type . . . . . . . . . . . . : Unknown
        IP Routing Enabled. . . . . . . . : No
        WINS Proxy Enabled. . . . . . . . : No
        DNS Suffix Search List. . . . . . :

Ethernet adapter Local Area Connection:

        Connection-specific DNS Suffix  . :
        Description . . . . . . . . . . . : AMD PCNET Family PCI Ethernet Adapter
        Physical Address. . . . . . . . . : 08-00-27-2F-D1-3C
        Dhcp Enabled. . . . . . . . . . . : Yes
        Autoconfiguration Enabled . . . . : Yes
        IP Address. . . . . . . . . . . . : 10.0.2.15
        Subnet Mask . . . . . . . . . . . : 255.255.255.0
        Default Gateway . . . . . . . . . : 10.0.2.2
        DHCP Server . . . . . . . . . . . : 10.0.2.2
        DNS Servers . . . . . . . . . . . : 10.0.2.2
        Lease Obtained. . . . . . . . . . : Wednesday, March 10, 2010 3:23:07 AM
        Lease Expires . . . . . . . . . . : Thursday, March 11, 2010 3:23:07 AM


C:\Documents and Settings\Uber Virtual User>ping 10.0.2.2

Pinging 10.0.2.2 with 32 bytes of data:

Request timed out.

I had a look at the guest O/S's system log and found a load of the following entries:

The name "WORKGROUP      :1d" could not be registered on the Interface with IP address 10.0.2.15.
   The machine with the IP address 10.0.2.2 did not allow the name to be claimed by this machine.

Can anyone help me debug the source of the problem or suggest a fix?

Attachments

VBox.log Download (39.3 KB) - added by joncage 4 years ago.
Virtual Box Log File
systeminfo.txt Download (9.1 KB) - added by joncage 4 years ago.
systeminfo output
VirtualBox.xml Download (1.3 KB) - added by joncage 4 years ago.
Virtualbox settings
dhcp error message.JPG Download (53.7 KB) - added by adamp 4 years ago.
Windows NT-2010-07-22-12-57-24_b1.log Download (71.3 KB) - added by adamp 4 years ago.
Windows NT-2010-07-23-14-45-56_b1.log Download (71.4 KB) - added by adamp 4 years ago.
Windows NT-2010-07-26-14-40-17_b1.log Download (70.7 KB) - added by adamp 4 years ago.
Windows NT-2010-07-28-04-56-26_b1.log Download (56.0 KB) - added by adamp 4 years ago.
VBox.2.log Download (40.6 KB) - added by maarten256 3 years ago.
Current VirtualBox Session

Change History

Changed 4 years ago by joncage

Virtual Box Log File

comment:1 Changed 4 years ago by Hachiman

  • Description modified (diff)

comment:2 follow-up: ↓ 4 Changed 4 years ago by Hachiman

Your guest is running some torrent client right? I'll try to reproduce it here?

comment:3 Changed 4 years ago by frank

  • Description modified (diff)

comment:4 in reply to: ↑ 2 ; follow-up: ↓ 5 Changed 4 years ago by joncage

Replying to Hachiman:

Your guest is running some torrent client right? I'll try to reproduce it here?

That's correct; uTorrent to be precise but I'm pretty sure that's a red herring; I think this problem is caused by the DHCP lease expiring. The host is running the DHCP server. Let me know if there's any other information that you think might help.

I tried lengthening the DHCP lease to a month last night and the box is still running without any problems.

comment:5 in reply to: ↑ 4 ; follow-up: ↓ 6 Changed 4 years ago by joncage

Replying to Hachiman:

Your guest is running some torrent client right? I'll try to reproduce it here?

I have another open bug (reports of too many open files) which I believe _is_ related to running uTorrent though:  http://www.virtualbox.org/ticket/6464

comment:6 in reply to: ↑ 5 ; follow-up: ↓ 7 Changed 4 years ago by Hachiman

Replying to joncage:

Replying to Hachiman:

Your guest is running some torrent client right? I'll try to reproduce it here?

I have another open bug (reports of too many open files) which I believe _is_ related to running uTorrent though:  http://www.virtualbox.org/ticket/6464

When you've mentioned about several hours I've thought about "too many files" too, because I've met with similar problem but with sockets on trunk, but hopefully in my case expiration of unused sockets happens quiet soon (5-10 min.) and NAT continue its working after not very long outage. About DHCP lease it should expire within 24h, that why I've doubted about DHCP lease. Of course it could be some specific for Windows dhcp client behavior. Will experiment with smaller expiration periods.

comment:7 in reply to: ↑ 6 ; follow-up: ↓ 8 Changed 4 years ago by joncage

Replying to Hachiman:

When you've mentioned about several hours I've thought about "too many files" too, because I've met with similar problem but with sockets on trunk, but hopefully in my case expiration of unused sockets happens quiet soon (5-10 min.) and NAT continue its working after not very long outage. About DHCP lease it should expire within 24h, that why I've doubted about DHCP lease. Of course it could be some specific for Windows dhcp client behavior. Will experiment with smaller expiration periods.

I think the four hours is actually the too many files problem wheras this one is just when the DHCP lease expires. I should have made that clearer, but at the time of writing I hadn't convinced myself that the two were separate issues.

comment:8 in reply to: ↑ 7 Changed 4 years ago by Hachiman

Replying to joncage: I've tried Vista and XP guest here (on trunk) with 1 min, lease expiration. and haven't noticed any outages (guest even has downloaded some updates :)). Could you please attach output of systeminfo command on your guest.

Note: VBox's Shared folders and VBox's RDP do not use networking NAT either other types. So they couldn't be used for validating networking activity.

Changed 4 years ago by joncage

systeminfo output

Changed 4 years ago by joncage

Virtualbox settings

comment:9 follow-up: ↓ 10 Changed 4 years ago by joncage

Okay, systeminfo output added along with my virtualbox settings. Could it be the DHCP setting I have in there screwing things up perhaps?

comment:10 in reply to: ↑ 9 ; follow-up: ↓ 11 Changed 4 years ago by Hachiman

Replying to joncage:

Could it be the DHCP setting I have in there screwing things up perhaps?

no. NAT use built-in dhcp server. Ok, will try with 3.1 then.

comment:11 in reply to: ↑ 10 ; follow-up: ↓ 12 Changed 4 years ago by adamp

Replying to Hachiman:

Replying to joncage:

Could it be the DHCP setting I have in there screwing things up perhaps?

no. NAT use built-in dhcp server. Ok, will try with 3.1 then.

Hachiman, please tell me something about status of the issue above. We met similar problem and I'dont know, how to resolve this. We have Windows NT installed as guest on Ubuntu host OS. Under Ubuntu we configured CDDI network card. Data flow to this interface is forwarding to Windows NT (guest) through port forwarding feature. This is working fine for first 24 hours (DHCP lease period?). After this time data flow (through port forwarding) stops working. To repair this we must restart host system. Please help how to resolve this problem.

comment:12 in reply to: ↑ 11 ; follow-ups: ↓ 13 ↓ 14 ↓ 15 Changed 4 years ago by Hachiman

Replying to joncage:

Could it be the DHCP setting I have in there screwing things up perhaps?

no. NAT use built-in dhcp server. Ok, will try with 3.1 then.

Hachiman, please tell me something about status of the issue above. We met similar problem and I'dont know, how to resolve this. We have Windows NT installed as guest on Ubuntu host OS. Under Ubuntu we configured CDDI network card. Data flow to this interface is forwarding to Windows NT (guest) through port forwarding feature. This is working fine for first 24 hours (DHCP lease period?). After this time data flow (through port forwarding) stops working. To repair this we must restart host system. Please help how to resolve this problem.

That sounds differently. Could you please attach the log file?

comment:13 in reply to: ↑ 12 Changed 4 years ago by adamp

Replying to Hachiman:

Replying to joncage:

Could it be the DHCP setting I have in there screwing things up perhaps?

no. NAT use built-in dhcp server. Ok, will try with 3.1 then.

Hachiman, please tell me something about status of the issue above. We met similar problem and I'dont know, how to resolve this. We have Windows NT installed as guest on Ubuntu host OS. Under Ubuntu we configured CDDI network card. Data flow to this interface is forwarding to Windows NT (guest) through port forwarding feature. This is working fine for first 24 hours (DHCP lease period?). After this time data flow (through port forwarding) stops working. To repair this we must restart host system. Please help how to resolve this problem.

That sounds differently. Could you please attach the log file?

OK. I'll send you tomorrow.

Changed 4 years ago by adamp

Changed 4 years ago by adamp

Changed 4 years ago by adamp

Changed 4 years ago by adamp

Changed 4 years ago by adamp

comment:14 in reply to: ↑ 12 Changed 4 years ago by adamp

Replying to Hachiman:

Replying to joncage:

Could it be the DHCP setting I have in there screwing things up perhaps?

no. NAT use built-in dhcp server. Ok, will try with 3.1 then.

Hachiman, please tell me something about status of the issue above. We met similar problem and I'dont know, how to resolve this. We have Windows NT installed as guest on Ubuntu host OS. Under Ubuntu we configured CDDI network card. Data flow to this interface is forwarding to Windows NT (guest) through port forwarding feature. This is working fine for first 24 hours (DHCP lease period?). After this time data flow (through port forwarding) stops working. To repair this we must restart host system. Please help how to resolve this problem.

That sounds differently. Could you please attach the log file?

Please find attached above requested files. "Log" files are VirtualBox log files from few days after port forwarding stops working (host needs restart and so on). "Jpg" file contains screenshot of the host computer screen - sorry, this message is from localized (polish) Windows NT. Here is the translation:

Dialog title: "DHCP client".

Dialog text: "DHCP cannot renew connection for 10.0.5.15 IP addres. This connection is valid till Sun Jul 25 14:47:19 2010. DHCP will try to renew this connection before validity time expires".

Please note, that port forwarding feature is configured for port number 4444.

Once again thank you for your support.

comment:15 in reply to: ↑ 12 Changed 4 years ago by adamp

Replying to Hachiman:

Replying to joncage:

Could it be the DHCP setting I have in there screwing things up perhaps?

no. NAT use built-in dhcp server. Ok, will try with 3.1 then.

Hachiman, please tell me something about status of the issue above. We met similar problem and I'dont know, how to resolve this. We have Windows NT installed as guest on Ubuntu host OS. Under Ubuntu we configured CDDI network card. Data flow to this interface is forwarding to Windows NT (guest) through port forwarding feature. This is working fine for first 24 hours (DHCP lease period?). After this time data flow (through port forwarding) stops working. To repair this we must restart host system. Please help how to resolve this problem.

That sounds differently. Could you please attach the log file?

Hello. Any help for above issue?

comment:16 follow-up: ↓ 17 Changed 4 years ago by Hachiman

Could you please replace VBoxDD.so with  http://www.virtualbox.org/download/testcase/VBoxDD.so.6563 and start you VM in the following way:

# export VBOX_LOG=drv_nat.e.l2
# export VBOX_LOG_DEST=file=nat.log
# VirtualBox -start <you-vm>

and please attach result nat.log to defect.

comment:17 in reply to: ↑ 16 ; follow-up: ↓ 18 Changed 4 years ago by adamp

Replying to Hachiman:

Could you please replace VBoxDD.so with  http://www.virtualbox.org/download/testcase/VBoxDD.so.6563 and start you VM in the following way:

# export VBOX_LOG=drv_nat.e.l2
# export VBOX_LOG_DEST=file=nat.log
# VirtualBox -start <you-vm>

and please attach result nat.log to defect.

Excuse me for the idle time - now I have results (log files). But there is a problem: requested files are HUGE - about 350MB after compression. How to send you these files?

comment:18 in reply to: ↑ 17 ; follow-up: ↓ 19 Changed 4 years ago by Hachiman

Replying to adamp:

Excuse me for the idle time - now I have results (log files). But there is a problem: requested files are HUGE - about 350MB after compression. How to send you these files?

Please, drop me mail at vasily _dot_ levchenko _at_ Sun _dot_ COM, I'll send instructions to how big files could be delivered to me? Thanks.

comment:19 in reply to: ↑ 18 Changed 4 years ago by Hachiman

for record: instructions have been sent.

comment:20 Changed 4 years ago by frank

Any chance to test the E1000 device? Windows XP knows the E1000 server variant we emulate but I'm not sure about NT.

comment:21 Changed 3 years ago by maarten256

Hello,

I have been trying to debug an issue with VirtualBox where my Guest OS (Windows 2000) "loses" its network connection - for as far as I've been able to figure out so far, the problem is related to a failure to renew the IP address once the DHCP Lease expires.

In contrast to what has been described in this report, I'm using a bridged (not NAT) connection. Other than that some of the observations noted above seem to be synonymous with my findings to date, so rather than opening a new bug I'm hoping that responding to this bug might help me.

I first realized I had the problem on VirtualBox 4.0.2 (although I might have also experienced the same problem on earlier versions). I've just installed VirtualBox 4.0.4. My host OS is Ubuntu 10.10:

Linux snellebak 2.6.35-25-generic #44-Ubuntu SMP Fri Jan 21 17:40:48 UTC 2011 i686 GNU/Linux

I've attached my log file for a current session on VirtualBox. Can somebody give me some pointers on figuring out whether I have the same issue as this report, or whether I've got a different problem?

Changed 3 years ago by maarten256

Current VirtualBox Session

comment:22 Changed 3 years ago by maarten256

Here's a short transcript of the latest sequence of events... Not sure if any of this helps but I'll keep plugging away at it. (Same data is also kept here:  https://answers.launchpad.net/ubuntu/+source/virtualbox-ose/+question/145118)

2/18/11 14:17 Start - IP address assigned; lease through 2/19/11 14:17
2/19/11 02:17 DHCP Request/Reply; lease renewed through 2/20/11 02:17

02:17:59.830960 IP (tos 0x0, ttl 64, id 24785, offset 0, flags [none], proto UDP (17), length 335) vm-snellebak.home.bootpc > Wireless_Broadband_Router.home.bootps: BOOTP/DHCP, Request from 08:00:27:1e:9f:04 (oui Unknown), length 307, xid 0x937a7f9a, Flags [none] 02:18:00.642089 IP (tos 0x10, ttl 16, id 0, offset 0, flags [none], proto UDP (17), length 328) Wireless_Broadband_Router.home.bootps > vm-snellebak.home.bootpc: BOOTP/DHCP, Reply, length 300, xid 0x937a7f9a, Flags [none]

2/19/11 14:17 DHCP Request/Reply:

14:19:43.983745 IP (tos 0x0, ttl 64, id 26900, offset 0, flags [none], proto UDP (17), length 335) vm-snellebak.home.bootpc > Wireless_Broadband_Router.home.bootps: BOOTP/DHCP, Request from 08:00:27:1e:9f:04 (oui Unknown), length 307, xid 0x14dace07, Flags [none] 14:19:45.042701 IP (tos 0x10, ttl 16, id 0, offset 0, flags [none], proto UDP (17), length 328) Wireless_Broadband_Router.home.bootps > vm-snellebak.home.bootpc: BOOTP/DHCP, Reply, length 300, xid 0x14dace07, Flags [none]

--> Connectivity Lost; "ipconfig /all" does not report anything. Windows "frozen" - appears a process is using 100% CPU but cannot determine which as Taskmanager cannot be run. ARP packets continue to be exchanged between router and Windows.

System Log documents error when starting ipconfig:

Event Type: Information
Event Source: Application Popup
Event Category: None
Event ID: 26
Date: 2/19/2011
Time: 18:15:20
User: N/A
Computer: VM-SNELLEBAK
Description:
Application popup: ipconfig.exe - Application Error : The application failed to initialize properly (0xc0000142). Click on OK to terminate the application.

--> I have not yet been able to determine conclusively what this error means - it sounds like it is related to a missing file and/or dependency but given the scenario I'm not sure if that makes sense. I do wonder if it is related to the same problem as reported by the dhcp client (see below).

System Log documents repeated errors from dhcp service on Windows, starting at 02:20 on 2/20/11:

Event Type: Warning
Event Source: Dhcp
Event Category: None
Event ID: 1003
Date: 2/20/2011
Time: 02:20:45
User: N/A
Computer: VM-SNELLEBAK
Description:
Your computer was not able to renew its address from the network (from the DHCP Server) for the Network Card with network address 0800271E9F04. The following error occured:
An operation was attempted on something that is not a socket. . Your computer will continue to try and obtain an address on its own from the network address (DHCP) server.
Data:
0000: 36 27 00 00 6'..

Note: See TracTickets for help on using tickets.

www.oracle.com
ContactPrivacy policyTerms of Use