VirtualBox Windows Vista – Host Network Bridge and Tap
This entire post is no longer applicable to the most recent version of VirtualBox. Here is a more recent post.
VirtualBox is well equipped for a Windows environment. Most of its features have a mechanism for automatic installation and setup. To get your guest OS, in Windows Vista, to have a real IP address from your router you first need a network bridge and tap. Open the VirtualBox manager:
Then select a guest OS and open its settings. Then click the network tab:
Then click the add network tap button:
It doesn’t matter what the name is
Then adjust your guest OS networking adapter accordingly.
Now open your Windows Vista network configurations manager:
This screenshot is what your network configurations should be after everything is done. To achieve this simply select both the VirtualBox tap, that was previously created, and bridge it to your LAN connection. Select both by click on each adapter while pressing the shift key. Then right click on either of the two highlighted icons and select “bridge”. This will automatically create a bridge between the tap and your real host networking adapter. Wham bam, now you can select a real static IP in your VirtualBox guest OS on a Windows Vista system
Update (12/4/2009); At the top of this post I say that the information here is outdated. You can view the post listed above if you want, but here are the pertinent screenshots also:
Here is a screen from Windows Vista. Go to the network tab of the virtual machine settings:
Then select the attach to drop down menu:
Then change the attach to, drop down menu, to bridged adapter:






February 29, 2008 - 9:53 am
Nice, thanks!
March 15, 2008 - 5:48 pm
I do not understand, why your screenshot shows the host interface as “unplugged”. It should be “enabled, bridged”, shouldn’t it ?
March 15, 2008 - 11:15 pm
Because the Guest wasn’t running at the time.
March 17, 2008 - 1:19 am
i think this is better than vm ware and virtual pc, virtual pc dont support usb device and vm ware not sure if does share folder or disk of the host and this virtual box seem to support both
April 1, 2008 - 3:57 pm
What if I am not connected to a network and just want to access the virtual box from my host os?
April 2, 2008 - 5:02 am
Then you can do port forwarding from the host OS. You will be able to access the guest via the host port that you forward to the guest. For instance these are the VBoxManage commands.
VBoxManage setextradata name_of_vm "VBoxInternal/Devices/pcnet/0/LUN#0/Config/ssh/HostPort" 2222
VBoxManage setextradata name_of_vm "VBoxInternal/Devices/pcnet/0/LUN#0/Config/ssh/GuestPort" 22
VBoxManage setextradata name_of_vm "VBoxInternal/Devices/pcnet/0/LUN#0/Config/ssh/Protocol" TCP
June 6, 2008 - 10:58 am
The “Virtual Host Interface 1″ shows up in the “LAN or High-Speed Internet” section. When I select both it and my “Local Area Connection” the option “Bridge Connections” is grayed out.
I can’t seem to find any way to tell Vista to bridge the two.
June 10, 2008 - 7:24 pm
Nice, indeed. Thanks very much.
June 16, 2008 - 2:25 pm
Has anybody had luck doing this with version 1.6.0. It doesn’t appear to work any longer. Nat with DHCP is the only thing I can seem to get to work and that won’t work for a hosted server.
Host Windows Vista Ultimate Guest Win Server 2008.
If you’ve got it to work what have you done different from this totorial.
July 3, 2008 - 1:25 am
I can’t get Host/Internal Interface Working.
My Main Machine is Vista
My Guest Machine is Windows XP
I have create bridge on Windows Vista Between Local Area Network and VirtualBox Host Interface 1.
When XP/Guest Machine Start the network card can not get IP Address.
Any one encounter the same problem?
VirtualBox v1.6.2
July 6, 2008 - 5:58 pm
Thanks, figuring this out was driving me nuts before I found your guide.
August 11, 2008 - 4:30 pm
What if I my host has two network adapters on two different networks. Now when I go to create my VM, I want it to also appear on both networks. With the bridging concept I can’t map VM-A to Host-A and VM-B to Host-B or can I. For some reason they all try to work off one bridge. Any suggestions on how to achieve this?
August 24, 2008 - 1:51 pm
There will be no need to bridge it with both connections. Inside your VM you will have to create a virtual network device, then your main network device will be able to grab an IP as well as your virtual network device. You can install VirtualBox in your virtual machine as it is capable of creating virtual devices (easily in Windows, but in Linux you’ll have to edit your /etc/network/networking file using bridge-utils and uml-utilities)
September 5, 2008 - 1:05 pm
I have a vista as host and redhat as guest. I couldn’t ping from redhat and then I read the virutalbox docs that PING is restricted for NAT connections. I setup the “Host Interface” connection and assigned a static IP and I can ping out to IP address like this one 74.125.45.147 (google.com). But now from FireFox in guest OS I cannot browse, its working if I punch in the IP address of google.com, but if I use domain names it doesn’t work.
Any help?
September 5, 2008 - 9:52 pm
Your guest OS needs DNS configuring. Sometimes virtualbox doesn’t provide proper dns settings to windows. Just enter them manually. Your router will have proper dns settings therefore configure your guest OS to look at the router (192.168.0.1).
September 8, 2008 - 2:12 am
Excellent guide. My only problem was, I think, with IPV6. I have a Vista host and Windows 2003 Server guest. When I had IPV6 enabled the bridged connection failed. All I did was disable IPV6 on all related interfaces and it now works.
Thanks for the help
September 10, 2008 - 9:39 am
hi,
i need to test some softwares which is server client based.So i have two guest with me now.One windows 2003 server and a windows xp.i am able to get internet connection in both guest pc.my problem is i need to connect the two guest os actually.but when checked the lan ip,both guest uses the same ip.how can i connect both guest os together?i dont need internet for both.Just need to have netwrok with the guest 2003 with other guest xp.pls help me…
September 10, 2008 - 1:12 pm
You need two separate taps for each guest os. Is your host Linux or Windows? Depending on your host os tap configuration is different. Then with separate taps assigned to each guest os, you can configure a separate ip.
You need a separate ip for each guest os to communicate. Then you can do networking just as if the machines were real and distinct.
September 23, 2008 - 4:36 am
Tried to get frostwire to work on Windows XP host with opensuse guest. Port forwarding was failing, but I followed these instructions and was able to get IP assigned by my LAN’s DHCP server. Then, I just port forwarded from my router to my openSUSE’s local 192.x.x.x. IP address and presto – frostwire doesn’t complain about firewall anymore.
October 14, 2008 - 1:02 pm
Oh THANKS ALOT
Is this the only article on the internet discussing this topic?
November 7, 2008 - 4:23 pm
WinXP Pro host on a domain, WinXP guest OS. Trying to access LAN from guest. Created a network tap, (Does everyone get the “This software has not passed WinXP compatability testint when installing the tab?) See it in the host network connections, but when I select both and right click, all the options are greyed out, including bridge connections. Made sure domain didn’t have a group policy prohibiting bridging (it does not), so I’m stumped. Rebooted, etc etc – nothing lets me bridge the two adapters – it’s always greyed out.
December 8, 2008 - 7:32 pm
Lloyd, do you have the Windows Firewall enabled? AFAICT you cannot bridge connections that are protected by Windows Firewall. I don’t know why this should be, but it’s what the MS docs say: http://technet.microsoft.com/en-us/library/cc783728.aspx
December 10, 2008 - 7:43 pm
Hi on host i am running windows xp and guest is fedora.
I have done all above settings and i have given a static ip to host same in bridge and a diff static ip with same dsn, gateway, subnet to guest. but i cant ping guest machine from host and vise versa.
note that i am not yet connected to LAN
Please help me
January 13, 2009 - 5:53 am
Hey, your images url seems to be invalid.
They don’t exists in the uri its given.
Do plz update the path to the screenshot pics!!
January 24, 2009 - 10:50 pm
Is there no longer the ability to add network taps in VirtualBox? I do not have this ability either.
January 28, 2009 - 2:37 pm
Hello, I have a problem.
Install a virtual machine with Virtual Box.
Host (Windows Vista, Home E) “LAPTOP”
- Virtual (Windows XP)
I connect through a router perfect all machines on the network between them are even virtual. Correctly assigned IP addresses so good.
When the Laptop has no network – no cable connection or wireless connection no. ” I made it impossible to connect the laptop and the virtual machine.
I saw a post that creates a Virtual Box Host Interface “networking”, but I was not active this option. I think it could be permissions, the version of VirtualBox.
Download the latest version VBox but the problem remains.
February 6, 2009 - 7:33 am
same problem i don’t have the option to add network taps in VirtualBox.
February 25, 2009 - 10:30 am
for the cable problem, install ms loopback with add new hardware, manual installation, network, microsoft manufactured, ms loopback and bind it in virtualbox and all return to work.
ciao Stefano
March 12, 2009 - 7:05 pm
I saw a post that creates a Virtual Box Host Interface “networking”, but I was not active this option. I think it could be permissions, the version of VirtualBox.
Please do help…
May 20, 2009 - 11:34 pm
Screenshots?
May 22, 2009 - 6:39 am
Sorry everyone, I crashed my server, lost the screenshots, and I don’t have a Windows Vista machine anymore to make new ones.
May 28, 2009 - 1:46 pm
hi ,got a virtual box mounted on ma pc screen,and want to have it conected through network or ip adress to our system from my department.How do i go about it ?what do i need and what do i do ?help
May 30, 2009 - 3:06 pm
wow phucking cool
July 16, 2009 - 12:40 pm
The screenshots are missing for article. Could you send me the article with the screenshots?
Robert
July 18, 2009 - 11:13 pm
Server crashed a while back. Screenshots are gone for good because I don’t have a computer with Windows Vista anymore. My apologies.
July 22, 2009 - 4:14 am
I use this cmd command. But i use Ms Vista, i try this command but Vista say it write access denied or permission problem (i dont remember) …Why can i do?
”
VBoxManage setextradata name_of_vm “VBoxInternal/Devices/pcnet/0/LUN#0/Config/ssh/HostPort” 2222
VBoxManage setextradata name_of_vm “VBoxInternal/Devices/pcnet/0/LUN#0/Config/ssh/GuestPort” 22
VBoxManage setextradata name_of_vm “VBoxInternal/Devices/pcnet/0/LUN#0/Config/ssh/Protocol” TCP
“
July 23, 2009 - 2:10 am
You need to open the terminal with root privileges. Right click on the terminal and click “run as administrator”.
July 30, 2009 - 3:51 pm
this is damn helpful, been puzzling over this using serv2008 as a virtual box for ages!
November 20, 2009 - 5:34 am
larry (or anyone else) are you able to post some pics of the correct settings.
thanks in advance.