VirtualBox

Opened 15 years ago

Closed 15 years ago

Last modified 14 years ago

#3692 closed defect (fixed)

nameserver problems with DHCP on gentoo -> Fixed in svn

Reported by: Artyom Sarukhanov Owned by:
Component: network/NAT Version: VirtualBox 2.2.0
Keywords: gentoo dhcp dns Cc:
Guest type: Linux Host type: Windows

Description

With new VirtualBox 2.2.0 there is problem with nameservers on Gentoo guest and Windows XP host.

For my guest Gentoo system I can't become right nameserver via DHCP. I'm using NAT for network service.

So when I'm trying to become DNS servers IP addresses via DHCP in /etc/resolv.conf I see this: nameserver 104.10.146.9 nameserver 0.0.0.0

For example, on CentOS guest on the same host machine everything works fine with DHCP: nameserver 192.168.0.1 nameserver 79.171.*.*

Attachments (2)

Gentoo-2009-04-10-12-46-08.log (42.5 KB ) - added by Artyom Sarukhanov 15 years ago.
Gentoo-2009-04-29-11-04-56.log (41.0 KB ) - added by Artyom Sarukhanov 15 years ago.

Download all attachments as: .zip

Change History (28)

comment:1 by vasily Levchenko, 15 years ago

thank you for reporting. Could you please attach the Log file

As workaround you can try to enable DNSProxy

#VBoxManage setextradata "Linux Guest" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/DNSProxy" 1   

I'll invetigate an issue.

by Artyom Sarukhanov, 15 years ago

comment:2 by Artyom Sarukhanov, 15 years ago

thanks for help.

which parameters i must replace in this command with my own settings (of course i replace "Linux Guest" with my VM name)?

i ran this command, but now when i'm trying to boot this VM i become this error (this is cyrillic):

Код ошибки: (Error Code)
E_FAIL (0x80004005)
Компонент: (Component)
Console
Интерфейс: (Interface)
IConsole {9511bc54-15ee-4ddf-808e-472aba03809c}

i forgot to write: i'm using 2 Intel PRO/1000 MT Desktop as nics and configured them in bonding.

comment:3 by Artyom Sarukhanov, 15 years ago

wow, i can't edit my own message?

i tried to use DHCP with standalone interfaces (eth0, eth1), but couldn't become DNS IPs too.

comment:4 by Frank Mehnert, 15 years ago

Resolution: duplicate
Status: newclosed

This is a duplicate of #3655.

comment:5 by Artyom Sarukhanov, 15 years ago

how it can be duplicate? dhcp behind NAT works well by me with all my guest Linux/BSD hosts. and in Gentoo it works also well, only the problem with nameservers.

i think those problems absolutelly different.

comment:6 by Frank Mehnert, 15 years ago

I'm still quite sure that this is a duplicate as the problem actually is nameserver-related. I hope we can post an updated Windows binary within the next days (still takes some time), then you could check if the update solves your problem.

comment:7 by Artyom Sarukhanov, 15 years ago

i've tried 2.2.2 release, but this problem is still exist.

i repeat once again: dhcp is works on all my guest hosts via NAT and they recive right DNS servers addresses, but gentoo guest host just receive IP-address and can't receive right DNS servers IP's.

comment:8 by Frank Mehnert, 15 years ago

tyoma53, to make sure: your Gentoo guest does not receive any DNS server IPs? Please attach a VBox.log file of your Gentoo VM session.

by Artyom Sarukhanov, 15 years ago

comment:9 by Artyom Sarukhanov, 15 years ago

so i add a new log file.

i don't know what DHCP-client becomes about DNS, but resolv.conf looks so:

search nameserver 120.91.18.8 nameserver 0.0.0.0

my DNS servers have absolute different ip's.

comment:10 by dflogeras, 15 years ago

I can confirm this one as well. The problem for me began in 2.2.0. Among 4 different guests, the Gentoo guest is the only one exhibiting this behaviour. It correctly gets an IP from the DHCP server (that is within the correct IP range), but the DNS being pushed to it is incorrect. Seemingly the first DNS address is just a random IP (after restarting networking it changes), and the second is always 0.0.0.0.

This problem persists with 2.2.2 release. I suggest re-opening the bug

comment:11 by dflogeras, 15 years ago

For what it's worth, I'm running dhcpcd 4.0.7

comment:12 by dflogeras, 15 years ago

Also, my host machine is Gentoo as well, not Windows like tyoma53.

in reply to:  11 ; comment:13 by vasily Levchenko, 15 years ago

Replying to dflogeras:

For what it's worth, I'm running dhcpcd 4.0.7

Could you please give me some information about Gentoo your distribution source? I can't reproduce it by loading Gentoo from "install-x86-minimal-2008.0.iso" downloaded from Gentoo. Here dhcpcd doesn't print any version or I just don't know how to enforce it to do it. Would you mind send me your hosts resolv.conf at [vasily [dot] levchenko [at] Sun [dot] COM]. And as the last please attach your log file to the defect.

comment:14 by Frank Mehnert, 15 years ago

Resolution: duplicate
Status: closedreopened

in reply to:  13 comment:15 by nvinson, 15 years ago

Replying to Hachiman:

Replying to dflogeras:

For what it's worth, I'm running dhcpcd 4.0.7

Could you please give me some information about Gentoo your distribution source? I can't reproduce it by loading Gentoo from "install-x86-minimal-2008.0.iso" downloaded from Gentoo. Here dhcpcd doesn't print any version or I just don't know how to enforce it to do it. Would you mind send me your hosts resolv.conf at [vasily [dot] levchenko [at] Sun [dot] COM]. And as the last please attach your log file to the defect.

Hachiman: the install disks are somewhat dated (even the 2008.0 one), so it's very likely that the install disk is using an older version of dhcpcd. In fact, the "install-amd64-minimal-2008.0.iso" uses dhcpcd-3.1.5.

I've seen the same issue using dhcpcd-4.0.7 and dhcpcd-4.0.8; reverting to dhcpcd-3.2.3 seems to be an appropriate workaround for this problem.

To get the version number from dhcpcd run the command: dhcpcd --version

comment:16 by Artyom Sarukhanov, 15 years ago

yap, i've downgraded dhcpcd to version 3.2.3 and everything now works fine. so i think we can't close this ticket, 'cause it's gentoo dhcpcd-4.0.x problem.

a lot of thanks to everybody who helps me and sorry for stealing your time.

comment:17 by Frank Mehnert, 15 years ago

I would like to keep this ticket open for some time. The question is if this Gentoo DHCP client has a bug or if it does something different which is legal but not (yet) supported by the VBox built-in DHCP server. Does it work reliably on real hardware?

comment:18 by Artyom Sarukhanov, 15 years ago

i don't know. we use static ips on real hardware. i'll try to test it somewhere.

comment:19 by dflogeras, 15 years ago

I have several gentoo machines running DHCP on a wide variety of DHCP servers (from IPCop firewall, and various router devices). My main laptop has been used in hotels/airports all over, and has never exhibited an issue. That's not to say it still might not be a dhcpcd bug, but I can vouch that it works well normally.

This is the implementation that Gentoo uses by default, if you need to contact its author. http://roy.marples.name/projects/dhcpcd

comment:20 by Artyom Sarukhanov, 15 years ago

so we can surelly say that this bug occurs only on VB gentoo guests hosts? if it so, i can send link to this ticket to dhcpcd developer.

comment:21 by MarcoMolteni, 15 years ago

I can confirm the same problem with gentoo as guest and the standard dhcpcd 4.x that comes with gentoo. As I workaround I deinstalled dhcpcd (emerge --unmerge dhcpcd) and installed dhcp (emerge dhcp). Now resolv.conf gets populated correctly.

comment:22 by vasily Levchenko, 15 years ago

Summary: nameserver problems with DHCP on gentoonameserver problems with DHCP on gentoo -> Fixed in svn

comment:23 by dflogeras, 15 years ago

Thanks!

Will it be making the next release? Do you have an approximate timeframe?

in reply to:  23 comment:24 by vasily Levchenko, 15 years ago

Replying to dflogeras:

Thanks!

Will it be making the next release? Do you have an approximate timeframe?

Yes, it will be in next release. It will be released in month or about, can't give more sharp date at the moment.

comment:25 by Frank Mehnert, 15 years ago

Resolution: fixed
Status: reopenedclosed

comment:26 by dflogeras, 15 years ago

Works for me after updating to 2.2.4 (binary version, r47978)

Thanks again!

Note: See TracTickets for help on using tickets.

© 2023 Oracle
ContactPrivacy policyTerms of Use