zoukankan      html  css  js  c++  java
  • VirtualBox虚拟机无法选择桥接方式

    VirtualBox 装好之后默认的网络是NAT模式,但这种模式中虚拟机配置的IP和主机的不再同一网段内,无法获得和主机一样的局域网地位,更不可能从主机用远程桌面携带硬盘的方式远程控制。而最简便的方法就是虚拟机使用桥接的网络方式。

    首先说一下我的环境,主机系统是 Windows 7 旗舰版;VirtualBox 虚拟机是 3.0.4 r50677 的绿色版本 Portable-VirtualBox,各个版本的设置应该是大同小异吧;虚拟机安装 Windows XP SP3。
    Windows中VirtualBox虚拟机实现桥接方式(Bridged Adapter) | 任海波博客 - 知行 - 烹小鲜

    问题及解决过程如下(虚拟机安装操作系统省略)

    1.在刚装好的XP虚拟机的网络设置界面如下图,当链接方式为“Bridged Adapter”的时候,下面的“名称”显示“未指定”,而且在下面有错误提示如“发现无效设置”和“在 网络:网络连接 1 页,未指定要bridged的主机网络界面”。
    Windows中VirtualBox虚拟机实现桥接方式(Bridged Adapter) | 任海波博客 - 知行 - 烹小鲜

    2.这是因为 Windows 7 系统中没有安装 VirtualBox 的桥接服务驱动(也可能是我用绿色版本的原因),接下来将要安装驱动。

    3.打开本地连接的属性界面,如下图
    Windows中VirtualBox虚拟机实现桥接方式(Bridged Adapter) | 任海波博客 - 知行 - 烹小鲜

    4.选择“安装(N)...”,进入如下图界面
    Windows中VirtualBox虚拟机实现桥接方式(Bridged Adapter) | 任海波博客 - 知行 - 烹小鲜

    5.选择“服务”,点击“添加(A)...”按钮,进入如下界面
    Windows中VirtualBox虚拟机实现桥接方式(Bridged Adapter) | 任海波博客 - 知行 - 烹小鲜

    6.点击“从磁盘安装(H)...”,出现可以浏览目录的界面
    Windows中VirtualBox虚拟机实现桥接方式(Bridged Adapter) | 任海波博客 - 知行 - 烹小鲜

    7.点击“浏览(B)...”,并找到 VirtualBox 的安装目录
    Windows中VirtualBox虚拟机实现桥接方式(Bridged Adapter) | 任海波博客 - 知行 - 烹小鲜

    8.进入目录后选择文件夹“app32”(因为我用的是32的系统,如果您用64位系统的话估计得选择“app64”文件夹),然后是驱动目录“drivers”,再就是网络目录“network”,再往后您就要根据您的情况选择了,不清楚的话也可以挨个试试,这里我选的是“netflt”中的“VBoxNetFlt_m”。过程图解如下6张图。
    Windows中VirtualBox虚拟机实现桥接方式(Bridged Adapter) | 任海波博客 - 知行 - 烹小鲜
    Windows中VirtualBox虚拟机实现桥接方式(Bridged Adapter) | 任海波博客 - 知行 - 烹小鲜
    Windows中VirtualBox虚拟机实现桥接方式(Bridged Adapter) | 任海波博客 - 知行 - 烹小鲜
    Windows中VirtualBox虚拟机实现桥接方式(Bridged Adapter) | 任海波博客 - 知行 - 烹小鲜
    Windows中VirtualBox虚拟机实现桥接方式(Bridged Adapter) | 任海波博客 - 知行 - 烹小鲜

    9.点“打开”后一路点“确定”就会安装成功,中间安装过程可能需要等待一会儿,如下3张图片
    Windows中VirtualBox虚拟机实现桥接方式(Bridged Adapter) | 任海波博客 - 知行 - 烹小鲜
    Windows中VirtualBox虚拟机实现桥接方式(Bridged Adapter) | 任海波博客 - 知行 - 烹小鲜
    Windows中VirtualBox虚拟机实现桥接方式(Bridged Adapter) | 任海波博客 - 知行 - 烹小鲜

    10.至此,桥接服务已经安装好了,可以选择桥接的网络模式了
    Windows中VirtualBox虚拟机实现桥接方式(Bridged Adapter) | 任海波博客 - 知行 - 烹小鲜

    这样 VirtualBox 虚拟机中系统和宿主主机中的系统在网络中的地位是平等的,就可以用远程桌面的方式去访问虚拟机了,这样我觉得要比直接在虚拟机中操作要好,只是我个人的感觉而已,用 VMware 海波也是这么干的,是不是有点变态啊。

    关于远程桌面的文章可以参考:《远程桌面之服务器端的设置》、《远程桌面之网络环境的配置》和《远程桌面之客户端的设置》。

    引文来源  Windows中VirtualBox虚拟机实现桥接方式(Bridged Adapter) | 任海波博客

  • 相关阅读:
    MSB4064 错误
    javascript 通过模块模式实现代码访问控制
    vs 2012 更新update4 后出现问题
    html 转 PDF wkhtmltopdf image 不能显示的问题
    Html方式导出word 页头和页脚设置
    使用JSON JavaScriptSerializer 进行序列化或反序列化时出错。字符串的长度超过了为 maxJsonLength属性
    经验1-打印web
    DataGridView 多线程更新 数据 解决卡顿问题
    Copy List with Random Pointer [LeetCode]
    Validate Binary Search Tree [LeetCode]
  • 原文地址:https://www.cnblogs.com/yabingshi/p/3907544.html
Copyright © 2011-2022 走看看