Unable to ping virtual boxes

Discussions related to using VirtualBox on Linux hosts.
Post Reply
jove
Posts: 5
Joined: 30. Apr 2009, 19:29
Primary OS: Ubuntu 8.10
VBox Version: OSE other
Guest OSses: CentOS 5.3

Unable to ping virtual boxes

Post by jove »

Hi

I have installed 3 sun virtual boxes on Ubuntu Ver 8.10
The 3 virtual boxes are installed CentOS 5.3.
1) All 3 Virt-boxes are pingable to the internet such www.yahoo.com -- fine.
2) But they are unable to ping to each other via IP address.
3) 3 Virt-boxes was using NIC eth0 with IP= 10.0.2.xxx
/etc/resolv.conf are 68.87.[78,69,76].xxx

4) Meanwhile, the Ubuntu box is using NIC eth1 with IP 192.168.1.xxx
and /etc/resolv.conf is using the IP as Virt-biex = 68.87.76[78,69].xxx

5) I have tried to change the IP's 192.168.1.xxx for Virt-boxes, but not able to
ping the internet addr and on each other....So i changed them back to IP 10.0.2.xxx

6) Do I miss and configuration ?

I hope you can shed the light and give me a specific instruction how to fix this issue.
Your advice is great appreciated,
Thanks,
-Jove
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Unable to ping virtual boxes

Post by Perryg »

Use bridged mode instead of NAT
jove
Posts: 5
Joined: 30. Apr 2009, 19:29
Primary OS: Ubuntu 8.10
VBox Version: OSE other
Guest OSses: CentOS 5.3

Re: Unable to ping virtual boxes

Post by jove »

Hi,

Could you instruct me how to use NAT, how to configure it ?

Thx,
jove
Posts: 5
Joined: 30. Apr 2009, 19:29
Primary OS: Ubuntu 8.10
VBox Version: OSE other
Guest OSses: CentOS 5.3

Re: Unable to ping virtual boxes

Post by jove »

Hi Perryq,

I am sorry mistypo of the previous one>

How to configure Bridge ?

Thx,
Jove
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Unable to ping virtual boxes

Post by Perryg »

Nothing really to configure. Just select it in the vbox settings and then tell the guests to use DHCP or static where you give them an address that in in the address scheme the host is in.
jove
Posts: 5
Joined: 30. Apr 2009, 19:29
Primary OS: Ubuntu 8.10
VBox Version: OSE other
Guest OSses: CentOS 5.3

Re: Unable to ping virtual boxes

Post by jove »

Hi Perryq,

I reset the bridge network, then using static IP for guest,
change IP and DNS as Host box, but unable to ping internet and each other....

Do you have any idea ?

Thx.
jove
Posts: 5
Joined: 30. Apr 2009, 19:29
Primary OS: Ubuntu 8.10
VBox Version: OSE other
Guest OSses: CentOS 5.3

Re: Unable to ping virtual boxes

Post by jove »

Hey Stefen,

There is no manual for linux ....

All I asked from Perryq, not you.

If you can not help or not knowledge on this question, don't be negative to the community.
Be generous to everyone.
legacydude
Posts: 1
Joined: 5. May 2009, 11:20
Primary OS: openSUSE
VBox Version: OSE other
Guest OSses: winxp, fedora

Re: Unable to ping virtual boxes

Post by legacydude »

suse 11.1 host / winxp guest

1. No manual scripting configuration required.
2. Set up network bridge during OS installation or add bridge interface (br0) in network settings.
3. Configure br0 IP, bind to eth0; leave eth0 unconfigured.
4. Set br0 and eth0 interfaces as "internal" in firewall settings.
5. Install VBox 2.2.2 or later for suse 11.1 (or match your distro).
6. In Vbox guest network settings, select bridge option, select br0 interface.
7. In guest OS, set guest w/unique static ip to same subnet as host, or use auto ip if dhcp server is present on your network.
8. Do not set guest's gateway ip or dns ip to point to host's ip, configure guest normally for these settings as if it is normal, standalone client.
9. You may need to add your non-root user to these groups (or similar): disk, vboxusers, usb.
10. Kiss your standalone windows box good-bye.
Post Reply