Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installation fails on 10.14.6 #111

Open
Luflosi opened this issue Sep 27, 2019 · 1 comment
Open

Installation fails on 10.14.6 #111

Luflosi opened this issue Sep 27, 2019 · 1 comment

Comments

@Luflosi
Copy link

Luflosi commented Sep 27, 2019

After updating to the latest macOS version, I could no longer login to any targets because of an IO error so I tried to install iSCSIInitiator again but I got the following error during installation:

/Library/Extensions/iSCSIInitiator.kext failed to load - (libkern/kext) link error; check the system/kernel logs for errors or try kextutil(8).

I have the develop branch checked out and I tried running build.sh and then install.sh.
SIP is disabled.
When replacing sudo kextload $KEXT_DST/$KEXT in the install.sh script with sudo kextutil -v 4 $KEXT_DST/$KEXT I get the following error:

Kext library architecture set to x86_64.
Defaulting to kernel file '/System/Library/Kernels/kernel'
Kext library recording diagnostics for: validation authentication dependencies warnings.
Notice: /Library/Extensions/iSCSIInitiator.kext has debug properties set.
Reading loaded kext info from kernel.
Reading loaded kext info from kernel.
Kext with invalid signatured (-67062) allowed: <OSKext 0x7f9588c18ae0 [0x7fffa09f78e0]> { URL = "file:///Library/Extensions/iSCSIInitiator.kext/", ID = "com.github.iscsi-osx.iSCSIInitiator" }
Code Signing Failure: not code signed
/Library/Extensions/iSCSIInitiator.kext appears to be loadable (not including linkage for on-disk libraries).
Reading loaded kext info from kernel.
Loading /Library/Extensions/iSCSIInitiator.kext.
Reading load info for 8 kexts.
Reading loaded kext info from kernel.
Disabling KextAudit: SIP is off
KextAudit initialized: audit=F
Adding /Library/Extensions/iSCSIInitiator.kext to mkext.
/Library/Extensions/iSCSIInitiator.kext added 155688-byte noncompressed executable to mkext.
Created mkext for architecture x86_64 containing 2 kexts.
Loading /Library/Extensions/iSCSIInitiator.kext.
(kernel) Received request from user space to load kext com.github.iscsi-osx.iSCSIInitiator.
(kernel) Loading kext com.github.iscsi-osx.iSCSIInitiator.
(kernel) Allocated link buffer for kext com.github.iscsi-osx.iSCSIInitiator at 0xffffff7fa6e34000 (126976 bytes).
(kernel) kxld[com.github.iscsi-osx.iSCSIInitiator]: The super class vtable '__ZTV9IOService' for vtable '__ZTV35com_github_iscsi_osx_iSCSIInitiator' is out of date. Make sure your kext has been built against the correct headers.
(kernel) kxld[com.github.iscsi-osx.iSCSIInitiator]: The super class vtable '__ZTV13IOEventSource' for vtable '__ZTV35com_github_iscsi_osx_iSCSITaskQueue' is out of date. Make sure your kext has been built against the correct headers.
(kernel) kxld[com.github.iscsi-osx.iSCSIInitiator]: The super class vtable '__ZTV33IOSCSIParallelInterfaceController' for vtable '__ZTV36com_github_iscsi_osx_iSCSIVirtualHBA' is out of date. Make sure your kext has been built against the correct headers.
(kernel) kxld[com.github.iscsi-osx.iSCSIInitiator]: The super class vtable '__ZTV12IOUserClient' for vtable '__ZTV39com_github_iscsi_osx_iSCSIHBAUserClient' is out of date. Make sure your kext has been built against the correct headers.
(kernel) kxld[com.github.iscsi-osx.iSCSIInitiator]: The super class vtable '__ZTV13IOEventSource' for vtable '__ZTV39com_github_iscsi_osx_iSCSIIOEventSource' is out of date. Make sure your kext has been built against the correct headers.
(kernel) Can't load kext com.github.iscsi-osx.iSCSIInitiator - link failed.
(kernel) Failed to load executable for kext com.github.iscsi-osx.iSCSIInitiator.
(kernel) Kext com.github.iscsi-osx.iSCSIInitiator failed to load (0xdc008016).
(kernel) Failed to load kext com.github.iscsi-osx.iSCSIInitiator (error 0xdc008016).
(kernel) Kext com.github.iscsi-osx.iSCSIInitiator removing all personalities naming it from the IOCatalogue.
Failed to load /Library/Extensions/iSCSIInitiator.kext - (libkern/kext) link error.
Failed to load /Library/Extensions/iSCSIInitiator.kext - (libkern/kext) link error.
Check library declarations for your kext with kextlibs(8).

I tried installing the additional components or whatever in Xcode, removing all the files in the git repo and restoring the ones tracked by git and rebooting multiple times but that didn't help.

@ndroftheline
Copy link

I'm seeing similar behaviour, but this is in a freshly installed VM, compiled from a fresh git clone.

$ sudo ./install.sh 
/Library/Extensions/iSCSIInitiator.kext failed to load - (libkern/kext) link error; check the system/kernel logs for errors or try kextutil(8).
/Library/LaunchDaemons/com.github.iscsi-osx.iscsid.plist: service already loaded\

it's probably not as mysterious as it seems, but i can run iscsictl command - just receiving permissions denied errors after long timeout-seeming pauses.

$ iscsictl modify initiator-config -node-name iqn.2020-02.net.otl:macos-f
iscsictl: Permission denied
macos-f:~ test$ sudo !!
sudo iscsictl modify initiator-config -node-name iqn.2020-02.net.otl:macos-f
Password:
iscsictl: Permission denied

is there anything else i can provide to help troubleshoot? keen to try and get this working (:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants