In grub-core/net/drivers/emu/emunet.c there is this check: #ifdef __FreeBSD__ fd = open ("/dev/tap0", O_RDWR | O_NONBLOCK); if (fd < 0) return; #endif It will always cause tap0 to be created, even if it will not be used by bhyve because a different tap interface has been allocated by "ifconfig tap create". If this check is really necessary then it would be great if a different tap device could be specified somehow (perhaps with an environment variable to avoid changing the code too much) What do you think?
Assigned to Peter, since he handles the grub-bhyve development upstream.
Yeh, no need for that code: it was prototype stuff to see if grub networking was Ok. I'll see if it's easy to control with an option: otherwise, I'll just remove it.
Fixed (well, disabled) upstream with https://github.com/grehan-freebsd/grub2-bhyve/commit/dcb98890bf3ca1c0e166bccb5ed8b313695bf507