Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 4 May 2021 09:23:07 -0400
From:      Shawn Webb <shawn.webb@hardenedbsd.org>
To:        Juraj Lutter <juraj@lutter.sk>
Cc:        freebsd-stable stable <freebsd-stable@freebsd.org>
Subject:   Re: bhyve and multiple network devices
Message-ID:  <20210504132307.3kggcui5t63biqw7@mutt-hbsd>
In-Reply-To: <72FC2AD5-7E59-4C3D-8E4A-19AAC6608304@lutter.sk>
References:  <72FC2AD5-7E59-4C3D-8E4A-19AAC6608304@lutter.sk>

next in thread | previous in thread | raw e-mail | index | archive | help

--pr5pdjzyeyo67tf4
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Mon, May 03, 2021 at 10:46:34PM +0200, Juraj Lutter wrote:
> Hi,
>=20
> my bhyve command line (on 13.0-RELEASE) is:
>=20
> /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/zro=
ot/data/minio/host0/root -l com1,/dev/nmdm100B mr
>=20
> the result is:
>=20
> device emulation initialization error: File exists
>=20
> It works when using original interface name (tap105 in this case).
>=20
> priv0 is renamed tap:
> priv0: flags=3D8902<BROADCAST,PROMISC,SIMPLEX,MULTICAST> metric 0 mtu 1500
>         options=3D80000<LINKSTATE>
>         ether 58:9c:fc:10:2b:0b
>         groups: tap
>         media: Ethernet autoselect
>         status: no carrier
>         nd6 options=3D29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
>=20
> Am I doing something inadequate, is this an expected behavior or is this =
a kind of a bug?

Unfortunately, bhyve doesn't support renamed tap devices. You'll need
to keep the original tapN name.

What you might want to experiment with is setting a description for
the tap device. For example:

ifconfig tapN description "private vNIC"

Thanks,

--=20
Shawn Webb
Cofounder / Security Engineer
HardenedBSD

https://git.hardenedbsd.org/hardenedbsd/pubkeys/-/raw/master/Shawn_Webb/03A=
4CBEBB82EA5A67D9F3853FF2E67A277F8E1FA.pub.asc

--pr5pdjzyeyo67tf4
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQIzBAABCAAdFiEEA6TL67gupaZ9nzhT/y5nonf44foFAmCRSrUACgkQ/y5nonf4
4fp9DBAAgRlpHQohkC1SDVj8wxegprfHCA4945sgGGvZ+CIJVHnYAFsZWvqD4t+Y
pViNVY3o3irj0/FiELQ/iuRZr94HiRZtScER9rZW4X42EqBj4T/DDV8cpXhvFMvS
HJPIzDn+4RHyrDw7ffzjfcx+VMIFQdXJgnYL6kwj/1sfsqwPaSh/eFHpj83xjdJj
GqegEDxoPvi2zoeGImflcYlfOHoiroj+8edrTZzVtbJs/vqf6ArVwJ4poCqRQaJ4
cGdfr9as4JcyHy6FIrGgHM37F8tzhGWJWDPGVvIARAp0F6HF3gNKaczGUGEC1rZf
Lssv1IpF5nzHaubPehc6kh5nIgbKptQXr1P9F5Ewq++XoObrxG0oOYbOuDc9FYPo
gUSD9IY8NeyfgegXfeArtmY5GJqYfg1ppfthw+wjaizffH9ZW7MOxxiJrbMdeLKH
9GtKfRA7hBEZ+YMLvWJlnyWqhNSBbHaheIro8gbzFZRwhLMYhayWa2fvxauOpsw5
Rfyz7XE4SoxfBvnBaLLf5tyhCs4KA9iHgBq/zG5pVTn5BhEA8hrdSp1SGPHcW8a8
XDrbj3G4nJ3ilHf5CcrTsk6dRbCQFRKnkskX4mWsfm8Us+gfLGEFg8X5AOFt4XMh
hwAN432O2obioNEOWl9HatdwP6Kh47FMOuDHW9nOX43rGycHM80=
=Iqxv
-----END PGP SIGNATURE-----

--pr5pdjzyeyo67tf4--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20210504132307.3kggcui5t63biqw7>