Page 1 of 1

Work Internet / Home Internet DNS Issues on Vbox 3.1.0

Posted: 2. Dec 2009, 05:51
by BlazeToast
Hi,
I have searched thru the old posts and read the manual but I have not found a simple solution to what I would think to be a common issue.

I have VBox 3.1.0 r55467 hosted on Mac 10.6.2 running a Windows 7 client.

At work we have a setup which requires we use a certain DNS address and our computers (MacBook Pro 15" 2007 for me) are connected via ethernet cable. In order to connect to this network, in Windows 7 I need to ensure to manually set the DNS server address is manually set under Local Area Connections I have the DNS Server address for Internet Protocol Version 4. My Network Adaptor settings for VBox need to be set to Bridged Adapter and Cable Connected.

At work I use Comcast Internet over WiFi. To use the internet I home I need to login to change my Network Adaptor settings for VBox to NAT. I then need to login to Windows 7 and change my Local Area Connection settings for Internet Protocol Version 4 to Obtain DNS Server Address Automatically.

Seems to me there should be a way to set a couple profiles up where I just change one setting and not need to go through all these changes. I only need to make the changes a couple times a day so it is not that big of a deal.

Thank you in advance for your help

Re: Work Internet / Home Internet DNS Issues on Vbox 3.1.0

Posted: 2. Dec 2009, 11:38
by Hachiman
BlazeToast wrote: Seems to me there should be a way to set a couple profiles up where I just change one setting and not need to go through all these changes. I only need to make the changes a couple times a day so it is not that big of a deal.
If it would be enough to avoid manual DNS server list configuration for you, so probably you need:

Code: Select all

VBoxManage setextradata "Linux Guest"
      "VBoxInternal/Devices/pcnet/0/LUN#0/Config/UseHostResolver" 1
please see http://www.virtualbox.org/manual/UserMa ... lver_proxy for more details.

Re: Work Internet / Home Internet DNS Issues on Vbox 3.1.0

Posted: 8. Jan 2010, 16:47
by kyleb
Thanks for the pointer. That did work, but not at first.

Maybe it has to do with my guest having two interfaces, one NAT and one host-only. Anyway, I did have to shutdown my guests, and exit virtualbox, then restart everything. Then, my guest's /etc/resolv.conf had the IP of the host on the NAT interface and it seems to be working now.

BTW, that seems like a pretty long key name for the setting. How many internals are there like that? Is the "Advanced Topics" section an exhaustive list, or are there more?

Re: Work Internet / Home Internet DNS Issues on Vbox 3.1.0

Posted: 14. Jan 2010, 17:50
by Hillfire
I am running 3.1.2 on Snow Leopard with an XP 64 guest and experienced pretty much the same issue. When I unplugged the ethernet and let wireless take over, the guest had to be rebooted in order to regain network connectivity (Also same as Ticket #3487).

I issued the command above and now I can not start the VM. I get the following error:
Configuration error: Failed to get the "MAC" value
(VERR_CFGM_VALUE_NOT_FOUND)

Unknown error creating VM (VERR_CFGM_VALUE_NOT_FOUND)

Details...
Result Code: NS_ERROR_FAILURE (0x80004005)
Component: Console
Interface: IConsole

I tried setting the value back to zero but get the same error.


Aside, this host network switching (and in general using a host's DNS resolver) seems like a pretty common scenario, especially for laptop users. Maybe it should be easier to set; perhaps a simple checkbox in the Network setting config?