Date: Sat, 30 Dec 2017 01:10:53 -0500 From: Shawn Webb <shawn.webb@hardenedbsd.org> To: freebsd-virtualization@freebsd.org Subject: Unable to use renamed tap device Message-ID: <20171230061053.ui4wc4yqw7szsbuw@mutt-hbsd>
next in thread | raw e-mail | index | archive | help
--tpupydl7rq2r67qv Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hey All, I'm in the process of reorganizing my bhyve setup on my development laptop. I'd like to have rename the tap devices to match the name of the VM so that it's easier to keep track of. Otherwise, I have to keep a spreadsheet of (tap3 -> win10-vm, tap4 -> fbsd-vm). It appears bhyve doesn't attach renamed tap devices. Here's the steps I used: ifconfig bridge0 create ifconfig tap0 create name fbsd-01 ifconfig bridge0 addm em0 addm fbsd-01 up sh /usr/share/examples/bhyve/vmrun.sh -t fbsd-01 [normal vmrun.sh arguments= here] (In this example, em0 is the physical network device connected to the LAN. I want to share em0 with the host and the guest via the bridge.) The net.link.tap.up_on_open sysctl node is set to 1. Normally, when bhyve starts up (with tap0 instead of fbsd-01), it opens the tap device and UPs it. I'm not seeing that same behavior with a renamed tap interface: $ ifconfig ld-03_01 ld-03_01: flags=3D8903<UP,BROADCAST,PROMISC,SIMPLEX,MULTICAST> metric 0 mtu= 1500 options=3D80000<LINKSTATE> ether 00:bd:df:e9:f6:04 groups: tap media: Ethernet autoselect status: no carrier nd6 options=3D29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL> So, it seems to me that bhyve doesn't like it when tap devices are renamed. Can anyone shed some light on this? Thanks, --=20 Shawn Webb Cofounder and Security Engineer HardenedBSD Tor-ified Signal: +1 443-546-8752 GPG Key ID: 0x6A84658F52456EEE GPG Key Fingerprint: 2ABA B6BD EF6A F486 BE89 3D9E 6A84 658F 5245 6EEE --tpupydl7rq2r67qv Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEKrq2ve9q9Ia+iT2eaoRlj1JFbu4FAlpHLesACgkQaoRlj1JF bu4VrRAArGaSuhDPhy6J21kHF7cPCJvFQxXvIqGzA1o/GaPx56EI6KpRc4Urm85Q uhpzWWV/c6SmUSgqGwIFmQI3VNlYfkn3yELKVzLT9ohxdsm/CfctFWhGxfzl4166 am0XjNj7f6wYPhqrY7i7KXzWy4BzAJiFuppDurUWIU4J8OslPr6jHLBiUo7I1lUO JVR1x6z68wgETK/3TOJhi3RExPuozCU0Sb//bdZmv5lRiqF+Tk6L3G3Gg57R2Sen y3z4V/pYJGeSFLGNgROXQv7H8p/7IW2p/y+mz2msVT1ZF/JJ+/Bm/+ScQOWDRSPs esiIvHuMDPqGb93yS2t2QX/ZERqfOq3QAtIdJzRd1dHUuVjM3qwYwngkgu9bU1E2 kdMT/yaR9HaTDNU58ueZDQcipOMu1QSzzAfhgzmadFXbsQySQnT1jrMfV5jfeTwY T9BPnine6W1f1NKvl3L2wrChzdyF/4cNdluT7y2si6p1TIeR1HLwTxMkC5ZSgPK0 1i3igLEEX0aq2tR9TkVo0rPWvGqDAEGVCJmwp5Hwu8+7vIvtHpi4/4+vLkahbA4c vJ4S45mMqEPBnQcY26QZ1NH9li/YUqDyHksQ2H22y8LFpeLtPLi0NfyDThIYrsaM k2RmUdp8iOG1e79S/Iqu4O1bsJI2kj82NMod9E5YnaOJl4NNIxY= =BB1k -----END PGP SIGNATURE----- --tpupydl7rq2r67qv--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20171230061053.ui4wc4yqw7szsbuw>