标签: linux-kernel

如何签署内核模块 Ubuntu 18.04

我是使用 Ubuntu 的新手。我正在尝试安装 Genymotion,以便我可以访问 android 模拟器。为了使用 Genymotion,我需要有 VirtualBox。我安装了 VirtualBox,但似乎我需要签署一个内核模块......我真的不知道该怎么做。这是我运行后收到的错误消息/sbin/vboxconfig

vboxdrv.sh: Stopping VirtualBox services.
vboxdrv.sh: Starting VirtualBox services.
vboxdrv.sh: Building VirtualBox kernel modules.
vboxdrv.sh: failed: modprobe vboxdrv failed. Please use 'dmesg' to find out why.

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 …
Run Code Online (Sandbox Code Playgroud)

virtualbox ubuntu linux-kernel

45
推荐指数
4
解决办法
8万
查看次数

有没有可能让OOM杀手更早介入?

我尝试将我的开发系统调整到最大的可靠性。我禁用了交换,因为对于 GUI 使用,它主要以这种方式使机器无响应,不再可用。然而,如果激进的应用程序吃掉了内存,一些机制似乎会以速度为代价充分利用它。没有硬盘交换操作,但系统同样也没有响应。所以我想让 OOM 杀手在系统对内存增益做出任何特殊努力之前启动。例如,如果可用物理内存少于 100 MB,是否可以配置 OOM 杀手来采取行动?

memory-management linux-kernel

44
推荐指数
4
解决办法
1万
查看次数

如何获取静态内置到 linux 内核中的活动驱动程序列表?

虽然我可以使用lsmod它来显示当前活动的内核模块,但我如何才能看到哪些驱动程序静态内置到内核中并且当前处于活动状态?

drivers linux-kernel kernel-module

43
推荐指数
3
解决办法
5万
查看次数

无法安装 VIrtualbox,`"Specify KERN_DIR=<directory>"` -- 将 Virtual Box 安装到 Debian?

我收到此错误:

Makefile:181: *** 错误:无法找到当前 Linux 内核的来源。指定 KERN_DIR= 并再次运行 Make。停止。

基本上我在做:

$ sudo /etc/init.d/vboxdrv setup
Removing existing VirtualBox non-DKMS kernel modules       [  OK  ]
Building the VirtualBox Guest Additions kernel modules
The headers for the current running kernel were not found. If the following
module compilation fails then this could be the reason.
The missing package can be probably installed with
yum install kernel-devel-2.6.32-573.18.1.el6.x86_64

Building the main Guest Additions module                   [FAILED]
(Look at /var/log/vboxadd-install.log to find out what went wrong)
Run Code Online (Sandbox Code Playgroud)

错误是: …

debian virtualbox linux-kernel

39
推荐指数
2
解决办法
13万
查看次数

目录 - Linux 中的 /sys

/sysLinux 系统上的目录内部发生了什么?

linux linux-kernel

38
推荐指数
2
解决办法
5万
查看次数

为什么Linux SCSI子系统驱动硬件与SCSI没有明显的相关性?

如果没有相关知识,我通常会认为 SATA、SCSI 和 USB 海量存储由不同的驱动程序驱动。然而在 Linux 中,SCSI 子系统驱动所有这些。

为什么 Linux 使用 SCSI 子系统来驱动与 SCSI 没有明确关系的东西?为什么 NVMe 和(历史上)PATA 不支持 SCSI 子系统的一部分?

linux hard-drive drivers scsi linux-kernel

34
推荐指数
3
解决办法
4050
查看次数

VirtualBox Ubuntu Guest Additions 未安装:modprobe vboxsf 失败

我刚刚在虚拟机上安装了这个软件,我从 ubuntu 官方网站下载了 ISO,这是最新的 LTS。

我尝试使用“插入 Guest Additions CD 映像”安装 Guest Additions。结果:

Verifying archive integrity... All good.
Uncompressing VirtualBox 5.2.0 Guest Additions for Linux........
VirtualBox Guest Additions installer
Removing installed version 5.2.0 of VirtualBox Guest Additions...
Copying additional installer modules ...
Installing additional modules ...
VirtualBox Guest Additions: Building the VirtualBox Guest Additions 
kernel modules.
VirtualBox Guest Additions: Look at /var/log/vboxadd-setup.log to find 
out what went wrong
VirtualBox Guest Additions: Running kernel modules will not be replaced 
until the system …
Run Code Online (Sandbox Code Playgroud)

virtualbox ubuntu linux-kernel

33
推荐指数
3
解决办法
11万
查看次数

“sudo -s”实际上是做什么的?

我正在使用 ubuntu 10.04。

我注意到在终端运行后:

sudo -s
Run Code Online (Sandbox Code Playgroud)

提示从:

my_user@my_hostname
Run Code Online (Sandbox Code Playgroud)

到:

root@my_hostname
Run Code Online (Sandbox Code Playgroud)

似乎它更改为root权限。

但是当我在这里查看sudocommand的文档时,它解释了另一个故事,谁能向我解释到底在做什么?sudo -ssudo -s

linux command-line ubuntu linux-kernel ubuntu-10.04

30
推荐指数
3
解决办法
5万
查看次数

在 Debian 内核中启用用户命名空间

我想弄清楚如何在我的内核中启用用户命名空间功能(我认为是 CAP_SYS_USER_NS)。我正在使用 Debian Stretch,内核 4.6.0-1-amd64。

我的假设是有一种方法可以打开用户命名空间并重新编译内核。经过几个小时的搜索,我可以在 Ubuntu ( https://blog.tutum.co/2013/12/14/enabling-the-user-namespace-in-ubuntu-13-10-saucy/ ) 但不是 Debian(问题可能是我走错了路,所以我的搜索偏离了基础)。

我的最终目标是启用这些以跟上显然需要在内核中启用用户命名空间的 Docker 和 Google 沙箱(例如,我的 Chrome 容器不再工作)。

debian linux-kernel

30
推荐指数
1
解决办法
6万
查看次数

如何将 vmlinuz 解压缩到 vmlinux?

我已经尝试过解压缩、gzip 和所有其他作为 google 结果出现的解决方案,但这些对我不起作用。

要仅获取 GZ 签名的图像搜索 - 1f 8b 08 00.

> od -A d -t x1 vmlinuz | grep '1f 8b 08 00'
0024576 24 26 27 00 ae 21 16 00 1f 8b 08 00 7f 2f 6b 45
Run Code Online (Sandbox Code Playgroud)

所以图像开始于24576+8 => 24584。然后只需从该点复制图像并解压缩它 -

> dd if=vmlinuz bs=1 skip=24584 | zcat > vmlinux
1450414+0 records in
1450414+0 records out
1450414 bytes (1.5 MB) copied, 6.78127 s, 214 kB/s
Run Code Online (Sandbox Code Playgroud)

从在线论坛逐字获得这些说明:http : //www.codeguru.com/forum/showthread.php? t=415186

这个过程对我不起作用,最终会给出错误,指出文件未找到 0024576 …

linux compression gzip linux-kernel 7-zip

22
推荐指数
3
解决办法
5万
查看次数