Bridge network from OS X to CentOS and give CentOS

Discussions about using Linux guests in VirtualBox.
Post Reply
ericovk
Posts: 8
Joined: 4. Apr 2012, 11:53
Primary OS: Mac OS X other
VBox Version: OSE Debian
Guest OSses: CentOS 6.8 and 7.0

Bridge network from OS X to CentOS and give CentOS

Post by ericovk »

I would like to install DirectAdmin on CentOS. Therefore CentOS needs to use the external ip directly (not through a router).

The OS X host is working fine with the static external ip. But when I try to bridge the IP to CentOS, CentOS gives me a message that the eternal IP is already in use (by OS X of course). How do I set this up?

edit:
When I put Virtualbox's network in Bridged Adapter and create a bridge inside CentOS. The IP also conflicts with the IP of OSX. Now I get the "Error, some other host already uses address ..." on the br0 bridge device in stead of the eth0 device.
Attachments
Error, some other host already uses address ...
Error, some other host already uses address ...
Screen Shot 2014-01-17 at 3.10.50 PM.png (9.02 KiB) Viewed 1222 times
Virtualbox's network in Bridged Adapter
Virtualbox's network in Bridged Adapter
Screen Shot 2014-01-16 at 17.25.03.png (89.66 KiB) Viewed 1238 times
noteirak
Site Moderator
Posts: 5231
Joined: 13. Jan 2012, 11:14
Primary OS: Debian other
VBox Version: OSE Debian
Guest OSses: Debian, Win 2k8, Win 7
Contact:

Re: Bridge network from OS X to CentOS and give CentOS

Post by noteirak »

If you are trying to use the same IP as the host, that won't work. Bridging only means you will be using the same physical interface, it doesn't mean you'll be using the same IP.
Virtualbox doesn't deal with IP but with hardware.

If you want to share your host IP, you need to go with appropriate options - I won't go in any detail as this is not in the scope of Virtualbox:
- Use NAT network mode
- Use Host-Only + configure routing & NAT on your host.
Hyperbox - Virtual Infrastructure Manager - https://apps.kamax.lu/hyperbox/
Manage your VirtualBox infrastructure the free way!
Post Reply