如何使VirtualBox或VMware(或任何其他虚拟化软件)使用本机访客网络驱动程序?(How to make VirtualBox or VMware (or any other virtual

编程入门 行业动态 更新时间:2024-10-28 10:29:36
如何使VirtualBox或VMware(或任何其他虚拟化软件)使用本机访客网络驱动程序?(How to make VirtualBox or VMware (or any other virtualization software) to use a native guest network driver?)

我不知道我想要实现的目标是否可行。 我有一个RTL8192CE无线网络Mini PCI卡,它在Linux上运行不正常(运行Ubuntu 12.04 64位(精确穿山甲))。 我已经尝试了我能想到的一切:我从Realtek主页下载了最新的驱动程序,尝试使用NDISwrapper和几套不同的Windows驱动程序,并尝试使用通用的无线后端等,这些都没有解决我的问题。

另一方面,它确实在Windows上完美运行......我是双启动Windows 7和Ubuntu 12.04,都是64位。 显然, Ubuntu中存在与此卡相关的错误 。

我想知道在使用本机Windows驱动程序的Ubuntu 12.04 64位下是否有办法使用虚拟化Windows安装( Windows XP或Windows 7 ,最好不是Windows Vista )(因为网卡在Windows中完美运行) 。 虚拟化软件可以是VirtualBox (首选), VMware或任何其他软件。 如果我必须通过shell脚本或类似的东西手动配置它,没有任何问题。

所以,为了更清楚,我在我的Ubuntu 12.04(我的主机)中安装了一个VirtualBox,我用它来运行Windows 7(我的客人)。 我想知道这个虚拟化(来宾)Windows 7是否可以“直接”访问我的无线接口 - 例如我安装的双启动Windows 7,而不通过Ubuntu驱动程序。

显然我无法通过使用VirtualBox的guest添加来实现这一点,是吗?

PS:我相信VirtualBox的网络模式( NAT ,桥接网络,内部网络和仅主机网络)都不允许我这样做,我是否正确? 我怎么能解决这个问题?

I don't know if what I want to achieve is actually feasible or not. I have an RTL8192CE wireless network Mini PCI card, which definitely doesn't work properly on Linux (running Ubuntu 12.04 64-bit (Precise Pangolin)). I have already tried everything I could think of: I downloaded the latest drivers from the Realtek homepage, tried using NDISwrapper with several different sets of Windows drivers, and also tried using generic wireless backports, etc. None of it solved my problem.

It does, on the other hand, work perfectly on Windows... I dual-boot Windows 7 and Ubuntu 12.04, both 64-bit. Apparently, there is a bug in Ubuntu related to this card.

I want to know whether there is a way to use a virtualized Windows installation (Windows XP or Windows 7, preferably not Windows Vista) under my Ubuntu 12.04 64-bit that uses a native Windows driver (since the network card works perfectly in Windows). The virtualization software can be either VirtualBox (prefered), VMware or any other. There isn't any problem if I have to manually configure that by shell scripting or anything similar.

So, to make it clearer, I have a VirtualBox installed in my Ubuntu 12.04 (my host), which I use to run Windows 7 (my guest). I wanted to know whether this virtualized (guest) Windows 7 could have "direct" access to my wireless interface -- such as the dual-booted Windows 7 I have installed, without passing through the Ubuntu drivers.

Apparently I could not achieve that by using VirtualBox's guest additions, could I?

PS: I believe none of VirtualBox's networking modes (NAT, bridged networking, internal networking and host-only networking) would allow me to do that, am I correct? How could I solve that problem?

最满意答案

您要求的是在VirtualBox中称为PCI Passthrough - 它应该被认为是一个非常高级的主题。 我之前在VirtualBox和VMWare ESXi(制作vSphere ......)中尝试过这个功能,它可能非常脆弱。

我建议你花一些时间阅读VirtualBox手册部分( 第9章:高级主题 ),你需要注意一些限制,并且只知道这是一个非常年轻的虚拟化领域。不成熟。 另外,在您开始之前,这里有一些相当严格的要求:

您的硬件必须有IOMMU(英特尔称之为VT-d,AMD - > AMD-Vi) 您的访客必须配置启用硬件辅助(VT-x或AMD-V) 必须构建主机Linux内核才能使用IOMMU硬件

如果您的硬件/软件符合这些相当严格的指导原则,请试一试。 会发生什么情况,您的客人将被有效地直接访问您的无线PCI卡,它将直接作为PCI设备显示给您的客人。 如果Windows是您的主机操作系统而不是您的guest虚拟机,您将完全像安装和使用驱动程序一样。

参考 - 第9章:高级主题 - PCI Passthrough https://www.virtualbox.org/manual/ch09.html#pcipassthrough

What you are asking for is called PCI Passthrough in VirtualBox - and it should be considered a very advanced topic. I have experimented with this feature before in VirtualBox and VMWare ESXi (make that vSphere...) and it can be extremely fragile.

I would suggest you spend some time reading the VirtualBox manual section on this (Chapter 9: Advanced Topics), there are some limitations you will want to be aware of as well as just know that this is an area of virtualization that is very young and immature. Off hand, here are some of the rather strict requirements before you can even begin:

Your hardware must have an IOMMU (Intel calls it VT-d, AMD -> AMD-Vi) Your guest must be configured with hardware assist enabled (VT-x or AMD-V) Your host Linux kernel must be built to utilize the IOMMU hardware

If your hardware/software meets those rather strict guidelines, give it a shot. What will happen is your guest will be effectively given direct access to your wireless PCI card and it will show up directly as a PCI device to your guest. You will install and use the drivers exactly as you would if Windows were your host operating system instead of your guest.

Reference - Chapter 9: Advanced Topics - PCI Passthrough https://www.virtualbox.org/manual/ch09.html#pcipassthrough

更多推荐

本文发布于:2023-07-16 00:09:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1120985.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:访客   本机   驱动程序   网络   软件

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!