找到你要的答案

Q:Virtualbox bridged network not working

Q:VirtualBox桥接网络不工作

I am running the most recent virtual box and created a Ubuntu 14.04 virtual machine. It works with NAT networking, but when I switch to bridged I get the following error:

Failed to open a session for the virtual machine class. Failed to open/create the internal network 'HostInterfaceNetworking-Realtek PCIe GBE Family Controller' (VERR_INTNET_FLT_IF_NOT_FOUND). Failed to attach the network LUN (VERR_INTNET_FLT_IF_NOT_FOUND).

Anyone have any idea how to solve this, I tried to re-install Virtual Box, and I tried to install on a different computer but it still gives me the same error.

我跑的最新虚拟框和创建一个Ubuntu 14.04的虚拟机。它的工作原理与NAT网络,但是当我切换到桥我收到以下错误:

Failed to open a session for the virtual machine class. Failed to open/create the internal network 'HostInterfaceNetworking-Realtek PCIe GBE Family Controller' (VERR_INTNET_FLT_IF_NOT_FOUND). Failed to attach the network LUN (VERR_INTNET_FLT_IF_NOT_FOUND).

任何人都知道如何解决这个问题,我试图重新安装虚拟箱,我试图安装在不同的计算机,但它仍然给我同样的错误。

answer1: 回答1:

This works perfectly:

VBoxManage modifyvm "${VB_VM_NAME}" --nic${NCARD} \
    bridged --bridgeadapter${NCARD} ${VB_VM_HOST_NET_ADAPTER}"

这个作品完美:

VBoxManage modifyvm "${VB_VM_NAME}" --nic${NCARD} \
    bridged --bridgeadapter${NCARD} ${VB_VM_HOST_NET_ADAPTER}"
answer2: 回答2:

To get bridged networking working below are the set of commands:

NCARD=2 # Corresponds to eth1 on Guest (change accordingly)
VB_VM_HOST_NET_ADAPTER="eth0" # Host network adapter
VBoxManage modifyvm "${VB_VM_NAME}" --nic${NCARD} \
 bridged --bridgeadapter${NCARD} ${VB_VM_HOST_NET_ADAPTER}

Ref: http://virtualbox.guru

要获得桥接网络工作下面是命令集:

NCARD=2 # Corresponds to eth1 on Guest (change accordingly)
VB_VM_HOST_NET_ADAPTER="eth0" # Host network adapter
VBoxManage modifyvm "${VB_VM_NAME}" --nic${NCARD} \
 bridged --bridgeadapter${NCARD} ${VB_VM_HOST_NET_ADAPTER}

参考:http://virtualbox.guru

ubuntu  virtual-machine  virtualbox