bhyve vm-bhyve using wrong bridge

Hi,

I am trying to setup a bhyve ubuntu client with several interfaces.

Host-Interfaces:
- igb0
- igb0.20
- igb0.99
Code:
[root@jpknas /zroot/bhyve/.config]# vm switch list
NAME        TYPE      IFACE          ADDRESS  PRIVATE  MTU  VLAN  PORTS
public      standard  vm-public      -        no       -    -     -
igb0bridge  standard  vm-igb0bridge  -        no       -    -     igb0
iot         standard  vm-iot         -        no       -    -     igb0.99
gast        standard  vm-gast        -        no       -    -     igb0.20

[root@jpknas /zroot/bhyve/.config]# vm info docker
------------------------
Virtual Machine: docker
------------------------

  network-interface
    number: 0
    emulation: virtio-net
    virtual-switch: igb0bridge
    fixed-mac-address: 58:9c:fc:05:51:57
    fixed-device: -
    active-device: -
    desc: -
    mtu:
    bridge: vm-igb0bridge

  network-interface
    number: 1
    emulation: virtio-net
    virtual-switch: iot
    fixed-mac-address: 58:9c:fc:05:51:58
    fixed-device: -
    active-device: -
    desc: -
    mtu:
    bridge: vm-igb0bridge

  network-interface
    number: 2
    emulation: virtio-net
    virtual-switch: gast
    fixed-mac-address: 58:9c:fc:05:51:59
    fixed-device: -
    active-device: -
    desc: -
    mtu:
    bridge: vm-igb0bridge

vm-igb0bridge contains igb0 and tap0 (which is the first interface in this guest). vm-iot contains tap1 (but not igb0.20) etc. So the switch configuration seems messed up. What do I need to do to convince vm-bhybe to put igb0.20 in the vm-iot switch as well and have the guest use that bridge for the interface?

Regards
JP
 
I found it more easy to first create the bridge my self on the host and not use standard type
if you dont specify -t when running vm switch create it will do it for me (standard) which It didn't work well for me.

vm switch create -t manual -b my_bridge name (no need anything after that)
 
Yes I solved it with a manual switch for the interface as well. Got it to work somehow and will have to unify that stuff with the other vm-switches at some point. Thanks.
 
Back
Top