Unable to load RTL8111 kext: Authenticating extension failed: Bad code signature. Ventura.

Hi. I'm hoping to use my RTL8111 network card. I have it pcie passed through to a Ventura VM. The device shows up in System Information but there is no driver loaded.

I found the RealtekRTL8111 driver from here: https://github.com/Mieze/RTL8111_driver_for_OS_X and downloaded the latest release, but I'm unable to load the kext.

I first tried placing the kext in EFI/CLOVER/kexts/Other and then EFI/CLOVER/kexts/13, but it didn't get loaded either way.

So I placed the kext in /Library/Extensions but it also wouldn't load. When I run sudo kextload /Library/Extensions/RealtekRTL8111.kext I get this error:

Executing: /usr/bin/kmutil load -p /Library/Extensions/RealtekRTL8111.kext Error Domain=KMErrorDomain Code=29 "Authenticating extension failed: Kext com.insanelymac.RealtekRTL8111 v2.4.2 in executable kext bundle com.insanelymac.RealtekRTL8111 at /Library/Extensions/RealtekRTL8111.kext: Authenticating extension failed: Bad code signature" UserInfo={NSLocalizedDescription=Authenticating extension failed: Kext com.insanelymac.RealtekRTL8111 v2.4.2 in executable kext bundle com.insanelymac.RealtekRTL8111 at /Library/Extensions/RealtekRTL8111.kext: Authenticating extension failed: Bad code signature} 

Any thoughts about what could be going wrong? I've heard that people have got this driver working in Ventura. SIP is disabled too. These are the permissions on the kext:

stat RealtekRTL8111.kext 16777220 3269163 drwxr-xr-x 3 root wheel 0 96 "May 17 23:25:03 2024" "May 17 23:25:01 2024" "May 17 23:33:05 2024" "May 17 23:25:01 2024" 4096 0 0 RealtekRTL8111.kext 

And this is the card model:

Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 15) 

Thanks.

submitted by /u/themusicalduck
[link] [comments]