I cannot ping using host-only network
-
- Posts: 10
- Joined: 3. Jul 2010, 06:14
- Primary OS: MS Windows Vista
- VBox Version: PUEL
- Guest OSses: ubuntu
I cannot ping using host-only network
Hi guys,
I installed VirualBox on Vista and created a guest ubuntu server on my laptop.
The network configuration is the following:
- the guest is connected to internet using a bridged network adapter
- the guest is connected to the host using an host-only adapter.
When my laptop is phisically connected to the network at office everithing seems to work,
when I disconnect the laptop from the network I expected the host-only connection to take over while it is not: it is not possible to ping the guest from the host (ping 10.10.1.101), ssh does not work but (and it seems very strange to me) http request issued from a browser in the host (http://10.10.1.101) are served by the the guest (and logged with wireshark - ping requests are not).
When I connect the laptop again to the net, the bridged connection works and I can ping, ssh and browse from host.
What could be wrong?
I installed VirualBox on Vista and created a guest ubuntu server on my laptop.
The network configuration is the following:
- the guest is connected to internet using a bridged network adapter
- the guest is connected to the host using an host-only adapter.
When my laptop is phisically connected to the network at office everithing seems to work,
when I disconnect the laptop from the network I expected the host-only connection to take over while it is not: it is not possible to ping the guest from the host (ping 10.10.1.101), ssh does not work but (and it seems very strange to me) http request issued from a browser in the host (http://10.10.1.101) are served by the the guest (and logged with wireshark - ping requests are not).
When I connect the laptop again to the net, the bridged connection works and I can ping, ssh and browse from host.
What could be wrong?
-
- Posts: 10
- Joined: 3. Jul 2010, 06:14
- Primary OS: MS Windows Vista
- VBox Version: PUEL
- Guest OSses: ubuntu
Re: I cannot ping using host-only network
is there anyone who can help on this topic?
Thanks in advance
Thanks in advance
-
- Site Moderator
- Posts: 34369
- Joined: 6. Sep 2008, 22:55
- Primary OS: Linux other
- VBox Version: OSE self-compiled
- Guest OSses: *NIX
Re: I cannot ping using host-only network
First thing that I need for you to do to disable the Bridged network connection (take out the check mark in the guest settings)
Then start the guest and see if you can ping the guest -> host and the host -> guest.
If not then I need you to post the results of (Windows) ipconfig /all & (Linux) ifconfig -a
Also run this from the host VBoxManage list -l dhcpservers
You need to be in the directory that has VBoxManage to run the command.
Then start the guest and see if you can ping the guest -> host and the host -> guest.
If not then I need you to post the results of (Windows) ipconfig /all & (Linux) ifconfig -a
Also run this from the host VBoxManage list -l dhcpservers
You need to be in the directory that has VBoxManage to run the command.
-
- Posts: 10
- Joined: 3. Jul 2010, 06:14
- Primary OS: MS Windows Vista
- VBox Version: PUEL
- Guest OSses: ubuntu
Re: I cannot ping using host-only network
Thanks Perryg,
ping does not work in both directions if I disable the bridged connections.
I'm attacching what you requested. In the meantime I had to install a second bridged connection for my wireless at home but I disabled it for the try.
the host-only network is mapped to eth3 (I was not able to set it into eth1, I don't know why).
ipconfig (vista host)
ifconfig -a (ubuntu guest)
VBoxManage.exe (vista host)
ping does not work in both directions if I disable the bridged connections.
I'm attacching what you requested. In the meantime I had to install a second bridged connection for my wireless at home but I disabled it for the try.
the host-only network is mapped to eth3 (I was not able to set it into eth1, I don't know why).
ipconfig (vista host)
Code: Select all
Windows IP Configuration
Ethernet adapter Local Area Connection 2:
Connection-specific DNS Suffix . :
Link-local IPv6 Address . . . . . : fe80::f584:f6ca:b285:167c%23
IPv4 Address. . . . . . . . . . . : 10.10.1.100
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . :
Wireless LAN adapter Wireless Network Connection:
Connection-specific DNS Suffix . :
Link-local IPv6 Address . . . . . : fe80::e9f8:5033:5e1a:6940%15
IPv4 Address. . . . . . . . . . . : 192.168.2.4
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 192.168.2.1
Ethernet adapter Local Area Connection:
Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
Tunnel adapter Local Area Connection* 6:
Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
Tunnel adapter Local Area Connection* 17:
Connection-specific DNS Suffix . :
Link-local IPv6 Address . . . . . : fe80::5efe:192.168.2.4%26
Default Gateway . . . . . . . . . :
Tunnel adapter Local Area Connection* 20:
ifconfig -a (ubuntu guest)
Code: Select all
eth3 Link encap:Ethernet HWaddr 08:00:27:aa:d0:f8
indirizzo inet:10.10.1.101 Bcast:10.10.1.255 Maschera:255.255.255.0
indirizzo inet6: fe80::a00:27ff:feaa:d0f8/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:26 errors:0 dropped:0 overruns:0 frame:0
TX packets:398 errors:0 dropped:0 overruns:0 carrier:0
collisioni:0 txqueuelen:1000
Byte RX:1945 (1.9 KB) Byte TX:32743 (32.7 KB)
Interrupt:10 Indirizzo base:0xd240
lo Link encap:Loopback locale
indirizzo inet:127.0.0.1 Bcast:10.10.1.255 Maschera:255.0.0.0
indirizzo inet6: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:10 errors:0 dropped:0 overruns:0 frame:0
TX packets:10 errors:0 dropped:0 overruns:0 carrier:0
collisioni:0 txqueuelen:0
Byte RX:648 (648.0 B) Byte TX:648 (648.0 B)
Code: Select all
Oracle VM VirtualBox Command Line Management Interface Version 3.2.6
(C) 2005-2010 Oracle Corporation
All rights reserved.
NetworkName: HostInterfaceNetworking-VirtualBox Host-Only Ethernet Adapter
IP: 192.168.56.100
NetworkMask: 255.255.255.0
lowerIPAddress: 192.168.56.101
upperIPAddress: 192.168.56.254
Enabled: No
NetworkName: HostInterfaceNetworking-VirtualBox Host-Only Ethernet Adapter #2
IP: 0.0.0.0
NetworkMask: 0.0.0.0
lowerIPAddress: 0.0.0.0
upperIPAddress: 0.0.0.0
Enabled: No
-
- Site Moderator
- Posts: 34369
- Joined: 6. Sep 2008, 22:55
- Primary OS: Linux other
- VBox Version: OSE self-compiled
- Guest OSses: *NIX
Re: I cannot ping using host-only network
Looks to me like the host-only interface is hosed.
You are trying to use an IP address that is not in the same scheme, and the second host-only adapter is more then likely causing problems.
What I would do is remove the host only adapters in the preference section of VirtualBox. Then make sure that the adapters do not show in Vista.
Reboot the host and start the VBox main program and go to preference and add a new host-only adapter.
This should get you back to a working adapter but pay close attention to the IP address scheme. They need to match in the host and the guest.
If you want to enable the DHCP server then it should just work and you will not need to configure the network address in the guests.
You are trying to use an IP address that is not in the same scheme, and the second host-only adapter is more then likely causing problems.
What I would do is remove the host only adapters in the preference section of VirtualBox. Then make sure that the adapters do not show in Vista.
Reboot the host and start the VBox main program and go to preference and add a new host-only adapter.
This should get you back to a working adapter but pay close attention to the IP address scheme. They need to match in the host and the guest.
If you want to enable the DHCP server then it should just work and you will not need to configure the network address in the guests.
-
- Posts: 5
- Joined: 7. Jul 2010, 22:28
- Primary OS: MS Windows XP
- VBox Version: PUEL
- Guest OSses: ms win XP
Re: I cannot ping using host-only network
hi here,
is my first time here and my first using VBox (i used to VMware before).
i thought the set up is like VMware but no ..
is anybody here can help me; thanks in advance
i have similar problems.
i would like to create a network beetween Window Host and VBox guest in order to share files .
Windows Host (windows Pro XP3) / VBox guest (windows Pro XP3)
internet : i use it/ i don't need it
network of company : i dont want to use when i am working with VBox .
Windows Host :
Ethernet VirtualBox Host-Only Network:
Suffixe DNS propre à la connexion :
Adresse IP. . . . . . . . . . . . : 192.168.56.1
Masque de sous-réseau . . . . . . : 255.255.255.0
Passerelle par défaut . . . . . . :
VBox guest
Carte Ethernet Connexion au reseau local :
Suffixe DNS propre à la connexion :
Adresse IP. . . . . . . . . . . . : 192.168.56.99
Masque de sous-réseau . . . . . . : 255.255.255.0
Passerelle par défaut . . . . . . :192.168.56.1
when i ping in one way or other way is the same :
Délai d'attente de la demande dépassé.
Délai d'attente de la demande dépassé.
Délai d'attente de la demande dépassé.
Délai d'attente de la demande dépassé.
thanks for your help
is my first time here and my first using VBox (i used to VMware before).
i thought the set up is like VMware but no ..
is anybody here can help me; thanks in advance
i have similar problems.
i would like to create a network beetween Window Host and VBox guest in order to share files .
Windows Host (windows Pro XP3) / VBox guest (windows Pro XP3)
internet : i use it/ i don't need it
network of company : i dont want to use when i am working with VBox .
Windows Host :
Ethernet VirtualBox Host-Only Network:
Suffixe DNS propre à la connexion :
Adresse IP. . . . . . . . . . . . : 192.168.56.1
Masque de sous-réseau . . . . . . : 255.255.255.0
Passerelle par défaut . . . . . . :
VBox guest
Carte Ethernet Connexion au reseau local :
Suffixe DNS propre à la connexion :
Adresse IP. . . . . . . . . . . . : 192.168.56.99
Masque de sous-réseau . . . . . . : 255.255.255.0
Passerelle par défaut . . . . . . :192.168.56.1
when i ping in one way or other way is the same :
Délai d'attente de la demande dépassé.
Délai d'attente de la demande dépassé.
Délai d'attente de la demande dépassé.
Délai d'attente de la demande dépassé.
thanks for your help
-
- Site Moderator
- Posts: 34369
- Joined: 6. Sep 2008, 22:55
- Primary OS: Linux other
- VBox Version: OSE self-compiled
- Guest OSses: *NIX
Re: I cannot ping using host-only network
@kelly,
Check for a firewall issue
Check for a firewall issue
-
- Posts: 10
- Joined: 3. Jul 2010, 06:14
- Primary OS: MS Windows Vista
- VBox Version: PUEL
- Guest OSses: ubuntu
Re: I cannot ping using host-only network
Thanks,
but that is strange because from the VB settings there is only one host-only adapter with 10.10.1.100 without dhcp, instead VBoxManager says there are two and the first has different ip address.
In the past I tryed to add another host-only interface but then I removed it and removed also the first one. The consequence was I was not able to add any host-only interface anymore. I did repair several times wirhout success, then I reinstall and this is the result.
Is there another way to remove the host-only adapters? (for instance from the manager?) because the second host-only adapter as I said is not visible.
but that is strange because from the VB settings there is only one host-only adapter with 10.10.1.100 without dhcp, instead VBoxManager says there are two and the first has different ip address.
In the past I tryed to add another host-only interface but then I removed it and removed also the first one. The consequence was I was not able to add any host-only interface anymore. I did repair several times wirhout success, then I reinstall and this is the result.
Is there another way to remove the host-only adapters? (for instance from the manager?) because the second host-only adapter as I said is not visible.
-
- Posts: 10
- Joined: 3. Jul 2010, 06:14
- Primary OS: MS Windows Vista
- VBox Version: PUEL
- Guest OSses: ubuntu
Re: I cannot ping using host-only network
As I expected the creation of a new host only adapter failed. Please help!
-
- Posts: 10
- Joined: 3. Jul 2010, 06:14
- Primary OS: MS Windows Vista
- VBox Version: PUEL
- Guest OSses: ubuntu
Re: I cannot ping using host-only network
... doing the creation by
VBoxManage.exe hostonlyif create
I got:
0%...FAILED
Error: Failed to create the host-only adapter. No error message available, HRESULT code: 0x80004005
VBoxManage.exe hostonlyif create
I got:
0%...FAILED
Error: Failed to create the host-only adapter. No error message available, HRESULT code: 0x80004005
-
- Site Moderator
- Posts: 34369
- Joined: 6. Sep 2008, 22:55
- Primary OS: Linux other
- VBox Version: OSE self-compiled
- Guest OSses: *NIX
Re: I cannot ping using host-only network
OK I see what is going on. I had a situation like this once. What I finally had to do was to uninstall VirtualBox, reboot Vista then install VirtualBox again. After that the Host-Only adapter came back with the proper IP range and worked as expected.
-
- Posts: 5
- Joined: 7. Jul 2010, 22:28
- Primary OS: MS Windows XP
- VBox Version: PUEL
- Guest OSses: ms win XP
Re: I cannot ping using host-only network
@ Perryg
if u say nothing, it means my configuration of network is ok no ? in all cases i did as VMweare.
i dont use the firewall bc i wrote on last post :
network of company : i dont want to use when i am working with VBox .
mean there is any connexion beetween my laptop and my company : is what i want bc iam not all the time at the same company..
Thanks
if u say nothing, it means my configuration of network is ok no ? in all cases i did as VMweare.
i dont use the firewall bc i wrote on last post :
network of company : i dont want to use when i am working with VBox .
mean there is any connexion beetween my laptop and my company : is what i want bc iam not all the time at the same company..
Thanks
-
- Site Moderator
- Posts: 34369
- Joined: 6. Sep 2008, 22:55
- Primary OS: Linux other
- VBox Version: OSE self-compiled
- Guest OSses: *NIX
Re: I cannot ping using host-only network
No I do not see a problem with your network settings except the default gateway. It is not needed and may in fact cause a problem.kelly wrote:@ Perryg
if u say nothing, it means my configuration of network is ok no ? in all cases i did as VMweare.
i dont use the firewall bc i wrote on last post :
network of company : i dont want to use when i am working with VBox .
mean there is any connexion beetween my laptop and my company : is what i want bc iam not all the time at the same company..
Thanks
Other than that you will need to help me understand what it is you are actually having a problem with if it is not that you can not talk between the host and the guest.
-
- Posts: 10
- Joined: 3. Jul 2010, 06:14
- Primary OS: MS Windows Vista
- VBox Version: PUEL
- Guest OSses: ubuntu
Re: I cannot ping using host-only network
Thanks Perryg,
I uninstalled and installed VB,
now I see the host-only adapter again but my initial problem is still there.
I cannot neither ping nor using ssh, only http is allowed!
The output of the VBoxManage.exe list -l dhcpservers is
ipconfig:
and ifconfig -a
I uninstalled and installed VB,
now I see the host-only adapter again but my initial problem is still there.
I cannot neither ping nor using ssh, only http is allowed!
The output of the VBoxManage.exe list -l dhcpservers is
Code: Select all
Oracle VM VirtualBox Command Line Management Interface Version 3.2.6
(C) 2005-2010 Oracle Corporation
All rights reserved.
NetworkName: HostInterfaceNetworking-VirtualBox Host-Only Ethernet Adapter
IP: 0.0.0.0
NetworkMask: 0.0.0.0
lowerIPAddress: 0.0.0.0
upperIPAddress: 0.0.0.0
Enabled: No
Code: Select all
Ethernet adapter Local Area Connection 2:
Connection-specific DNS Suffix . :
Link-local IPv6 Address . . . . . : fe80::e1c5:6813:b36f:56e1%31
IPv4 Address. . . . . . . . . . . : 10.10.1.100
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . :
Code: Select all
eth3 Link encap:Ethernet HWaddr 08:00:27:aa:d0:f8
indirizzo inet:10.10.1.101 Bcast:10.10.1.255 Maschera:255.255.255.0
indirizzo inet6: fe80::a00:27ff:feaa:d0f8/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:63 errors:2 dropped:0 overruns:0 frame:0
TX packets:25 errors:0 dropped:0 overruns:0 carrier:0
collisioni:0 txqueuelen:1000
Byte RX:10295 (10.2 KB) Byte TX:1816 (1.8 KB)
Interrupt:10 Indirizzo base:0xd240
lo Link encap:Loopback locale
indirizzo inet:127.0.0.1 Maschera:255.0.0.0
indirizzo inet6: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:10 errors:0 dropped:0 overruns:0 frame:0
TX packets:10 errors:0 dropped:0 overruns:0 carrier:0
collisioni:0 txqueuelen:0
Byte RX:648 (648.0 B) Byte TX:648 (648.0 B)
-
- Site Moderator
- Posts: 34369
- Joined: 6. Sep 2008, 22:55
- Primary OS: Linux other
- VBox Version: OSE self-compiled
- Guest OSses: *NIX
Re: I cannot ping using host-only network
What do you mean by this? Are you saying that you can http to the guest from the host?I cannot neither ping nor using ssh, only http is allowed!
If so then you need to look at firewall settings. Something must be blocking the ports