From 0d9dbc763e641a3b0f4abf805ca25d389a41564b Mon Sep 17 00:00:00 2001
From: Cullum Smith <cullum@sacredheartsc.com>
Date: Thu, 20 Mar 2025 21:40:43 -0400
Subject: load linux abi correctly on hypervisor

---
 scripts/hostclass/freebsd_hypervisor | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/scripts/hostclass/freebsd_hypervisor b/scripts/hostclass/freebsd_hypervisor
index 4e392e7..fcf46ba 100644
--- a/scripts/hostclass/freebsd_hypervisor
+++ b/scripts/hostclass/freebsd_hypervisor
@@ -31,14 +31,16 @@ sysrc -v kld_list+='kgssapi kgssapi_krb5'
 set_sysctl vfs.zfs.vol.mode=2
 
 # Load required kernel modules.
-load_kernel_module vmm nmdm linux linux64
+load_kernel_module vmm nmdm
 set_loader_conf \
   vmm_load=YES \
   nmdm_load=YES \
-  linux_load=YES \
-  linux64_load=YES \
   kern.racct.enable=1
 
+# Enable Linux ABI
+sysrc -v linux_enable=YES
+service linux start
+
 # Install vm/jail management dependencies.
 pkg install -y \
   bhyve-firmware \
-- 
cgit v1.2.3