[Bug 243576] sysutils/vm-bhyve: module vmm.ko not loading in FreeBSD 13 on AMD64

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Fri Jan 24 23:50:38 UTC 2020


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=243576

            Bug ID: 243576
           Summary: sysutils/vm-bhyve: module vmm.ko  not loading in
                    FreeBSD 13 on AMD64
           Product: Ports & Packages
           Version: Latest
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs at FreeBSD.org
          Reporter: gdinolt at pacbell.net
                CC: churchers at gmail.com
                CC: churchers at gmail.com
             Flags: maintainer-feedback?(churchers at gmail.com)

The VM command fails with error:

/usr/local/sbin/vm: ERROR: unable to load vmm.ko!

The error occurs because (at least in FreeBSD 13)

kldstat -qm vmm.ko

returns a value of 1, even if vmm.ko is already loaded.

The error is in /usr/local/lib/vm-bhyve/vm-util

-- vm-util      2020-01-24 15:43:46.495030000 -0800
+++ vm-util-new 2020-01-24 15:44:07.662656000 -0800
@@ -46,7 +46,7 @@
 #
 util::load_module(){
     local _mod="$1"
-    kldstat -qm ${_mod} >/dev/null 2>&1
+    kldstat -qn ${_mod} >/dev/null 2>&1
     if [ $? -ne 0 ]; then
         kldload ${_mod} >/dev/null 2>&1
         [ $? -eq 0 ] || util::err "unable to load ${_mod}.ko!"

I replaced the -qm with -qn, which seems to work at least as far as getting vm
to start.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-ports-bugs mailing list