在windows xp下用virtualbox安装ubuntu8.04后, 默认的是NAT连接方式, 不需要做任何更改就可以上网, 但是这种方式很不灵活, 你无法像访问局域网中的其他主机一样访问linux,为此, 可以建立桥接, 让你的windows xp 和 linux 在网络中具有同等的地位。
具体方式步骤如下:(下面是在ubuntu论坛上的文章设置方法)
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.
//以正常方式完成VBox的安装,Guest系统的创建以及Debian的安装之后,按照以下步骤来设置网络
I. Create Network Connection in VBox
1.Network;àSettingsàOpen VBox¬¬
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
//在虚拟机中创建网络连接
1.虚拟主机设置-〉网络–〉网络连接方式
2.选择“Host Interface”
3.在Host Interface点击“添加”
4.输入“VirtuakBox Host Interface #”(注:不输入引号,#号代表接口的数字,通常为1)
5.点击OK
6.关闭虚拟主机设置
<smarttagtype namespaceuri="urn:schemas-microsoft-com:office:smarttags" name="PlaceType"></smarttagtype><smarttagtype namespaceuri="urn:schemas-microsoft-com:office:smarttags" name="PlaceName"></smarttagtype><smarttagtype namespaceuri="urn:schemas-microsoft-com:office:smarttags" name="place"></smarttagtype>
II. Create a<place><placename><span class="postbody1"><span lang="EN-US" style="font-size: 10pt; font-family: Verdana; ">Network</span></span></placename><span class="postbody1"><span lang="EN-US" style="font-size: 10pt; font-family: Verdana; "></span></span><placetype><span class="postbody1"><span lang="EN-US" style="font-size: 10pt; font-family: Verdana; ">Bridge</span></span></placetype></place>
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.创建一个网桥
1.打开控制面板-〉网络连接
2.按下“Ctrl”键的同时选择“本地连接”和“VirtualBox Host Interface”
3.在其中一个选择的连接上,点右键
4.从下拉菜单里选择,创建网桥
Since I am using static IP’s on my network set up I had to configure the TCP/IP properties for the<place><placename><span class="postbody1"><span lang="EN-US" style="font-size: 10pt; font-family: Verdana; ">Network</span></span></placename><span class="postbody1"><span lang="EN-US" style="font-size: 10pt; font-family: Verdana; "></span></span><placetype><span class="postbody1"><span lang="EN-US" style="font-size: 10pt; font-family: Verdana; ">Bridge</span></span></placetype></place>.
//注:由于我的网络使用的是静态IP设置,因此必须配置网桥的TCP/IP属性
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.在刚刚创建的网桥上右击,选择属性
6.选择TCP/IP
7.点击属性
8.设置静态IP地址的值
9.关闭网络连接
III. Set Network Adapters to promiscuous mode
//III.设置网卡为混杂模式
When VBox and the guest VM load Windows XP should 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.
当VBOX和VM主机载入后,XP应该自动使网卡处于混杂模式,但有时候并未实现。因此,最好手工强制网卡处于混杂模式。只需按以下步骤操作。
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 the #;
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.开始–〉运行–〉输入”CMD”
2.输入“netsh bridge show adapter”
3.网桥中的每张网卡会有一行信息显示。注意显示为“未应用”的每张网卡,记下网卡的数值然后看第4步
4.输入“netsh bridge set adapter # forcecompatmode=enable”为每张显示为未应用的网卡,输入相应的网卡号,并运行一遍命令
III. Configure the TCP/IP Properties for the Debian guest
//
为VM客户机操作系统配置TCP/IP属性
Again, this is necessary because I am using static IP's in my LAN.
同样,这是必须的,应为我的LAN使用静态IP
1.Open VBox;
2.Start Debian;
3.Since I have installed GNOME Networking;àAdministrationàdesktop I will openNetworking 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.打开虚拟机
2.启动Debian
3.由于我安装可Gnome,我将通过桌面打开网络
4.选择网络连接eth0
5.点击属性
6.设置静态IP地址
7.关闭网络
8.重起Debian
After Debian has rebooted LAN connections with the host and any other computers
on the network should have been established.
//
Debian重起之后,虚拟主机与LAN里其他计算机的网络连接就建立了。
相关推荐
VirtualBox内Linux系统怎样与Windows共享文件夹
Oracle VM VirtualBox 安装 Linux
VirtualBox虚拟机实现桥接方式;图文显示。
本文档主要内容为,在Windows下怎么样安装虚拟机VirtualBox-4.2.6,并在虚拟机上安装Linux系统Ubuntu 10.04,以及相应环境的搭建。
如何使用virtualbox启动ubuntu,并实现桥接方式连外网、网络邻居访问、ftp访问。 1. 环境说明 Win10 64bit Virtual 64bitv5.2.0 Ubuntu 16.04 arm64 2. 网络环境 采用联网主机上的360wifi做为对外网络...
本篇文章主要是介绍了Virtualbox主机和虚拟机之间文件夹共享及双向拷贝,有需要的可以了解一下。
本篇文章主要介绍了VirtualBox配置虚拟网卡(桥接)——实现主机-虚拟机网络互通,具有一定的参考价值,感兴趣的小伙伴们可以参考一下。
VirtualBox 可以在 Linux 和 Windows 主机中运行,并支持在其中安装 Windows (NT 4.0、2000、XP、Server 2003、Vista)、DOS/Windows 3.x、Linux (2.4 和 2.6)、OpenBSD 等系列的客户操作系统。 假如你曾经有用过...
VirtualBox 可以在 Linux 和 Windows 主机中运行,并支持在其中安装 Windows (NT 4.0、2000、XP、Server 2003、Vista)、DOS/Windows 3.x、Linux (2.4 和 2.6)、OpenBSD 等系列的客户操作系统。 假如你曾经有用过...
VirtualBox 是一款开源虚拟机软件。它主要有三个优点:(1)免费;(2)体积小巧;(3) 功能强大。...本手册主要描述VirtualBox 虚拟机的安装,VirtualBox 上安装Linux 系统及共享文件的 设置方法。
Oracle VM VirtualBox 桥接模式驱动
图解在Virtualbox中装linux系统
virtualbox与windows10系统不兼容解决办法和软件工具.zip virtualbox与windows10系统不兼容解决办法和软件工具.zip virtualbox与windows10系统不兼容解决办法和软件工具.zip virtualbox与windows10系统不兼容解决...
在VMware Workstation中要实现虚拟机与宿主机的网络桥接是一件很容易的事情,但是,在VirtualBox中要实现这样的结果却要麻烦点,因为在VirtualBox中,虚拟机的网卡属性那里没有直接设置“桥接”的地方。要多一个步骤...
在VirtualBox下安装Linux详细图解过程
在oracle官网整理一些关于oracle12C数据库RAC集群部署的资料,可参考
virtualbox 与Windows 文件夹资源共享,设置后,Windows下的文件夹被映像到Virtualbox Linux下,在Virtualbox下访问该文件夹就像打开本地文件夹一样,不用使用FTP等外界工具实行跳转,实现了在Windows下与Virtualbox相互...
Kali Linux VirtualBox(kali-linux-2022.2-virtualbox-i386.ova)文件分割成 4个 压缩包,必须集齐4个 文件后才能一起解压一起使用: kali-linux-2022.2-virtualbox-amd64.part1 ...kali-linux-2022.2-virtualbox-amd...
Kali Linux VirtualBox(kali-linux-2022.2-virtualbox-i386.ova)文件分割成 4个 压缩包,必须集齐4个 文件后才能一起解压一起使用: kali-linux-2022.2-virtualbox-amd64.part1 ...kali-linux-2022.2-virtualbox-amd...
主要介绍了VirtualBox 配置虚拟网卡(桥接),实现主机-虚拟机网络互通(图文教程),有需要的朋友可以了解一下。