Page 1 of 1

Unable to ping virtual boxes

Posted: 30. Apr 2009, 20:20
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

Re: Unable to ping virtual boxes

Posted: 30. Apr 2009, 20:40
by Perryg
Use bridged mode instead of NAT

Re: Unable to ping virtual boxes

Posted: 1. May 2009, 01:12
by jove
Hi,

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

Thx,

Re: Unable to ping virtual boxes

Posted: 1. May 2009, 01:13
by jove
Hi Perryq,

I am sorry mistypo of the previous one>

How to configure Bridge ?

Thx,
Jove

Re: Unable to ping virtual boxes

Posted: 1. May 2009, 01:30
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.

Re: Unable to ping virtual boxes

Posted: 1. May 2009, 02:04
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.

Re: Unable to ping virtual boxes

Posted: 1. May 2009, 02:05
by stefan.becker
Dont ask this, read the User Manual.

Re: Unable to ping virtual boxes

Posted: 1. May 2009, 02:17
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.

Re: Unable to ping virtual boxes

Posted: 5. May 2009, 11:39
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.