Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 24 Jan 2020 23:50:37 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 243576] sysutils/vm-bhyve: module vmm.ko  not loading in FreeBSD 13 on AMD64
Message-ID:  <bug-243576-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D243576

            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@FreeBSD.org
          Reporter: gdinolt@pacbell.net
                CC: churchers@gmail.com
                CC: churchers@gmail.com
             Flags: maintainer-feedback?(churchers@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=3D"$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.

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



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