#3655 closed defect (fixed)
Unable to get IP from NAT-DHCP -> fixed in SVN
Reported by: | Josh | Owned by: | |
---|---|---|---|
Component: | network/NAT | Version: | VirtualBox 2.2.0 |
Keywords: | dhcp nat | Cc: | |
Guest type: | Windows | Host type: | Windows |
Description (last modified by )
Since 2.2.0 the guest is unable to get an IP from DHCP using NAT ("Limited or no connectivity"). I set the guest to a static IP and was able to get the internet to work.
I see a lot of this in the log: NAT: DHCP offered IP address 10.0.2.15 But that doesn't mean
XP Pro 32-bit host and guest, w/o the host interface driver installed (shouldn't be required for NAT?).
Tried:
- Clean install of VirtualBox
- Redoing guest configuration
- Setting a new MAC address
- Reinstalling guest additions
- Clean install of XP Pro guest
Attachments (3)
Change History (73)
by , 16 years ago
follow-up: 2 comment:1 by , 16 years ago
comment:2 by , 16 years ago
Replying to frank:
Strange. Does it change anything when you change the network card to an E1000 type? One of these three types are probably detected by Windows XP, currently I don't remember which one.
The T Server (82543GC), wasn't able to get an IP with that one either.
by , 16 years ago
Attachment: | VBox.Vista.log added |
---|
follow-up: 5 comment:4 by , 16 years ago
Replying to redxii:
Does not work in Vista either.
Does the
#ipconfig /release #ipconfig /renew
in the guest fix problem for you?
comment:5 by , 16 years ago
comment:6 by , 16 years ago
So could you please do the following
#VBoxManage modifyvm <your-vm> -nictrace1 on -nictracefile1 c:/dhcp.pcap #VirtualBox -startvm <your-vm>
and attach result file to defect?
and repeating step with renew lease.
by , 16 years ago
comment:7 by , 16 years ago
Description: | modified (diff) |
---|
comment:8 by , 16 years ago
same problem here with Win-XP-Host and Win-XP-Guest but no problem with Win-XP-Host and Linux-Guest.
comment:9 by , 16 years ago
Summary: | Unable to get IP from DHCP → Unable to get IP from NAT-DHCP |
---|
So it appears that this problem is Windows-host only and probably only related to Windows guests. Can you confirm this or are there any users experiencing this problem with non-Windows hosts or non-Windows guests?
comment:10 by , 16 years ago
I'm also having network problems after the upgrade. I'm using XP Pro as the host and have XP Home guests. I've noticed that after the upgrade the "VirtualBox Host-Only Ethernet Adapter" on the host is having problems. Its status is "Limited or no connectivity". I was not having this problem before the upgrade. Please let me know if I can do anything to help isolate the problem.
comment:11 by , 16 years ago
I think I was a bit too fast with my comment above. I have the problem with my Linux guests now too. :(
I created a new VM with only one NAT interface and I wasn't able to get an IP. Then I looked in the config file for that VM and saw that the speed for this network device was "0" so I changed it manually to "1000000" like I found in another VM config. I rebooted the VM and got an IP and was able to ping an ip in the internet ... for a few seconds, then the connection was lost. I didn't find anything in the VM-log nor in my windows event log.
My host system is Windows XP Pro SP2 and I tried the Linux guest with a Linux-from-scratch-Live-CD and set up the guest VM type to 'Linux 2.6' but I think this doesn't matter. ;)
I downgrade now to 2.1.4 so I can work a bit but let me know if I can do something.
follow-up: 14 comment:12 by , 16 years ago
mantiz, I've tried to downgrade but had no success. The uninstall of 2.2.0 seems to work but I get an error during the install of 2.1.4. Please let me know if you this this to work. Also, did you start getting a problem with a network connection called "VirtualBox Host-Only Network" on your host after the upgrade. I do not know if that network connection existed prior to 2.2.0 but it is giving me problems now.
comment:13 by , 16 years ago
jmorey, I just uninstalled 2.2.0 via windows software management, rebootet, installed 2.1.4, rebootet, renamed all VM config files from *.xml.1.6-windows.bak to *.xml (override the prior created ones by 2.2.0) and I was done with it. The installed "VirtualBox Host-Only Network"-Interface was uninstalled by the uninstall process of 2.2.0.
I had no problems with it.
follow-up: 15 comment:14 by , 16 years ago
Replying to jmorey:
mantiz, I've tried to downgrade but had no success. The uninstall of 2.2.0 seems to work but I get an error during the install of 2.1.4.
Could you attach msi & setupapi logs to 1730 as described here
Also, did you start getting a problem with a network connection called "VirtualBox Host-Only Network" on your host after the upgrade. I do not know if that network connection existed prior to 2.2.0 but it is giving me problems now.
What kind of problems do you see with it? There should be no problems other that "limited access connection" warning, as described in comment#1 of 3670
follow-up: 16 comment:15 by , 16 years ago
Sorry but I can't do the logs now. After another reboot and another try 2.2.0 uninstalled and I reinstalled 2.1.4 which worked this last time. Sorry I did not do the log thing.
Replying to misha:
Replying to jmorey:
mantiz, I've tried to downgrade but had no success. The uninstall of 2.2.0 seems to work but I get an error during the install of 2.1.4.
Could you attach msi & setupapi logs to 1730 as described here
Also, did you start getting a problem with a network connection called "VirtualBox Host-Only Network" on your host after the upgrade. I do not know if that network connection existed prior to 2.2.0 but it is giving me problems now.
What kind of problems do you see with it? There should be no problems other that "limited access connection" warning, as described in comment#1 of 3670
follow-up: 17 comment:16 by , 16 years ago
Replying to jmorey: Ok, what about the second part of the question of comment 14,
What kind of problems do you see with the Host-Only adapter? There should be no problems other that "limited access connection" warning, as described in comment#1 of 3670
comment:17 by , 16 years ago
My problem was the same "limited access connection" warning.
Replying to misha:
Replying to jmorey: Ok, what about the second part of the question of comment 14,
What kind of problems do you see with the Host-Only adapter? There should be no problems other that "limited access connection" warning, as described in comment#1 of 3670
follow-up: 19 comment:18 by , 16 years ago
This particular issue is about NAT, and how the guest is unable to get a proper IP thru DHCP, and a static IP has to be assigned. I'm getting confused, since half the feedback in my bug report isn't about my bug report.
I've uploaded the dhcp.pcap file Hachiman requested. After removing the static IP I tried release/renew twice (not that I expected it to work).
follow-up: 20 comment:19 by , 16 years ago
Replying to redxii:
This particular issue is about NAT, and how the guest is unable to get a proper IP thru DHCP, and a static IP has to be assigned. I'm getting confused, since half the feedback in my bug report isn't about my bug report.
I've uploaded the dhcp.pcap file Hachiman requested. After removing the static IP I tried release/renew twice (not that I expected it to work).
Yep, I've received it. thank you. the picture is bit strange because NAT responses on request with expected values, but for some reasons it's not accepted by guest.
follow-up: 21 comment:20 by , 16 years ago
I usually run as non-admin. I tried running VirtualBox as administrator, no change. I only use the Windows Firewall, disabling both host and guest Win Firewall, no change there. I don't think the additions are the problem. NAT should be able to work without the additions anyway as long as the NIC is detected. I tried screwing around with the driver options for the NIC in Device Manager, nothing.
follow-up: 22 comment:21 by , 16 years ago
Replying to redxii:
I usually run as non-admin. I tried running VirtualBox as administrator, no change. I only use the Windows Firewall, disabling both host and guest Win Firewall, no change there. I don't think the additions are the problem. NAT should be able to work without the additions anyway as long as the NIC is detected. I tried screwing around with the driver options for the NIC in Device Manager, nothing.
It seems I found the root cause of this issue. Could you please send me an email at vasily [dot] levchenko [at] Sun [dot] COM, then I'll send you an URL where you can fetch the build to verify the fix, or please update you profile with contacting information
comment:22 by , 16 years ago
Replying to Hachiman:
It seems I found the root cause of this issue. Could you please send me an email at vasily [dot] levchenko [at] Sun [dot] COM, then I'll send you an URL where you can fetch the build to verify the fix, or please update you profile with contacting information
I sent you an e-mail.. and updated my profile for future reference.
comment:23 by , 16 years ago
Summary: | Unable to get IP from NAT-DHCP → Unable to get IP from NAT-DHCP -> fixed in SVN |
---|
follow-up: 25 comment:24 by , 16 years ago
Hello, I've got the same problem on Vita-host and on XP-Host!
Thank you.
follow-up: 27 comment:25 by , 16 years ago
Replying to NewIpaqy:
Hello, I've got the same problem on Vita-host and on XP-Host!
Thank you.
This has already been fixed, but won't be available until the next VirtualBox release or Hachiman wants to upload updated binaries (I don't know which were actually changed).
comment:27 by , 16 years ago
Replying to redxii:
This has already been fixed, but won't be available until the next VirtualBox release or Hachiman wants to upload updated binaries (I don't know which were actually changed).
Is it possible to get the binary built from the SVN source which contains the fixed codes as an interim solution?
follow-ups: 30 38 44 comment:29 by , 16 years ago
Some more verbose notes: The problem is specific to Windows hosts but it does not apply to every Windows host. It seems that mostly Windows XP hosts are affected while Vista hosts are mostly not. So far we were not able to reproduce this on our testboxes but, as Hachiman already wrote, we found the problem. It is fixed with the changesets r18857, r18865, r18872. We will probably provide a new binary in about 2 days.
follow-up: 31 comment:30 by , 16 years ago
Replying to frank:
Some more verbose notes: The problem is specific to Windows hosts but it does not apply to every Windows host. It seems that mostly Windows XP hosts are affected while Vista hosts are mostly not. So far we were not able to reproduce this on our testboxes but, as Hachiman already wrote, we found the problem. It is fixed with the changesets r18857, r18865, r18872. We will probably provide a new binary in about 2 days.
Why wouldn't you remove the existing version until you patched this? I opened up my Virtual Box and it prompted me to download the latest version. Which I did, and now XP Guest box (which I use for development) is useless because I cannot access my source control saved on my network. Two days is a long time for me to be down. Is there no other workaround in the mean time?
comment:31 by , 16 years ago
Replying to rwalrond:
Replying to frank:
Some more verbose notes: The problem is specific to Windows hosts but it does not apply to every Windows host. It seems that mostly Windows XP hosts are affected while Vista hosts are mostly not. So far we were not able to reproduce this on our testboxes but, as Hachiman already wrote, we found the problem. It is fixed with the changesets r18857, r18865, r18872. We will probably provide a new binary in about 2 days.
Why wouldn't you remove the existing version until you patched this? I opened up my Virtual Box and it prompted me to download the latest version. Which I did, and now XP Guest box (which I use for development) is useless because I cannot access my source control saved on my network. Two days is a long time for me to be down. Is there no other workaround in the mean time?
I solved this problem under XP by entering the local computers I need to access in the "\system32\drivers\etc\hosts." File. I look forward to seeing the proper fix within the next few days, as I'm not going to enter all the local machines I need to access in a host file.
follow-up: 33 comment:32 by , 16 years ago
The workaround is to manually assign 10.0.2.15 as guest IP.
follow-up: 34 comment:33 by , 16 years ago
Replying to frank:
The workaround is to manually assign 10.0.2.15 as guest IP.
And a static DNS server IP address also.
follow-up: 35 comment:34 by , 16 years ago
The workaround is to manually assign 10.0.2.15 as guest IP.
And a static DNS server IP address also.
And set the default gateway to 10.0.2.2
follow-up: 37 comment:35 by , 16 years ago
Replying to chdh:
The workaround is to manually assign 10.0.2.15 as guest IP.
And a static DNS server IP address also.
And set the default gateway to 10.0.2.2
Here is what I observed,
The Guest XP automatically sets the IP address to 10.0.2.15 and Default domain to 10.0.2.2.
With this configuration I can reach external websites without a problem but accessing local computers on the domain do not work. So first thing I tried was adding the local computer to the Hosts file. This worked, but before I posted my findings here is what else I tried:
I figured I should add our internal DNS servers to the network setting which should do the same thing as the Hosts file, but for some reason this failed.
Next I thought I should change the default gateway to our internal gateway to see if that would fix it. No luck.
So your suggestions didn't work for me so I went back to just modifying the hosts file. Now that I have access to my SVN server again I can wait a few days for a fix.
Thanks
comment:36 by , 16 years ago
I use Windows Vista Home ultimate and upgrading to 2.2.0 was create same problems for my windows 2000 guest box.
The fix was to setup mannually
IP 10.0.2.15, mask 255.255.255.0, gw 10.0.2.2, dns 10.0.2.3
Thank you
comment:38 by , 16 years ago
Replying to frank:
Some more verbose notes: The problem is specific to Windows hosts but it does not apply to every Windows host. It seems that mostly Windows XP hosts are affected while Vista hosts are mostly not. So far we were not able to reproduce this on our testboxes but, as Hachiman already wrote, we found the problem. It is fixed with the changesets r18857, r18865, r18872. We will probably provide a new binary in about 2 days.
I read thru the posts a few days back and saw that you consider this a Windows on Windows problem. My host OS is XP Pro and my guest OS is Ubuntu Server 8.10. I'm getting the problem in this combination as well. I had hoped to see a new binary released today based on this post. If that's not going to happen can you provide some form of input on how to regress my VM back to 2.1.4 so I can get my development environment back up and running in a usable fashion?
comment:39 by , 16 years ago
To get back to 2.1.4, just install the 2.1.4 (you will find this package on our web site). You probably need to rename all .bak files in your .VirtualBox directory back to the original names.
A proper workaround should be to set the name server and the IP (10.0.2.2) manually in the guest, Ubuntu allows this in a comfortable way.
Regarding the binary, I wrote in about 2 days. I cannot promise anything (and I don't have to, read the license if in doubt) but I can tell you that we are working hard to fix the most annoying bugs of 2.2.0 ASAP.
follow-up: 41 comment:40 by , 16 years ago
Users of 32-bit Windows could try to replace the VBoxDD.dll file in the installation directory by the content of this ZIP archive. Please backup the old file and make sure that no VMs are running when replace the DLL.
Feedback welcome.
comment:42 by , 16 years ago
The patch got connectivity back, but if I run two DHCP enabled VMs they both get the same IP address assigned to them. Both have 10.0.2.15 as their IP and ipconfig /renew results in the same IP. Is that expected behavior? I would expect each VM to get its own IP.
comment:43 by , 16 years ago
nwsedlak, that is the expected behavior as implemented in every VirtualBox version from the beginning. Both VMs live in their own NAT subnet, therefore they both get 10.0.2.15 as IP and both can talk to the host but not to each other. If VMs should talk to each other you can configure an additional network card for each guest and add these network cards to the same internal network.
For future releases we plan to extend the NAT model to allow to share the NAT network between VMs but this is not relevant for this ticket.
follow-up: 45 comment:44 by , 16 years ago
FYI:
I encountered this problem on a Vista Enterprise host (running unprivileged) with openSUSE 11.1 as guest (kernel 2.6.27.21). The patched DLL fixed the issue.
Some more information: after installing 2.2.0, Outlook stopped working (couldn't connect to Exchange). Removing the newly installed network interface (for Host Interface networking) resolved that. I then subsequently repaired, removed and reinstalled VirtualBox, this time without the network interface. This didn't cause any further harm.
I don't know if the presence of the network interface has anything to do with the DHCP issue, and I suspect it doesn't.
Replying to frank:
Some more verbose notes: The problem is specific to Windows hosts but it does not apply to every Windows host. It seems that mostly Windows XP hosts are affected while Vista hosts are mostly not.
As said, Windows Vista Enterprise was affected by this issue in this case. If you need more information, I'll be more than happy to provide it.
comment:45 by , 16 years ago
My host OS is Ubuntu 8.04 and am using XP SP3 in VB and have the same issue, so this is not only a Windows host problem.
follow-up: 47 comment:46 by , 16 years ago
I cannot download a good VBoxDD.dll-32.zip. The file is always broken when I download it. WinRAR 3.80 says "Unexpected end of file". Repairing does not work. Could you check that?
Thank you.
follow-up: 48 comment:47 by , 16 years ago
Can someone upload a 64-bit patched VBoxDD.dll, please?
Replying to ikerrg: Try deleting browser cache, or another browser.
follow-up: 50 comment:48 by , 16 years ago
comment:49 by , 15 years ago
My observations: Host and guest WinXP. DHCP almost worked - I got the IP 10.0.2.15, mask 255.255.255.0, gw 10.0.2.2 but I got 10.0.2.2 dns instead of 10.0.2.3. It works after manual entering.
follow-up: 51 comment:50 by , 15 years ago
Replying to ikerrg:
Replying to mainar:
Can someone upload a 64-bit patched VBoxDD.dll, please?
Replying to ikerrg: Try deleting browser cache, or another browser.
I've tried in several computers (all usin IE 7 and 8) with no success. Are you sure the file is still OK?
Try 7-zip to unzip the files. It works for me while windows fails with an error.
follow-up: 52 comment:51 by , 15 years ago
Replying to jmorey:
Replying to ikerrg:
Replying to mainar:
Can someone upload a 64-bit patched VBoxDD.dll, please?
Replying to ikerrg: Try deleting browser cache, or another browser.
I've tried in several computers (all usin IE 7 and 8) with no success. Are you sure the file is still OK?
Try 7-zip to unzip the files. It works for me while windows fails with an error.
The download is not corrupted if downloaded using Firefox (and then opened via WinRAR, Winzip or even the old DOS pkunzip.exe). It seems a compatibility problem between the server and the IE7&8 explorers. Finally I got the file!
comment:52 by , 15 years ago
Replying to ikerrg:
Replying to jmorey:
Replying to ikerrg:
Replying to mainar:
Can someone upload a 64-bit patched VBoxDD.dll, please?
Replying to ikerrg: Try deleting browser cache, or another browser.
I've tried in several computers (all usin IE 7 and 8) with no success. Are you sure the file is still OK?
Try 7-zip to unzip the files. It works for me while windows fails with an error.
The download is not corrupted if downloaded using Firefox (and then opened via WinRAR, Winzip or even the old DOS pkunzip.exe). It seems a compatibility problem between the server and the IE7&8 explorers. Finally I got the file!
I m also in need of a Vista 64Bits VBoxDD.dll
or better a 2.2.1 ?
thanks in advance
follow-ups: 54 58 comment:53 by , 15 years ago
comment:54 by , 15 years ago
comment:55 by , 15 years ago
This problem existed for me to, host Win XP, guest Win XP, but only when my notebook was connected with the wireless adapter. So, when I was on LAN, and guest was on NAT, everything worked just fine. When I switch to wireless adapter (LAN disconnected), the guest on NAT would get "limited or no connectivity... bla bla" and no IP address. Installed the above patch (VBoxDD.DLL, 32bit) and seems to be working.
comment:56 by , 15 years ago
Hi,
I have this similar problem. I have installed 2.2.0 r45846 and have been battling to set up a simple 4 node network for days now and finally came across this post to put me out of my misery. My guest machines are Ubuntu 8 running on a Vista Ultimite host.
Netowrk adapters of guests set to conect to NAT I havde a Virtual Box Host only network on windows connections which seems to be doing nothing, it is given a 169 address and its properties freeze when i try and open them. A super frozen mode that task manager can't even handle. No matter what I do I cannot set static IPs (that work) and can only use DHCP which receives the same 10.0.2.15 on each VM (along with the other similar addresses mentioned in this that dont make much sense) and only allow me to connect to the internet from my hosts and occasionally ping eachother.. but they all have the same IP address so thats not too much to get excited about!
I have read through this ticket, my question is: What do i do? Do i: a- re install VirtualBox? b- use the updated DLL files? c- roll back VirtualBox to the older version? d- download something else that will fix it that i've misses? e- forget virtual machines and buy 4 real ones f- none of the above
Congratulations on your sale to Oracle, lets hope they invest heavily in VirtualBox.
Your help is much appreciated.
Stefan
comment:57 by , 15 years ago
I was having DHCP issues (XP Pro Guest on Vista Host using NAT) as well. For me, a fresh boot of the Guest while the host was connected would work fine. the problem I had was going from work to home and back with a VM that was running.
Home local network was 192.168.10.0 ... work was 192.168.1.0 ... I noticed this morning (at work) while trying to actually solve the problem instead of just rebooting the guest, that the DNS server that was registered was from the home network. Neither an ipconfig /release-renew nor using the repair feature on the windows network adapter (same thing basically) would refresh the DNS server to the new local server.
Rebooting the vm (possible just closing it and saving state then reopening???) would fix the problem ... until I get home. So I for my work around I just put in my home AND my work dns servers manually and that did the trick.
Don't know if this is a seperate issue completely than this ticket but it feels like it might be connected so i figured I'd post it in case it helped.
Joshua
comment:58 by , 15 years ago
Replying to frank:
VBoxDD.dll-64.zip The 32-bit DLL can be found here, the 64-bit DLL can be found here.
We are working on the maintenance release 2.2.2 which should be out within some days but I cannot promise any ETA as usual.
I have this same issue, I wanted to download the fiel but it keeps saying "Unexpected end of file". Is the file corrupted? How can I get it?
comment:59 by , 15 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
follow-ups: 61 62 comment:60 by , 15 years ago
Resolution: | fixed |
---|---|
Status: | closed → reopened |
I'm still having this problem after upgrading to 2.2.0, I'm using Windows x32 as Host, and Ubuntu 9.04 as the Guest. Whenever I change wireless networks (usually home vs. school) I can no longer get a connection in the guest.
follow-up: 63 comment:61 by , 15 years ago
Replying to raccoonone:
I'm still having this problem after upgrading to 2.2.0
2.2.2 is the latest.. did you try that?
follow-up: 64 comment:62 by , 15 years ago
Replying to raccoonone:
I'm still having this problem after upgrading to 2.2.0, I'm using Windows x32 as Host, and Ubuntu 9.04 as the Guest. Whenever I change wireless networks (usually home vs. school) I can no longer get a connection in the guest.
That a bit different problem, caused with lack of functionality enforcing NAT engine detect and update it's internal DHCP server state on host's adapter/address change.
comment:63 by , 15 years ago
Sorry, I meant to say 2.2.2, I upgraded to 2.2.2 and I still have to restart my virtual machine every time I switch networks.
Replying to redxii:
Replying to raccoonone:
I'm still having this problem after upgrading to 2.2.0
2.2.2 is the latest.. did you try that?
follow-up: 65 comment:64 by , 15 years ago
Is there an open bug for that? I never had this problem when I was using 2.1.4
Replying to Hachiman:
Replying to raccoonone:
I'm still having this problem after upgrading to 2.2.0, I'm using Windows x32 as Host, and Ubuntu 9.04 as the Guest. Whenever I change wireless networks (usually home vs. school) I can no longer get a connection in the guest.
That a bit different problem, caused with lack of functionality enforcing NAT engine detect and update it's internal DHCP server state on host's adapter/address change.
comment:65 by , 15 years ago
Still having the same problem, using WinXp64 as host and tinyXP rev 9 as guest, when changing networks, even after upgrading to 2.2.2.
Other times, my connection on the guest also fails, happens especially on heavy network usage (like downloading plugins for ruby rails on aptana).
comment:66 by , 15 years ago
Did you try http://www.virtualbox.org/ticket/3847 ?
You and nuno.bett are describing a different problem. This ticket should be re-closed. Start a new ticket if one with your particular issue hasn't already been reported.
comment:68 by , 15 years ago
Problem 3847 also applies to me when switching host interfaces, as VBox does not refresh guest connection, and I'll also follow that ticket.
Still haven't figured out why my guest connection fails. Nevertheless, I guess this bug can be closed, and if the same happens again, I'll open a new ticket.
comment:69 by , 15 years ago
Resolution: | → fixed |
---|---|
Status: | reopened → closed |
comment:70 by , 15 years ago
Is this issue related to http://forums.virtualbox.org/viewtopic.php?uid=31386&f=3&t=17335? Or is it a different defect?
Strange. Does it change anything when you change the network card to an E1000 type? One of these three types are probably detected by Windows XP, currently I don't remember which one.