Usually I only have to re-run the script part, but after that failed I tried the whole thing over again but still no go. Here's my procedure:
Code: Select all
sudo -i
mkdir /root/module-signing
cd /root/module-signing
openssl req -new -x509 -newkey rsa:2048 -keyout MOK.priv -outform DER -out MOK.der -nodes -days 36500 -subj "/CN=ME/"
chmod 600 MOK.priv
mokutil --import /root/module-signing/MOK.der
<password>
<password>
(Enroll Key)
Run Script:
Code: Select all
#!/bin/bash
for modfile in $(dirname $(modinfo -n vboxdrv))/*.ko; do
echo "Signing $modfile"
/usr/src/linux-headers-$(uname -r)/scripts/sign-file sha256 \
/root/module-signing/MOK.priv \
/root/module-signing/MOK.der "$modfile"
done
Code: Select all
sudo modprobe vboxdrv
sudo /sbin/vboxconfig
Failed to open a session for the virtual machine Hostname.
The virtual machine 'Hostname' has terminated unexpectedly during startup with exit code 1 (0x1).
Result Code: NS_ERROR_FAILURE (0x80004005)
Component: MachineWrap
Interface: IMachine {85cd948e-a71f-4289-281e-0ca7ad48cd89}
Screenshot of additional error detail:
https://imgur.com/a/RoHNX
Also here: