Solved

network between multiple VirtualBox machines for my Mac

Posted on 2013-01-23
19
664 Views
Last Modified: 2013-02-10
Hello
how can I connect the internet to the client machine in VM?
I am trying out to connect between two machines. the fedora  virtual machine which is the server and the ubuntu virtual machine which is the client.
the server has two adapters one is NAT and the another is internet network.
the client has one adapter that is internet network. Both has the same name of internet network in the adapter.

I am using Mac host mashine
Mac Ip 10.0.1.39

Fiest, Fedora virtual machine is connecting to the internet by using NAT:
ip 10.0.2.15/24
route 10.0.2.2
DNS 10.0.1.1
and in anther adapter using internet network has
ip 10.10.10.110/24
route 10.0.2.15
DNS 10.0.1.1

Ubuntu virtual machine
in adapter using internet network has
ip 10.10.10.112/24
route 10.10.10.110
DNS 10.0.1.1

it is pining between each virtual machines. fedora can connect to the internet but Ubuntu doesn't connect to the internet.
Can anyone help me out here?
how can I connect ubuntu as a client to the internet through using fedora as a server?
Thanks
0
Comment
Question by:PCANW
  • 10
  • 8
19 Comments
 
LVL 118
ID: 38810345
use Bridged Networking Mode for ALL VMs.
0
 
LVL 1

Author Comment

by:PCANW
ID: 38810420
I changed that and lost the internet on fedora VM.  fedora got a new ip 10.0.1.29 but doesn't connect to the internet :(
0
 
LVL 118
ID: 38810464
IF Fedora got a new IP Address, that was from your DHCP server on you main LAN.

can you ping 158.152.1.222 ?
0
 
LVL 1

Author Comment

by:PCANW
ID: 38810490
No I can't ping from fedora to that ip address. yes i know it got the ip address from DHCP. here I want to use fedora as server and gives anther VM internet....
0
 
LVL 118
ID: 38810576
how was the fedora VM accessing the internet before?

do you use different IP Address and default gateway, than DHCP server gives out?
0
 
LVL 1

Author Comment

by:PCANW
ID: 38810654
fedora accessed the internet when it used NAT adapter. no it is not different because it got it automatic DHCP.
0
 
LVL 118
ID: 38810703
if it was using NAT it would received an IP Address DHCP from the NAT services, which then uses the Host networking to reach the internet.

Does the Host computer receive it's IP address from your LAN DHCP server, or does it use different IP address details than your DHCP server on your LAN
0
 
LVL 1

Author Comment

by:PCANW
ID: 38810801
the host computer connects and receive the ip address from a wireless access point  (WLAN). it doesn't use different ip address. on Bridged Networking Mode used Wi-Fi.
0
 
LVL 118
ID: 38810833
so the IP Address received by the Fedora PC, is in the same sub network, as the host, when using Bridged Mode?
0
Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

 
LVL 1

Author Comment

by:PCANW
ID: 38810892
yes the same sub network as the host...
0
 
LVL 1

Author Comment

by:PCANW
ID: 38810905
Do i have to use USB Wireless adapters/ card for Bridged Mode?
0
 
LVL 1

Author Comment

by:PCANW
ID: 38810950
I meant different USB Wireless adapters/ card for Bridged
0
 
LVL 118

Accepted Solution

by:
Andrew Hancock (VMware vExpert / EE MVE) earned 500 total points
ID: 38811291
Now, I hate to have to mention this, but it would appear that WiFi devices behave different with the desktop hypervisors Virtualbox and VMware, and behave differently to fixed LAN cards, and cause issues. I suspect this could be the issue with your Bridged Mode.

When in Bridged Mode, the VM Network Interface should obtain exactly the same network information as the host, if the host works on the internet, so should the VM, it has the same mask, default gateway and DNS settings from the same DHCP/DNS server. The only difference is it has a different IP Address - unless this is restricted.

if this is true, bridging is not working correctly.
0
 
LVL 1

Author Comment

by:PCANW
ID: 38811353
first, I really appreciate that!! thanks! that's true. now what should i do?
0
 
LVL 118
ID: 38811519
if you are using a WiFI device this behaviour is to be expected.
0
 
LVL 1

Author Comment

by:PCANW
ID: 38872108
Hello
NowI have extra a wireless card for VirtualBox.  I changed the ip addresses I have some problems and I have mansion here
On VirtualBox, there is 2 OS. One is a fedora server and another is an Ubuntu client.
Fedora has 2 NIC one is external wireless, another is as Ethernet which is internal: adapter to internal network and Promiscuous mode allow all  
From fedora: When I ping to the client, it is pinging but when I ping to yahoo.com it don’t ping shows me “Destination Host Unreachable”
However when I disable the internal card, it is pinging to yahoo.com

I changed the file sysctl.conf as net.ipv4.ip_forward=1
# iptables -A FORWARD -i eth1 -j ACCEPT
# iptables -A FORWARD -o eth1 -j ACCEPT

Fedora
External ip 10.0.1.30/24
DNS & Getway 10.0.1.1
Internal ip 192.168.1.1/24
Getway 10.0.1.30
Clinet 192.168.1.2/24 getway 192.168.1.2
Please any idea.
0
 
LVL 1

Author Comment

by:PCANW
ID: 38872594
I've requested that this question be deleted for the following reason:

I wanna write the same question and make it more clear because no one responded
0
 
LVL 118
ID: 38872595
0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Centos 7 User to Start Apache, MariaDB, LDAP 5 30
Convert VMWare to Hyper-V 8 67
is my large folder zipped corrupted 4 51
different settings in vcenter 4 25
Fine Tune your automatic Updates for Ubuntu / Debian
When rebooting a vCenters 6.0 and try to connect using vSphere Client we get this issue "Invalid URL: The hostname could not parsed." When we get this error we need to do some changes in the vCenter advanced settings to fix the issue.
Teach the user how to configure vSphere clusters to support the VMware FT feature Open vSphere Web Client: Verify vSphere HA is enabled: Verify netowrking for vMotion and FT Logging is in place or create it: Turn On FT for a virtual machine: Verify …
This video shows you how easy it is to boot from ISO images for virtual machines with the ISO images stored on a local datastore on the ESXi host.

861 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

24 Experts available now in Live!

Get 1:1 Help Now