桥接网络在 Windows 10 下的 Virtualbox 中不起作用
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/31922055/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Bridged networking not working in Virtualbox under Windows 10
提问by J.Wang
回答by Khalil TABBAL
First of all you have to create a VirtualBox Host-Only Ethernet adapter
首先,您必须创建一个 VirtualBox Host-Only 以太网适配器
In Virtualbox :
在 Virtualbox 中:
- Go to File > Preferences On the Network tab select Host only Networks click on "add a Host-only adapter" give it a name by default it is "VirtualBox Host-Only Ethernet adapter"
- 转到文件>首选项在网络选项卡上选择仅主机网络单击“添加仅主机适配器”给它一个默认名称,它是“VirtualBox Host-Only Ethernet adapter”
In Windows :
在 Windows 中:
- go to Network connections on Windows and highlight both the real adapter and the new virtual ethernet adapter that you just created.
- Right click and select "Bridge Connections", it's going to create a network bridge in Windows.
- 转到 Windows 上的网络连接并突出显示您刚刚创建的真实适配器和新的虚拟以太网适配器。
- 右键单击并选择“桥接连接”,它将在 Windows 中创建一个网桥。
Now configure your VM :
现在配置你的虚拟机:
- in the Network part you can activate a new adapter and then select Attached to Host only adapter
- Choose the VirtualBox Host-Only Ethernet adapter you have just created
- 在网络部分,您可以激活一个新的适配器,然后选择附加到仅主机适配器
- 选择您刚刚创建的 VirtualBox Host-Only 以太网适配器
You can now configure your static IP Address by modifying /etc/network/interfaces :
您现在可以通过修改 /etc/network/interfaces 来配置您的静态 IP 地址:
auto eth0
iface eth0 inet static
address 10.1.1.100
netmask 255.255.255.0
gateway 10.1.1.1
You can now restart eth0 by doing :
您现在可以通过执行以下操作重新启动 eth0:
sudo ifdown eth0
sudo ifup eth0
Some wireless adapters don't work
某些无线适配器不工作
回答by ds00424
My Windows 10 machine was automagically updated today. Looks like the "Windows 10 Anniversary update" When I restarted Virtualbox my server with a bridged adapter showed same as OP. I tried rerunning the VirtualBox installer (it did a Repair) - that did not fix the issue. I tried running the installer again as Admin (it did a Repair) - that did not fix. I ran the installer and selected UnInstall, then ran it again to Install. And the Network adapter settings looked good. Server started and connected to my network as usual. Whew. Hope this helps someone.
我的 Windows 10 机器今天自动更新了。看起来像“Windows 10 周年更新” 当我重新启动 Virtualbox 时,我的带有桥接适配器的服务器显示与 OP 相同。我尝试重新运行 VirtualBox 安装程序(它进行了修复) - 没有解决问题。我尝试以管理员身份再次运行安装程序(它进行了修复) - 没有修复。我运行了安装程序并选择了卸载,然后再次运行以安装。网络适配器设置看起来不错。服务器像往常一样启动并连接到我的网络。哇。希望这可以帮助某人。
回答by Ashitosh
Install the latest Virtual box 5.x and this issue will be resolved.
安装最新的 Virtual box 5.x 即可解决此问题。
回答by infFinder
This is how I mananged to fix this problem:
这就是我设法解决这个问题的方式:
Enable "Windows 8" compatibility for VirtualBox executable: right-click on VirtualBox shortcut>Properties: in Properties dialog box: switch to "Compatibility" tab, under "Compatibility mode" section, select the check box next to: "Run this program in compatibility mode", make sure "Windows 8" is selected in combo box. click Ok, run VirtualBox again! (it's not needed to run as Administrator)
为 VirtualBox 可执行文件启用“Windows 8”兼容性:右键单击 VirtualBox 快捷方式>属性:在属性对话框中:切换到“兼容性”选项卡,在“兼容模式”部分下,选中旁边的复选框:“在兼容模式”,请确保在组合框中选择了“Windows 8”。单击确定,再次运行 VirtualBox!(不需要以管理员身份运行)
p.s.: It seems that VirtualBox doesn't yet fully support Windows 10, so some features might not work properly on some computers
ps:好像VirtualBox还没有完全支持Windows 10,所以有些功能在某些电脑上可能无法正常使用
回答by Caltor
Uninstall then run the setup program again but this time as Administrator. Make sure the VB bridge driver is selected during installation.
卸载然后再次运行安装程序,但这次以管理员身份运行。确保在安装过程中选择了 VB 桥驱动程序。
回答by Alexeev Mikhail
Install "vbox-ssl-cacertificate.crt" certificate from %userprofile%\\.virtualbox\
and then reboot. If you don't have .virtualbox
folder - launch "Oracle VM VirtualBox" once and this folder will appear.
安装“vbox-ssl-cacertificate.crt”证书%userprofile%\\.virtualbox\
,然后重新启动。如果您没有.virtualbox
文件夹 - 启动“Oracle VM VirtualBox”一次,该文件夹将出现。
I had this issue not only on my machine but on many hosts, and this certificate fixed the issue. I figured it out by chance, because nowhere said about this certificate -_-
我不仅在我的机器上而且在许多主机上都有这个问题,这个证书解决了这个问题。我是偶然想出来的,因为没有人说这个证书-_-
回答by Caveman
Go to your net card. Go to properties and then "Add service", which? This: VirtualBox NDIS6 Bridged Networking Driver
转到您的网卡。转到属性,然后“添加服务”,哪个?这个:VirtualBox NDIS6 桥接网络驱动程序
Reopen Virtual Box
重新打开虚拟盒子
回答by gburton
From Reddit:
来自 Reddit:
https://www.reddit.com/r/Windows10/comments/39af75/for_my_win10_companions_heres_how_to_get/
https://www.reddit.com/r/Windows10/comments/39af75/for_my_win10_companions_heres_how_to_get/
I can't see the original source in this thread, although I would like to.
虽然我想看,但我在这个帖子中看不到原始来源。
I am using these instructions with a laptop that upgraded from windows 8 to windows 10. I have to repeat the last instructions after rebooting.
我正在将这些说明用于从 Windows 8 升级到 Windows 10 的笔记本电脑。重新启动后我必须重复最后的说明。
I have test an get solution for my self and want to share my solution. - Host Only worked - Bridge Adapter worked
My Configuration is - Surface Pro 1 - Clean install Windows 10 x64 build 10130 - VirtualBox-5.0.0_RC1-100731-Win.exe
(this is my opinion but not tested on how to remove previous version by install VirtualBox-5.0.0_RC1-100731-Win.exe with select all function to install its will fault and rollback all, then its same as uninstall)
Install Step - Right Click on VirtualBox-5.0.0_RC1-100731-Win.exe and select "Run as Administrator" - "Unselect" option bridge network
next until finish
Open "Device Manager", you can use search bar to get this, under "Network adapters" then Right Click "VirtualBox Host-Only Ethernet Adapter" select "Update Driver Software" select "Search automactic" wait until its finish
- Open "Network Connections", you can use search bar to get this, at here you should find VirtualBox Host-Only Ethernet Adapter
- Open "CMD", you can use search bar to get this, Right Click and Select Run as Administrator
- cd to your install path and run command "VirtualBox-5.0.0_RC1-100731-Win.exe -extract" its will return pop-up tell where is extracted folder
- in extracted folder extract "VirtualBox-5.0.0_RC1-r100731-MultiArch_amd64.msi" by 7-Zip or any similar
- in msi extracted folder rename all files by remove file_ in front of them
- copy "VBoxNetFltNobj.sys" and "VBoxNetFlt.sys" to C:\Windows\System32\
- Open "CMD", you can use search bar to get this, Right Click and Select Run as Administrator run command "regsvr32.exe /s VBoxNetFltNobj.sys" run command "regsvr32.exe /s VBoxNetFlt.sys"
- Open "Network Connections", you can use search bar to get this, Right Click on any real network adapter select Properties select Install select Service select "Have Disk" and browse to "VBoxDrv.inf" select "VirtualBox NDIS6 Bridged Networking Driver" after finish install you should see its avaliable in this connection
On Start Menu Right Click on "Orcle VM VirtualBox" select open file location
Right Click on Shortcut then select properties on tab "Compatibility" checked "Run this Program as Administrator"
!!! this very important to run application with adminstrator if not you will lose host-only network adapter
- Open "Virtual Box" select file > preference select network then select Host On Network select edit change ip to 192.168.56.1 and netmask to 255.255.255.0
- Now you can use both host-only and bridge network on your guest
I think reason why normal installation was error is about Administrator access level when regis service and run application
Sorry for my bad english and this is so long procedure
Hope this will work for you too. ^_^!
我已经为自己测试了一个 get 解决方案,并想分享我的解决方案。- 仅主机工作 - 桥接适配器工作
我的配置是 - Surface Pro 1 - 全新安装 Windows 10 x64 build 10130 - VirtualBox-5.0.0_RC1-100731-Win.exe
(这是我的意见,但没有测试如何通过安装 VirtualBox-5.0.0_RC1-100731-Win.exe 并选择所有功能来删除以前的版本,以安装其将出错并全部回滚,然后与卸载相同)
安装步骤 - 右键单击 VirtualBox-5.0.0_RC1-100731-Win.exe 并选择“以管理员身份运行”-“取消选择”选项桥接网络
接下来直到完成
打开“设备管理器”,您可以使用搜索栏来获取它,在“网络适配器”下然后右键单击“VirtualBox Host-Only Ethernet Adapter”选择“更新驱动程序软件”选择“自动搜索”等待它完成
- 打开“网络连接”,您可以使用搜索栏来获取它,在这里您应该可以找到 VirtualBox Host-Only Ethernet Adapter
- 打开“CMD”,您可以使用搜索栏来获取它,右键单击并选择以管理员身份运行
- cd 到您的安装路径并运行命令“VirtualBox-5.0.0_RC1-100731-Win.exe -extract”,它将返回弹出窗口,告知提取文件夹的位置
- 在提取的文件夹中提取“VirtualBox-5.0.0_RC1-r100731-MultiArch_amd64.msi”由 7-Zip 或任何类似
- 在 msi 提取的文件夹中,通过删除前面的 file_ 重命名所有文件
- 将“VBoxNetFltNobj.sys”和“VBoxNetFlt.sys”复制到 C:\Windows\System32\
- 打开“CMD”,你可以使用搜索栏来得到这个,右键单击并选择以管理员身份运行运行命令“regsvr32.exe /s VBoxNetFltNobj.sys”运行命令“regsvr32.exe /s VBoxNetFlt.sys”
- 打开“网络连接”,您可以使用搜索栏来获取它,右键单击任何真实的网络适配器选择属性选择安装选择服务选择“从磁盘安装”并浏览到“VBoxDrv.inf”选择“VirtualBox NDIS6 Bridged Networking Driver”之后完成安装你应该看到它在这个连接中可用
在开始菜单上右键单击“Orcle VM VirtualBox”选择打开文件位置
右键单击“快捷方式”,然后选择“兼容性”选项卡上的属性,选中“以管理员身份运行此程序”
!!!与管理员一起运行应用程序非常重要,否则您将丢失仅主机网络适配器
- 打开“Virtual Box”选择文件>首选项选择网络然后选择网络主机选择编辑将ip更改为192.168.56.1并将网络掩码更改为255.255.255.0
- 现在您可以在来宾上同时使用仅主机和桥接网络
我认为正常安装出错的原因与regis服务和运行应用程序时的管理员访问级别有关
对不起,我的英语不好,这是这么长的程序
希望这对你也有用。^_^!
回答by gblue1223
回答by Marc de Ruyter
My very simple solution that worked: select another networkcard!
我的非常简单的解决方案有效:选择另一个网卡!
- Make sure your guest is shut down
- Goto the guest Settings > Network > Adavanced
- Change the Adapter Type to another adapter.
- Start your guest and check if you got a decent IP for your network.
- 确保您的客人已关闭
- 转到访客设置 > 网络 > 高级
- 将适配器类型更改为另一个适配器。
- 启动您的访客并检查您的网络是否有合适的 IP。
If it doesn't work, repeat steps and try yet another network adapter. The very basic PCnet adapters have a high succes-rate.
如果它不起作用,请重复步骤并尝试另一个网络适配器。非常基本的 PCnet 适配器具有很高的成功率。
Good luck.
祝你好运。