Summary: | sysutils/vm-bhyve: module vmm.ko not loading in FreeBSD 13 on AMD64 | ||
---|---|---|---|
Product: | Ports & Packages | Reporter: | gdinolt |
Component: | Individual Port(s) | Assignee: | Dries Michiels <driesm> |
Status: | Closed Not Accepted | ||
Severity: | Affects Some People | CC: | churchers, driesm, editor, freebug, michaelo, pat |
Priority: | --- | Keywords: | needs-qa |
Version: | Latest | Flags: | bugzilla:
maintainer-feedback?
(churchers) |
Hardware: | amd64 | ||
OS: | Any |
Description
gdinolt
2020-01-24 23:50:37 UTC
Thank you for the report and patch. Could you include your proposed patch as an attachment please I recently upgraded from 13.1 to 13.2-RELEASE. I was using bhyve without issue prior to the upgrade. Since finishing the upgrade to 13.2-RELEASE, I have been unable to run VMs. The error is as noted in the original bug report: /usr/local/sbin/vm: ERROR: unable to load vmm.ko! I have checked my copy of /usr/local/lib/vm-bhyve/vm-util and it is using the -qm flag as noted below, not the -qn flag. Changing the relevant line to use -qn resolves the issue. What doees "kldstat -qm vmm" return? Probably not 1, its called as such in vm-bhyve not "kldstat -qm vmm.ko". I'm running 13.2 stable and I do not observe this issue at all. https://github.com/churchers/vm-bhyve/blob/master/lib/vm-util See line 79, where the function is called with "vmm" not "vmm.ko". The machine that was exhibiting this behavior is sadly no more. The motherboard turned out to be on the fritz and had to be replaced. I did not have a chance to do much troubleshooting beyond identifying the mobo as at issue. (One RAM rendered the system unbootable if populated; half the onboard USB simply disappeared after several hardware swaps as par of diagnosis, and some other gremlinish behavor). I chalk my issues up to the failing hardware. Nonetheless, with new hardware the -qn version remains functional. I've reverted back to -qm as that also works. To answer the specific question, of the binary combinations between '-n'/'-m' and 'vmm'/'vmm.ko', only '-m vmm.ko' fails, as expected. $ kldstat -n vmm Id Refs Address Size Name 4 1 0xffffffff82167000 579de0 vmm.ko $ kldstat -n vmm.ko Id Refs Address Size Name 4 1 0xffffffff82167000 579de0 vmm.ko $ kldstat -m vmm Id Refs Name 3 1 vmm $ kldstat -m vmm.ko kldstat: can't find module vmm.ko: No such file or directory gdinolt@pacbell.net is this still relevant? Yet another year has passed. Still in 1.6.0? Please track the bug in the vm-bhyve repo as FreeBSD does not appear to be the cause of the issue: https://github.com/churchers/vm-bhyve/issues/322 |