Bug 246879 - Kernel module vmm and sysctl net.link.tap.up_on_open=1
Summary: Kernel module vmm and sysctl net.link.tap.up_on_open=1
Status: Closed Not A Bug
Alias: None
Product: Base System
Classification: Unclassified
Component: bhyve (show other bugs)
Version: 12.1-RELEASE
Hardware: arm64 Any
: --- Affects Only Me
Assignee: freebsd-virtualization (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-05-30 21:20 UTC by Brandon Helsley
Modified: 2020-06-04 15:43 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Brandon Helsley 2020-05-30 21:20:04 UTC
Without kernel modules preloaded in /boot/loader.conf
And sysctl variable preloaded in /etc/sysctl.conf bhyve will not boot the installer. It stops at "missing /boot/entropy.
Comment 1 Mark Johnston freebsd_committer freebsd_triage 2020-06-01 16:13:46 UTC
Could you elaborate a bit?  Which kernel modules are you referring to?
Comment 2 Brandon Helsley 2020-06-04 13:43:39 UTC
Sorry I'm new. I just read the guidelines for reporting a problem.


   Anyway, the kernel module vmm has to be prepared in the /boot/loader.conf and the sysctl variable net.link.tap.up_on_open=1 has to be preloaded in /etc/sysctl.conf for bhyve to boot to the installer after main welcome prompt.
Comment 3 Mark Johnston freebsd_committer freebsd_triage 2020-06-04 15:43:13 UTC
(In reply to Brandon Helsley from comment #2)
What exactly is the bug?  Indeed, vmm needs to be loaded on the system before you can use bhyve at all.  It can be loaded using loader.conf or with kldload.  If you use a bhyve wrapper script like vmrun, this will be done automatically.

net.link.tap.up_on_open=1 needs to be set if you are using a tap interface on the host to pass packets through to the virtual network interface in the guest.  That is documented: https://www.freebsd.org/doc/handbook/virtualization-host-bhyve.html