Build a bridge between linux and windows in VirtualBox
Source: Internet
Author: User
Build a bridge between linux and windows in VirtualBox-Linux Enterprise Application-Linux server application information. For details, refer to the following section. For more information, see the following article to build a bridge between windows xp host and windows 2k3 guest.
After ubuntu8.04 is installed with virtualbox in windows xp, the default NAT connection method is used. You can access the Internet without any changes, but this method is not flexible, you cannot access linux like other hosts in the LAN. Therefore, you can build a bridge to make windows xp and linux have the same status on the network.
The procedure is as follows: (The following is how to set up an article on the ubuntu Forum)
The installation of VBox, creation of the guest and installation of Debian Etch was done in the normal fashion. Once that was completed I followed the following steps to setup networking.
After you install VBox in normal mode, create a Guest system, and install Debian, follow these steps:
I. Create Network Connection in VBox
1. Network; à Settings à Open VBox too many
2. Click on "Attached to" and then select "Host Interfaces ";
3. In Host Interfaces click Add;
4. type "VirtualBox Host Interface #" without the quotation marks where the # represents a number for the interface, usually 1 (on one computer the name of the virtual box host interface appeared automatically, on the other computer I had to type the information );
5. Click OK, and
6. Close VBox
Create a network connection in a virtual machine
1. VM settings-> network? > Network connection mode
2. Select "Host Interface"
3. Click "add" on the Host Interface"
4. Enter "VirtuakBox Host Interface #" (Note: No quotation marks are entered. # indicates the number of the Interface, usually 1)
5. Click OK.
6. Disable VM settings
II. Create a Network Bridge
Network Connections; à 1. Open Control Panel
2. While holding down Ctrl select the Local Area connection and click on the VirtualBox Host Interface;
3. Right click on one of the selected connections; and
4. From the drop-down menu select Create Network Bridge
II. Create a bridge
1. Open Control Panel-> network connection
2. Press Ctrl and select "Local Connection" and "VirtualBox Host Interface"
3. Right-click a selected connection.
4. select from the drop-down menu to create a bridge.
Since I am using static IP's on my network set up I had to configure the TCP/IP properties for the Network Bridge.
Note: Because my network uses static IP settings, you must configure the TCP/IP attribute of the bridge.
5. Right click on the Network Bridge that was just created;
6. Select TCP/IP;
7. Click on Properties;
8. Set the Static Connection Values; and
9. Close Network Connection.
5. Right-click the newly created bridge and select Properties.
6. Select TCP/IP
7. Click Properties
8. Set the static IP address value
9. disable network connection
III. Set Network Adapters to promiscuous mode
III. Set the NIC to the hybrid mode
When VBox and the guest VM load Windows XP shocould put the network adapters into promiscuous mode, but sometimes this does not happen. therefore, I think it is best to force the adapters into promiscuous mode. it is only necessary to do this once.
When the VBOX and VM host are loaded, XP should automatically make the NIC in the mixed mode, but sometimes it is not implemented. Therefore, it is best to manually force the NIC to be in the hybrid mode. Follow these steps.
1. Open a Run and type "CMD" without the quotes and press à Windows command prompt (Start ENTER;
2. Type "netsh bridge show adapter ";
3. There will be a line of information displayed for each network adapter in the Bridge. Look for any adapter that is listed as disabled, note the number of the adapter and go to step four.
4. Type "netsh bridge set adapter # forcecompatmode = enable" for each adapter that was listed as disabled, inserting the number of the adapter for #;
5. Type "netsh bridge show adapter" once again to check to see if your adapters have been enabled;
6. Exit the command prompt; and
7. Reboot the computer.
1. Start? > Running? > Input "CMD"
2. Enter "netsh bridge show adapter"
3. Each Nic In the bridge will display a line of information. Note that each Nic is displayed as "not applied". Write down the NIC value and check step 2.
4. Enter "netsh bridge set adapter # forcecompatmode = enable" to indicate that each Nic is not applied. Enter the corresponding Nic ID and run the command again.
III. Configure the TCP/IP Properties for the Debian guest
Configure TCP/IP attributes for the VM guest operating system
Again, this is necessary because I am using static IP's in my LAN.
Likewise, this is required and should be a static IP address for my LAN
1. Open VBox;
2. Start Debian;
3. Since I have installed GNOME Networking; à adminià à desktop I will open Networking by clicking Desktop
4. Select Ethernet Connection eth0;
5. Click on Properties;
6. Set the static configuration for the Debian VM;
7. Close Networking; and
8. Reboot Debian.
1. Open the Virtual Machine
2. Start Debian
3. Because I can install Gnome, I will open the network through the Desktop
4. Select network connection eth0
5. Click properties.
6. Set static IP addresses
7. Disable the network
8. Restart Debian
After Debian has rebooted LAN connections with the host and any other computers
On the network shoshould have been established.
After Debian restarts, the virtual host establishes a network connection with other computers in the LAN.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service