Bhyve:Ubuntu 实例的 tap0 桥接网络接口在启动期间超时

Bhyve:Ubuntu 实例的 tap0 桥接网络接口在启动期间超时

我正在尝试在 FreeNAS 9.10 下使用 iohyve 设置一个 ubuntu 实例,该实例将启动但在尝试提升网络接口时超时。

到目前为止,我已经尝试仔细检查所链接的点击列表:

[@freenas] /nonexistent# iohyve taplist
Listing all network taps:
HelperDrive/iohyve/ubuntuserver16......tap0

隧道设置为打开状态:

[@freenas] /nonexistent# sysctl net.link.tap.up_on_open
net.link.tap.up_on_open: 1

和我的 ifconfig 设置:

[@freenas] /nonexistent# ifconfig bridge0
bridge0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
    description: iohyve-bridge
    ether 02:XX:XX:XX:45:00
    nd6 options=9<PERFORMNUD,IFDISABLED>
    id 00:00:00:00:00:00 priority 32768 hellotime 2 fwddelay 15
    maxage 20 holdcnt 6 proto rstp maxaddr 2000 timeout 1200
    root id 00:00:00:00:00:00 priority 32768 ifcost 0 port 0
    member: tap0 flags=143<LEARNING,DISCOVER,AUTOEDGE,AUTOPTP>
            ifmaxaddr 0 port 5 priority 128 path cost 2000000

[@freenas] /nonexistent# ifconfig tap0
tap0: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric 0 mtu 1500
    description: iohyve-ubuntuserver16
    options=80000<LINKSTATE>
    ether 00:XX:XX:XX:01:00
    inet 0.0.0.0 netmask 0xff000000 broadcast 255.255.255.255 
    nd6 options=9<PERFORMNUD,IFDISABLED>
    media: Ethernet autoselect
    status: active
    Opened by PID 2710

当我启动 ubuntu 实例(通过iohyve start myUbuntuInstance)时,我注意到启动过程中出现以下错误:

[FAILED] Failed to start Raise network interfaces.
See 'systemctl status networking.service' for details.

运行 systemctl 只会显示以下内容:

ubuntuFreeNAS:~$ systemctl status networking.service | less
● networking.service - Raise network interfaces
   Loaded: loaded (/lib/systemd/system/networking.service; enabled; vendor preset: enabled)
   Active: failed (Result: timeout) since Fri 2017-04-07 15:40:57 PDT; 19min ago
     Docs: man:interfaces(5)
 Main PID: 796 (code=killed, signal=TERM)

Apr 07 15:35:57 ubuntuFreeNAS systemd[1]: Starting Raise network interfaces...
Apr 07 15:35:57 ubuntuFreeNAS ifup[796]: /sbin/ifup: waiting for lock on /run/network/ifstate.enp0s3
Apr 07 15:40:57 ubuntuFreeNAS systemd[1]: networking.service: Start operation timed out. Terminating.
Apr 07 15:40:57 ubuntuFreeNAS systemd[1]: Failed to start Raise network interfaces.
Apr 07 15:40:57 ubuntuFreeNAS systemd[1]: networking.service: Unit entered failed state.
Apr 07 15:40:57 ubuntuFreeNAS systemd[1]: networking.service: Failed with result 'timeout'.

我是虚拟网络方面的新手 - 我还可以研究哪些其他东西来调试这个问题?

答案1

在我的特定 freeNAS 设置上,除了iohyve 创建的接口之外,我还有一个bridge1接口(其已经将我的物理接口作为成员)。ix1bridge0

我的解决方案是忽略bridge0并通过使用then添加tap0接口。bridge1ifconfig bridge0 deletem tap0ifconfig bridge1 addm tap0

相关内容