Connecting Host and Guest in VirtualBox

Discussions related to using VirtualBox on Windows hosts.
Post Reply
14gautam
Posts: 6
Joined: 14. May 2009, 19:08
Primary OS: MS Windows Vista
VBox Version: OSE other
Guest OSses: XP, Fedora, Red Hat, Vista, Server 2003, Ubuntu

Connecting Host and Guest in VirtualBox

Post by 14gautam »

Hello everybody!

I am using virtualbox and I would like to connect the host and guest operating systems. That is, assign IP addresses to both them and be able to ping the guest from the host as well as ping the host from the guest.

Both my guest and host operating systems are Windows XP. And my host uses dynamic IP addresses

Thank you.
14gautam
Posts: 6
Joined: 14. May 2009, 19:08
Primary OS: MS Windows Vista
VBox Version: OSE other
Guest OSses: XP, Fedora, Red Hat, Vista, Server 2003, Ubuntu

Re: Connecting Host and Guest in VirtualBox

Post by 14gautam »

does bridged mode mean "bridged adapter" in the network tab of the guest?
I tried the bridged adapter, it is not working.
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Connecting Host and Guest in VirtualBox

Post by Perryg »

It is possible that the drivers were not loaded properly please reinstall VBox by right clicking the install icon and the select (run as...Admin). Select repair. Reboot after and then see if bridged will work for you. Make sure that your Network adapter shows up in the network settings.
14gautam
Posts: 6
Joined: 14. May 2009, 19:08
Primary OS: MS Windows Vista
VBox Version: OSE other
Guest OSses: XP, Fedora, Red Hat, Vista, Server 2003, Ubuntu

Re: Connecting Host and Guest in VirtualBox

Post by 14gautam »

I repiared virtualbox again but there is no change.

I have uploaded the setting and the problem here.
http://www.flickr.com/photos/34513745@N04/3531842079/ - Settings
http://www.flickr.com/photos/34513745@N ... 8/sizes/l/ - Problem

Please tell me if I am doing anything wrong. And in fact after changing the setting to Bridged Adapter, I am not even able to access the internet in the guest. When it was NAT, this was possible.
Can anyone actually explain the entire process step by step?

Thank you.
14gautam
Posts: 6
Joined: 14. May 2009, 19:08
Primary OS: MS Windows Vista
VBox Version: OSE other
Guest OSses: XP, Fedora, Red Hat, Vista, Server 2003, Ubuntu

Re: Connecting Host and Guest in VirtualBox

Post by 14gautam »

I changed the firewall setting in my guest machine and now I am able to ping the guest from the host.

However now I am not able to ping the host from the guest and I am not able to connect to the internet.
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Re: Connecting Host and Guest in VirtualBox

Post by Sasquatch »

With Bridged, your VM will be a part of the network. So if you want to access the internet from the VM, set the IP configuration similar to the Host. If it uses DHCP, then use DHCP on the Guest too. If it uses static addresses, set a static address on the Guest too.

When some kind of connection fails for Host <> Guest communication, try Host Only (check the manual) and set a second NIC to NAT.
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
14gautam
Posts: 6
Joined: 14. May 2009, 19:08
Primary OS: MS Windows Vista
VBox Version: OSE other
Guest OSses: XP, Fedora, Red Hat, Vista, Server 2003, Ubuntu

Re: Connecting Host and Guest in VirtualBox

Post by 14gautam »

Thanks. Now I am able to connect one XP VM to another XP VM.

I was planning to now extend this, by connecting one XP VM to a Fedora VM. But Fedora is not able to obtain a IP for the connection. Are there any extra steps to follow in Linux?
Post Reply