bhyve and multiple network devices

Juraj Lutter juraj at lutter.sk
Mon May 3 20:46:46 UTC 2021


Hi,

my bhyve command line (on 13.0-RELEASE) is:

/usr/sbin/bhyve -c 2 -m 4G -H -A -P -u -s 0:0,hostbridge -s 1:0,lpc -s 2:0,virtio-net,tap100 -s 3:0,virtio-net,priv0 -s 4:0,virtio-blk,/dev/zvol/zroot/data/minio/host0/root -l com1,/dev/nmdm100B mr

the result is:

device emulation initialization error: File exists

It works when using original interface name (tap105 in this case).

priv0 is renamed tap:
priv0: flags=8902<BROADCAST,PROMISC,SIMPLEX,MULTICAST> metric 0 mtu 1500
        options=80000<LINKSTATE>
        ether 58:9c:fc:10:2b:0b
        groups: tap
        media: Ethernet autoselect
        status: no carrier
        nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>

Am I doing something inadequate, is this an expected behavior or is this a kind of a bug?

Thanks.
otis

—
Juraj Lutter
XMPP: juraj (at) lutter.sk
GSM: +421907986576



More information about the freebsd-stable mailing list