Guest cannot connect to network
-
- Posts: 8
- Joined: 5. Apr 2009, 19:42
- Primary OS: MS Windows XP
- VBox Version: PUEL
- Guest OSses: windows XP, Ubuntu 8.04
Guest cannot connect to network
Hello,
I've installed VirtualBox 2.1.4 using WinXP SP3 as host.
I've installed 3 guest systems: Ubuntu Server 8.04 (LAMP + Samba), Ubuntu Desktop 8.04, and Windows XP with HIF configuration.
I can make ping from host to the guests and between the guests but, if I try (from a guest) to connect to Internet or to the web interface fo router from a guest system, it fails.
I've try to change the network configuration in NAT mode and the systems work as well.
I've try (in HIF configuration) to assign static IP to the host (XP) but the result is the same.
I've turned off the firewall, I've chabged the router configuration from Routed+bridged to router only making a manual connection to Internet and sharing it without solve the problem.
Now i'm trying to reinstall virtualbox but I think that cannot help me.
Thank you for your attention.
I've installed VirtualBox 2.1.4 using WinXP SP3 as host.
I've installed 3 guest systems: Ubuntu Server 8.04 (LAMP + Samba), Ubuntu Desktop 8.04, and Windows XP with HIF configuration.
I can make ping from host to the guests and between the guests but, if I try (from a guest) to connect to Internet or to the web interface fo router from a guest system, it fails.
I've try to change the network configuration in NAT mode and the systems work as well.
I've try (in HIF configuration) to assign static IP to the host (XP) but the result is the same.
I've turned off the firewall, I've chabged the router configuration from Routed+bridged to router only making a manual connection to Internet and sharing it without solve the problem.
Now i'm trying to reinstall virtualbox but I think that cannot help me.
Thank you for your attention.
Re: Guest cannot connect to network
When using HIF compare the IP values from the Host and Guests not working, most likely your router is not passing on proper DHCP settings or not passing anything if it happens to see the mac address of the Host.
[This space is intentionally left blank]
If you can read this, you can read the VirtualBox Manual, the Forum FAQ, and the QuickClick FAQ
-=[ Search this forum with Keywords, VirtualBox solutions at you're fingertips]=-
If you can read this, you can read the VirtualBox Manual, the Forum FAQ, and the QuickClick FAQ
-=[ Search this forum with Keywords, VirtualBox solutions at you're fingertips]=-
-
- Posts: 8
- Joined: 5. Apr 2009, 19:42
- Primary OS: MS Windows XP
- VBox Version: PUEL
- Guest OSses: windows XP, Ubuntu 8.04
Re: Guest cannot connect to network
in the router i can see the mac address of the guest and i've try to set the tcp parameters manually but without results. If the problem depends by router i suppose that the guest cannot reach the Internet but it could reach the host, isn't it?
Re: Guest cannot connect to network
Yes and no.
The biggest problem with routers is a mayor misconfiguration when it comes to DNS and gateway settings, they all need to POINT at the router and the router suppose to pass DNS request on to the ISP and act as a router via its gateway function. Instead many have taken DNS settings from the ISP directly on to the PC which is obviously the wrong way and surpasses the whole purpose of the router.
When only NAT with VBox works it is obvious the router is misconfigured since NAT uses the Host, with HIF each VM is its own machine obtaining IP settings from the router while the Host probably has fixed DNS settings directly from the ISP and not the router making it obvious the Guest can reach the Host but not the internet.
ISP's are much the same to blame as often installation guides tell you to add DNS settings to the users pc's while the router should have them and no one else, a pc should be using all dhcp values set to automatic. Once this is setup and works any VBox Guest using HIF will have full Host and Internet access.
The biggest problem with routers is a mayor misconfiguration when it comes to DNS and gateway settings, they all need to POINT at the router and the router suppose to pass DNS request on to the ISP and act as a router via its gateway function. Instead many have taken DNS settings from the ISP directly on to the PC which is obviously the wrong way and surpasses the whole purpose of the router.
When only NAT with VBox works it is obvious the router is misconfigured since NAT uses the Host, with HIF each VM is its own machine obtaining IP settings from the router while the Host probably has fixed DNS settings directly from the ISP and not the router making it obvious the Guest can reach the Host but not the internet.
ISP's are much the same to blame as often installation guides tell you to add DNS settings to the users pc's while the router should have them and no one else, a pc should be using all dhcp values set to automatic. Once this is setup and works any VBox Guest using HIF will have full Host and Internet access.
[This space is intentionally left blank]
If you can read this, you can read the VirtualBox Manual, the Forum FAQ, and the QuickClick FAQ
-=[ Search this forum with Keywords, VirtualBox solutions at you're fingertips]=-
If you can read this, you can read the VirtualBox Manual, the Forum FAQ, and the QuickClick FAQ
-=[ Search this forum with Keywords, VirtualBox solutions at you're fingertips]=-
-
- Posts: 8
- Joined: 5. Apr 2009, 19:42
- Primary OS: MS Windows XP
- VBox Version: PUEL
- Guest OSses: windows XP, Ubuntu 8.04
Re: Guest cannot connect to network
I've try to set the DNS settings from automatic to use the router ip in the host machine and in the guest machine.
in host machine the nslookup doesn't work.
Now i've these settings:
router:
bridge+router: on
ip: 192.168.1.1
host
ip 192.168.1.10 (255.255.255.0)
gw: 192.168.1.1
dns: 192.168.1.1
guest (1 of 3)
ip 192.168.1.11 (255.255.255.0)
gw: 192.168.1.1
dns: 192.168.1.1
I think this configuration is correct but vm cannot see anything in the network (only other guest)
in host machine the nslookup doesn't work.
Now i've these settings:
router:
bridge+router: on
ip: 192.168.1.1
host
ip 192.168.1.10 (255.255.255.0)
gw: 192.168.1.1
dns: 192.168.1.1
guest (1 of 3)
ip 192.168.1.11 (255.255.255.0)
gw: 192.168.1.1
dns: 192.168.1.1
I think this configuration is correct but vm cannot see anything in the network (only other guest)
-
- Volunteer
- Posts: 17798
- Joined: 17. Mar 2008, 13:41
- Primary OS: Debian other
- VBox Version: PUEL
- Guest OSses: Windows XP, Windows 7, Linux
- Location: /dev/random
Re: Guest cannot connect to network
Ok, with that, can you ping all the machines by IP address? Can you also access Google on it's IP address (http://74.125.77.103)?
If that all works, you got a working network. Now the only thing you need to fix, is the DNS on the router. Check if it actually gets them from the ISP. The WAN side of the router should be on DHCP, so it gets the correct info from the ISP. Else, you can enter the DNS of your provider manually in the router itself.
If that all works, you got a working network. Now the only thing you need to fix, is the DNS on the router. Check if it actually gets them from the ISP. The WAN side of the router should be on DHCP, so it gets the correct info from the ISP. Else, you can enter the DNS of your provider manually in the router itself.
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org
Retired from this Forum since OSSO introduction.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org
Retired from this Forum since OSSO introduction.
Re: Guest cannot connect to network
Only router ON, don't use bridge.tito7400 wrote: router:
bridge+router: on
[This space is intentionally left blank]
If you can read this, you can read the VirtualBox Manual, the Forum FAQ, and the QuickClick FAQ
-=[ Search this forum with Keywords, VirtualBox solutions at you're fingertips]=-
If you can read this, you can read the VirtualBox Manual, the Forum FAQ, and the QuickClick FAQ
-=[ Search this forum with Keywords, VirtualBox solutions at you're fingertips]=-
-
- Posts: 8
- Joined: 5. Apr 2009, 19:42
- Primary OS: MS Windows XP
- VBox Version: PUEL
- Guest OSses: windows XP, Ubuntu 8.04
Re: Guest cannot connect to network
I've try but i google doesn't appear.
Turning on the guest with ubuntu server (LAMP) i can see the apache output
Turning on the guest with ubuntu server (LAMP) i can see the apache output
-
- Posts: 8
- Joined: 5. Apr 2009, 19:42
- Primary OS: MS Windows XP
- VBox Version: PUEL
- Guest OSses: windows XP, Ubuntu 8.04
Re: Guest cannot connect to network
I've changed the configuration in the router and i've set-up a manual connection on xp guest, it's works!vbox4me2 wrote:Only router ON, don't use bridge.tito7400 wrote: router:
bridge+router: on
Are this the only way? Is a problem make it in ubuntu server, there are scripts that can help me in doing this?
thank you!
-
- Posts: 8
- Joined: 5. Apr 2009, 19:42
- Primary OS: MS Windows XP
- VBox Version: PUEL
- Guest OSses: windows XP, Ubuntu 8.04
Re: Guest cannot connect to network
I'm trying with 2 interface on guest:
the first in hif and the second one in nat
is possible make this?
actually i can see Internet but the guest isn't reachable from host
the first in hif and the second one in nat
is possible make this?
actually i can see Internet but the guest isn't reachable from host
-
- Volunteer
- Posts: 17798
- Joined: 17. Mar 2008, 13:41
- Primary OS: Debian other
- VBox Version: PUEL
- Guest OSses: Windows XP, Windows 7, Linux
- Location: /dev/random
Re: Guest cannot connect to network
If you want a pure Host <> Guest connection, please wait a few days, as VB 2.2.0 will be released soon. Or you can already use the Beta and use Host-Only now. It's so strange that people have connection with the internet over HIF, can access other network machines, but can't access the Host. Are you sure there is no firewall on the Host preventing access? By default, the Windows firewall blocks ICMP Ping and file sharing.
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org
Retired from this Forum since OSSO introduction.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org
Retired from this Forum since OSSO introduction.
-
- Posts: 8
- Joined: 5. Apr 2009, 19:42
- Primary OS: MS Windows XP
- VBox Version: PUEL
- Guest OSses: windows XP, Ubuntu 8.04
Re: Guest cannot connect to network
The firewall is turned off. I didn't understand why isn't possible the configuraton that i need
-
- Volunteer
- Posts: 17798
- Joined: 17. Mar 2008, 13:41
- Primary OS: Debian other
- VBox Version: PUEL
- Guest OSses: Windows XP, Windows 7, Linux
- Location: /dev/random
Re: Guest cannot connect to network
It is possible. I find it just as strange as to why it doesn't work. It does on my machine. Really weird. Please wait for 2.2.
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org
Retired from this Forum since OSSO introduction.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org
Retired from this Forum since OSSO introduction.
Re: Guest cannot connect to network
I have the same problem with version 2.2.0
After getting the adapter (also with problems, which have been solved by new installation explained in http://forums.virtualbox.org/viewtopic.php?f=6&t=16202) I'm able to reach the host from the guest system, but nothing else behind the host. Neither the router nor the internet is reachable
I'm working with static IP adresses:
Router (Fritzbox 7170) 192.186.1.1
Host (Vista Business 32Bit) 192.168.1.10 GW 192.168.1.1 DNS 192.168.1.1
Guest (Ubuntu) 192.168.1.12 GW 192.168.1.1 DNS 192.168.1.1
Additionally there is already a bridge enabled on the host, which connects the wireless lan adapter with my local lan adapter. I've used the brigde (MAC Bridge Miniport) as adapter in the network configuration of VirtualBox. I think that's the correct way.
Or perhaps is there a possibility to fall back to the old versions which worked with manually added network interfaces. This way worked without any problems for me. But I don't think, that it's easy to change the guest-settings back to the old version.
After getting the adapter (also with problems, which have been solved by new installation explained in http://forums.virtualbox.org/viewtopic.php?f=6&t=16202) I'm able to reach the host from the guest system, but nothing else behind the host. Neither the router nor the internet is reachable
I'm working with static IP adresses:
Router (Fritzbox 7170) 192.186.1.1
Host (Vista Business 32Bit) 192.168.1.10 GW 192.168.1.1 DNS 192.168.1.1
Guest (Ubuntu) 192.168.1.12 GW 192.168.1.1 DNS 192.168.1.1
Additionally there is already a bridge enabled on the host, which connects the wireless lan adapter with my local lan adapter. I've used the brigde (MAC Bridge Miniport) as adapter in the network configuration of VirtualBox. I think that's the correct way.
Or perhaps is there a possibility to fall back to the old versions which worked with manually added network interfaces. This way worked without any problems for me. But I don't think, that it's easy to change the guest-settings back to the old version.
Re: Guest cannot connect to network
You sure you did not select "Host only"? can the Host reach the router? if the Host can and the Guest can't, the Guest might have a gateway problem since you are using 2 nics the Guest (default)gateway could be pointing to the wrong interface.
If you are mixing 2 different network interfaces you need to differenciate them with different subnets and add a route from one to the other.
Ea.:
Interface1, Host only (Host and Guest see each other)
Interface2, Guest on NAT (Guest should be able to internet)
Interface1, 192.168.1.x
Interface2, 192.168.2.x
When Interface2 is down make routing active by changing the default gateway to Interface1.
When Interface2 is up change the default gateway back to Interface2.
Note: for each interface you have a gateway, but this is not the same as a default gateway, this can be different when more then 1 interface is active and can only contain 1 entry (unless metric values are used, see wiki about routing).
If you are mixing 2 different network interfaces you need to differenciate them with different subnets and add a route from one to the other.
Ea.:
Interface1, Host only (Host and Guest see each other)
Interface2, Guest on NAT (Guest should be able to internet)
Interface1, 192.168.1.x
Interface2, 192.168.2.x
When Interface2 is down make routing active by changing the default gateway to Interface1.
When Interface2 is up change the default gateway back to Interface2.
Note: for each interface you have a gateway, but this is not the same as a default gateway, this can be different when more then 1 interface is active and can only contain 1 entry (unless metric values are used, see wiki about routing).
[This space is intentionally left blank]
If you can read this, you can read the VirtualBox Manual, the Forum FAQ, and the QuickClick FAQ
-=[ Search this forum with Keywords, VirtualBox solutions at you're fingertips]=-
If you can read this, you can read the VirtualBox Manual, the Forum FAQ, and the QuickClick FAQ
-=[ Search this forum with Keywords, VirtualBox solutions at you're fingertips]=-