How to sign the Kernel?

New to Debian (Or Linux in general)? Ask your questions here!

How to sign the Kernel?

Postby hack3rcon » 2019-11-26 10:15

Hello,
I want to use the new version of VirtualBox and my system using EUFI. The VirtualBox show me an error and can't launch. Someone told me that I must use sign the Kernel.
Any idea?

Thank you.
hack3rcon
 
Posts: 312
Joined: 2015-02-16 09:54

Re: How to sign the Kernel?

Postby peer » 2019-11-26 12:28

I have got the same question;
Problem arose after update yesterday on my debian testing kde

kernel 5.2.03: virtualbox works ok
kernel 5.3.02: virtualbox does not work

Virtualbox asked me to execute a s root: '/sbin/vboxconfig' . Here is the output:
Code: Select all
root@debian:~# /sbin/vboxconfig
vboxdrv.sh: Stopping VirtualBox services.
vboxdrv.sh: Starting VirtualBox services.
vboxdrv.sh: Building VirtualBox kernel modules.
vboxdrv.sh: failed: Look at /var/log/vbox-setup.log to find out what went wrong.

There were problems setting up VirtualBox.  To re-start the set-up process, run
  /sbin/vboxconfig
as root.  If your system is using EFI Secure Boot you may need to sign the
kernel modules (vboxdrv, vboxnetflt, vboxnetadp, vboxpci) before you can load
them. Please see your Linux system's documentation for more information.
peer
 
Posts: 79
Joined: 2017-03-26 10:14

Re: How to sign the Kernel?

Postby Head_on_a_Stick » 2019-11-26 15:32

Debian's kernels are already signed (with Microsoft's key) but you can use sbsigntool.
Don't break DebianHow to report bugs

SharpBang GNU/Linux® — a pre-configured Openbox/Tint2 desktop running on Debian stable
User avatar
Head_on_a_Stick
 
Posts: 10695
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: How to sign the Kernel?

Postby stevepusser » 2019-11-27 00:23

What version of Virtual Box, and how did you get it?

Both vital to any meaningful answer, yet left out of both questions, for some reason.
The MX Linux repositories: Backports galore! If we don't have something, just ask and we'll try--we like challenges. New packages: Clipgrab 3.8.6, Hedgewars 1.0.0, PulseEffects 4.6.9, Telegram-desktop 1.8.15, Pale Moon 28.8.0, KeepassXC 2.5.1
User avatar
stevepusser
 
Posts: 11321
Joined: 2009-10-06 05:53

Re: How to sign the Kernel?

Postby peer » 2019-11-27 06:09

I use virtualbox 6.0.12 r133076 (Qt5.12.5).
I downloaded it from the virtualbox website and and installed it long time ago. I updated it one or two months ago again with the latest version.

This latest version works with kernel 5.2.03 but not with kernel 5.3.02.

I think my situation is the same as the described in the question of hack3rcon who originally posted the question.

edit:
I just checked the virtualbox website and noticed that I did not have the latest version. So I downloaded the latest version (133895) and virtualbox works again in kernel 5.2.02. My problem is solved but I do not know if hack3rconś problem is solved.
peer
 
Posts: 79
Joined: 2017-03-26 10:14

Re: How to sign the Kernel?

Postby stevepusser » 2019-12-02 19:34

If you need a version that builds against the 5.4 kernels, such as the current Liqourix kernel or the upstream Debian one I've just backported here: https://build.opensuse.org/package/show ... source-5.4

I have a patched version of 6.0.14 that does build and work on those kernels: https://build.opensuse.org/project/show ... box-buster

(The patch seems to say that this version will only build against 4.16 through 5.4 kernels, though)
The MX Linux repositories: Backports galore! If we don't have something, just ask and we'll try--we like challenges. New packages: Clipgrab 3.8.6, Hedgewars 1.0.0, PulseEffects 4.6.9, Telegram-desktop 1.8.15, Pale Moon 28.8.0, KeepassXC 2.5.1
User avatar
stevepusser
 
Posts: 11321
Joined: 2009-10-06 05:53

Re: How to sign the Kernel?

Postby hack3rcon » 2019-12-03 06:16

peer wrote:I use virtualbox 6.0.12 r133076 (Qt5.12.5).
I downloaded it from the virtualbox website and and installed it long time ago. I updated it one or two months ago again with the latest version.

This latest version works with kernel 5.2.03 but not with kernel 5.3.02.

I think my situation is the same as the described in the question of hack3rcon who originally posted the question.

edit:
I just checked the virtualbox website and noticed that I did not have the latest version. So I downloaded the latest version (133895) and virtualbox works again in kernel 5.2.02. My problem is solved but I do not know if hack3rconś problem is solved.

My Kernel version is:
Code: Select all
4.19.0-5-amd64 #1 SMP Debian 4.19.37-5+deb10u2 (2019-08-08) x86_64 GNU/Linux
hack3rcon
 
Posts: 312
Joined: 2015-02-16 09:54

Re: How to sign the Kernel?

Postby hack3rcon » 2019-12-03 06:44

stevepusser wrote:What version of Virtual Box, and how did you get it?

Both vital to any meaningful answer, yet left out of both questions, for some reason.

I'm using the last version of VirtualBox(virtualbox-6.0_6.0.14-133895_Debian_buster_amd64).
hack3rcon
 
Posts: 312
Joined: 2015-02-16 09:54

Re: How to sign the Kernel?

Postby hack3rcon » 2019-12-03 11:59

How can I sign "vboxdrv, vboxnetflt, vboxnetadp, vboxpci" with "sbsign" tool?
hack3rcon
 
Posts: 312
Joined: 2015-02-16 09:54


Return to Beginners Questions

Who is online

Users browsing this forum: fred44nl and 5 guests

fashionable