﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>BlogJava-void-随笔分类-VirtualBox</title><link>http://www.blogjava.net/void241/category/54489.html</link><description /><language>zh-cn</language><lastBuildDate>Mon, 11 Aug 2014 13:49:56 GMT</lastBuildDate><pubDate>Mon, 11 Aug 2014 13:49:56 GMT</pubDate><ttl>60</ttl><item><title>Windows中VirtualBox虚拟机实现桥接方式(Bridged Adapter)</title><link>http://www.blogjava.net/void241/archive/2014/08/11/416827.html</link><dc:creator>void</dc:creator><author>void</author><pubDate>Mon, 11 Aug 2014 12:46:00 GMT</pubDate><guid>http://www.blogjava.net/void241/archive/2014/08/11/416827.html</guid><wfw:comment>http://www.blogjava.net/void241/comments/416827.html</wfw:comment><comments>http://www.blogjava.net/void241/archive/2014/08/11/416827.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/void241/comments/commentRss/416827.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/void241/services/trackbacks/416827.html</trackback:ping><description><![CDATA[<div style="line-height: 28px; color: #333333; font-family: 'Hiragino Sans GB W3', 'Hiragino Sans GB', Arial, Helvetica, simsun, u5b8bu4f53; font-size: 16px; background-color: #ffffff;"><p style="margin: 0px 0px 10px; padding: 0px;">路漫漫其修远兮，吾将上下而求索。</p></div><div data-find="_6" style="line-height: 28px; color: #333333; font-family: 'Hiragino Sans GB W3', 'Hiragino Sans GB', Arial, Helvetica, simsun, u5b8bu4f53; font-size: 16px; background-color: #ffffff;"><div data-find="_5"><div data-find="_4"><div data-find="_3"><div data-find="_2"><div data-find="_1"><p style="margin: 0px 0px 10px; padding: 0px;">VirtualBox 装好之后默认的网络是NAT模式，但这种模式中虚拟机配置的IP和主机的不再同一网段内，无法获得和主机一样的局域网地位，更不可能从主机用远程桌面携带硬盘的方式远程控制。而最简便的方法就是虚拟机使用桥接的网络方式。</p><p style="margin: 0px 0px 10px; padding: 0px;">海波很久没有写点像样的东西，写这篇算冲个数吧，也没什么技术含量，新手入门级的。今天海波第一次使用 VirtualBox 这款虚拟机软件，用的还是绿色版的(Portable-VirtualBox)，如有需要可以搜索之或者在文末下载。网上有好多 Linux 下的桥接教程，Windows下的不多哦。</p><p style="margin: 0px 0px 10px; padding: 0px;">首先说一下我的环境，主机系统是 Windows 7 旗舰版；VirtualBox 虚拟机是 3.0.4 r50677 的绿色版本 Portable-VirtualBox，各个版本的设置应该是大同小异吧；虚拟机安装 Windows XP SP3。<br /><img alt="Windows中VirtualBox虚拟机实现桥接方式(Bridged Adapter) | 任海波博客 - 知行 - 烹小鲜" border="0" src="http://img.renhaibo.com/00136/01.png" width="635" height="501" style="border: 0px; max-width: 100%;" /></p><p style="margin: 0px 0px 10px; padding: 0px;"><strong>问题及解决过程如下</strong>（虚拟机安装操作系统省略）</p><p style="margin: 0px 0px 10px; padding: 0px;">1.在刚装好的XP虚拟机的网络设置界面如下图，当链接方式为&#8220;Bridged Adapter&#8221;的时候，下面的&#8220;名称&#8221;显示&#8220;未指定&#8221;，而且在下面有错误提示如&#8220;发现无效设置&#8221;和&#8220;在 网络：网络连接 1 页，未指定要bridged的主机网络界面&#8221;。<br /><img alt="Windows中VirtualBox虚拟机实现桥接方式(Bridged Adapter) | 任海波博客 - 知行 - 烹小鲜" border="0" src="http://img.renhaibo.com/00136/02.png" width="635" height="549" style="border: 0px; max-width: 100%;" /></p><p style="margin: 0px 0px 10px; padding: 0px;">2.这是因为 Windows 7 系统中没有安装 VirtualBox 的桥接服务驱动（也可能是我用绿色版本的原因），接下来将要安装驱动。</p><p style="margin: 0px 0px 10px; padding: 0px;">3.打开本地连接的属性界面，如下图<br /><img alt="Windows中VirtualBox虚拟机实现桥接方式(Bridged Adapter) | 任海波博客 - 知行 - 烹小鲜" border="0" src="http://img.renhaibo.com/00136/03.png" width="374" height="439" style="border: 0px; max-width: 100%;" /></p><p style="margin: 0px 0px 10px; padding: 0px;">4.选择&#8220;安装(N)...&#8221;，进入如下图界面<br /><img alt="Windows中VirtualBox虚拟机实现桥接方式(Bridged Adapter) | 任海波博客 - 知行 - 烹小鲜" border="0" src="http://img.renhaibo.com/00136/04.png" width="375" height="440" style="border: 0px; max-width: 100%;" /></p><p style="margin: 0px 0px 10px; padding: 0px;">5.选择&#8220;服务&#8221;，点击&#8220;添加(A)...&#8221;按钮，进入如下界面<br /><img alt="Windows中VirtualBox虚拟机实现桥接方式(Bridged Adapter) | 任海波博客 - 知行 - 烹小鲜" border="0" src="http://img.renhaibo.com/00136/05.png" width="448" height="309" style="border: 0px; max-width: 100%;" /></p><p style="margin: 0px 0px 10px; padding: 0px;">6.点击&#8220;从磁盘安装(H)...&#8221;，出现可以浏览目录的界面<br /><img alt="Windows中VirtualBox虚拟机实现桥接方式(Bridged Adapter) | 任海波博客 - 知行 - 烹小鲜" border="0" src="http://img.renhaibo.com/00136/06.png" width="436" height="217" style="border: 0px; max-width: 100%;" /></p><p style="margin: 0px 0px 10px; padding: 0px;">7.点击&#8220;浏览(B)...&#8221;，并找到 VirtualBox 的安装目录<br /><img alt="Windows中VirtualBox虚拟机实现桥接方式(Bridged Adapter) | 任海波博客 - 知行 - 烹小鲜" border="0" src="http://img.renhaibo.com/00136/07.png" width="449" height="287" style="border: 0px; max-width: 100%;" /></p><p style="margin: 0px 0px 10px; padding: 0px;">8.进入目录后选择文件夹&#8220;app32&#8221;（因为我用的是32的系统，如果您用64位系统的话估计得选择&#8220;app64&#8221;文件夹），然后是驱动目录&#8220;drivers&#8221;，再就是网络目录&#8220;network&#8221;，再往后您就要根据您的情况选择了，不清楚的话也可以挨个试试，这里我选的是&#8220;netflt&#8221;中的&#8220;VBoxNetFlt_m&#8221;。过程图解如下6张图。<br /><img alt="Windows中VirtualBox虚拟机实现桥接方式(Bridged Adapter) | 任海波博客 - 知行 - 烹小鲜" border="0" src="http://img.renhaibo.com/00136/08.png" width="450" height="288" style="border: 0px; max-width: 100%;" /><br /><img alt="Windows中VirtualBox虚拟机实现桥接方式(Bridged Adapter) | 任海波博客 - 知行 - 烹小鲜" border="0" src="http://img.renhaibo.com/00136/09.png" width="451" height="285" style="border: 0px; max-width: 100%;" /><br /><img alt="Windows中VirtualBox虚拟机实现桥接方式(Bridged Adapter) | 任海波博客 - 知行 - 烹小鲜" border="0" src="http://img.renhaibo.com/00136/10.png" width="450" height="287" style="border: 0px; max-width: 100%;" /><br /><img alt="Windows中VirtualBox虚拟机实现桥接方式(Bridged Adapter) | 任海波博客 - 知行 - 烹小鲜" border="0" src="http://img.renhaibo.com/00136/11.png" width="450" height="289" style="border: 0px; max-width: 100%;" /><br /><img alt="Windows中VirtualBox虚拟机实现桥接方式(Bridged Adapter) | 任海波博客 - 知行 - 烹小鲜" border="0" src="http://img.renhaibo.com/00136/12.png" width="451" height="291" style="border: 0px; max-width: 100%;" /></p><p style="margin: 0px 0px 10px; padding: 0px;">9.点&#8220;打开&#8221;后一路点&#8220;确定&#8221;就会安装成功，中间安装过程可能需要等待一会儿，如下3张图片<br /><img alt="Windows中VirtualBox虚拟机实现桥接方式(Bridged Adapter) | 任海波博客 - 知行 - 烹小鲜" border="0" src="http://img.renhaibo.com/00136/13.png" width="438" height="215" style="border: 0px; max-width: 100%;" /><br /><img alt="Windows中VirtualBox虚拟机实现桥接方式(Bridged Adapter) | 任海波博客 - 知行 - 烹小鲜" border="0" src="http://img.renhaibo.com/00136/14.png" width="449" height="310" style="border: 0px; max-width: 100%;" /><br /><img alt="Windows中VirtualBox虚拟机实现桥接方式(Bridged Adapter) | 任海波博客 - 知行 - 烹小鲜" border="0" src="http://img.renhaibo.com/00136/15.png" width="376" height="441" style="border: 0px; max-width: 100%;" /></p><p style="margin: 0px 0px 10px; padding: 0px;">10.至此，桥接服务已经安装好了，可以选择桥接的网络模式了<br /><img alt="Windows中VirtualBox虚拟机实现桥接方式(Bridged Adapter) | 任海波博客 - 知行 - 烹小鲜" border="0" src="http://img.renhaibo.com/00136/16.png" width="557" height="461" style="border: 0px; max-width: 100%;" /></p><p style="margin: 0px 0px 10px; padding: 0px;">这样 VirtualBox 虚拟机中系统和宿主主机中的系统在网络中的地位是平等的，就可以用远程桌面的方式去访问虚拟机了，这样我觉得要比直接在虚拟机中操作要好，只是我个人的感觉而已，用 VMware 海波也是这么干的，是不是有点变态啊。</p><p style="margin: 0px 0px 10px; padding: 0px;"><strong>关于远程桌面的文章可以参考：</strong>《远程桌面之服务器端的设置》、《远程桌面之网络环境的配置》和《远程桌面之客户端的设置》。</p></div></div></div></div></div></div><img src ="http://www.blogjava.net/void241/aggbug/416827.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/void241/" target="_blank">void</a> 2014-08-11 20:46 <a href="http://www.blogjava.net/void241/archive/2014/08/11/416827.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>