VirtualBox network issue - HostInterfaceNetworking-VirtualBox Host-Only Ethernet Adapter

本文介绍了一种常见的VirtualBox虚拟机网络配置错误及其解决方案。错误表现为无法打开或创建内部网络,导致网络LUN无法连接。通过命令行指定特定参数可以有效解决此问题。

error:

Failed to open/create the internal network ' HostInterfaceNetworking-VirtualBox Host-Only Ethernet Adapter ' (VERR_INTNET_FLT_IF_NOT_FOUND).

Failed to attach the network LUN (VERR_INTNET_FLT_IF_NOT_FOUND).

Fix:

open cmd,  > VirtualBox-5.0.11-104101-Win.exe -msiparams NETWORKTYPE=NDIS5 (Don't use NDIS6)


在 eNSP 中使用 VirtualBox Host-Only Ethernet Adapter 需要确保 VirtualBox 的虚拟网络配置正确,并且系统中没有冲突的网络接口或设置。以下是创建和配置 VirtualBox Host-Only Ethernet Adapter 的方法: ### 1. 检查并确保 VirtualBox Host-Only 网卡存在 - 打开 **VirtualBox 管理器**。 - 进入 **“文件” > “首选项” > “网络” > “Host-Only 网络”**。 - 查看是否存在 `VirtualBox Host-Only Ethernet Adapter`。如果不存在,点击 **“+”** 按钮添加一个新的 Host-Only 网络接口。 - 新增的接口通常会被命名为 `VirtualBox Host-Only Ethernet Adapter #2` 或类似名称。 ### 2. 修复 Host-Only 网卡命名问题 如果系统中存在多个 Host-Only 网卡,例如 `VirtualBox Host-Only Ethernet Adapter #2`,而 eNSP 无法识别该网卡,可能是因为网卡名称与原始名称不一致。可以通过以下方式修复: - 使用注册表编辑器(`regedit`)删除与 VirtualBox Host-Only 网卡相关的注册表项。 - 定位到以下路径: ``` HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class\{4D36E972-E325-11CE-BFC1-08002BE10318} ``` - 删除所有与 `VirtualBox Host-Only Ethernet Adapter` 相关的子项。 - 重启电脑后重新安装 VirtualBox 网络组件,系统会重新生成标准名称的 Host-Only 网卡[^2]。 ### 3. 配置 Host-Only 网卡的 IP 地址 - 打开 **“控制面板” > “网络和 Internet” > “网络和共享中心” > “更改适配器设置”**。 - 找到 `VirtualBox Host-Only Ethernet Adapter` 接口。 - 右键点击该接口,选择 **“属性” > 双击 “Internet 协议版本 4 (TCP/IPv4)”**。 - 设置静态 IP 地址,例如: - IP 地址:`192.168.56.1` - 子网掩码:`255.255.255.0` - 默认网关:留空或设置为 `192.168.56.254`(视需求而定) ### 4. 确保 Hyper-V 服务已关闭 Windows 系统上如果启用了 Hyper-V 服务,可能会与 VirtualBox 冲突,导致 Host-Only 网卡无法正常工作。可以通过以下命令禁用 Hyper-V: ```cmd bcdedit /set hypervisorlaunchtype off ``` 执行完成后重启系统以确保更改生效。 ### 5. 验证 eNSP 是否识别 Host-Only 网卡 - 启动 eNSP。 - 进入 **“选项” > “首选项” > “PC 工具”**。 - 确保在 **“网卡”** 列表中能够看到 `VirtualBox Host-Only Ethernet Adapter`。 - 如果未显示,尝试重新安装 eNSP 和 VirtualBox 的兼容版本。 ### 6. 常见错误及解决方法 - **报错信息:`Interface (‘VirtualBox Host-Only Ethernet Adapter’) is not a Host-Only Adapter interface`**: - 可能是由于网卡配置损坏或注册表残留导致。尝试卸载 VirtualBox,清理注册表,然后重新安装 VirtualBox 和 eNSP。 - 确保网卡驱动程序是最新的,并与当前系统兼容[^3]。 ---
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值