我是使用 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) 我尝试将我的开发系统调整到最大的可靠性。我禁用了交换,因为对于 GUI 使用,它主要以这种方式使机器无响应,不再可用。然而,如果激进的应用程序吃掉了内存,一些机制似乎会以速度为代价充分利用它。没有硬盘交换操作,但系统同样也没有响应。所以我想让 OOM 杀手在系统对内存增益做出任何特殊努力之前启动。例如,如果可用物理内存少于 100 MB,是否可以配置 OOM 杀手来采取行动?
虽然我可以使用lsmod它来显示当前活动的内核模块,但我如何才能看到哪些驱动程序静态内置到内核中并且当前处于活动状态?
我收到此错误:
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)
错误是: …
如果没有相关知识,我通常会认为 SATA、SCSI 和 USB 海量存储由不同的驱动程序驱动。然而在 Linux 中,SCSI 子系统驱动所有这些。
为什么 Linux 使用 SCSI 子系统来驱动与 SCSI 没有明确关系的东西?为什么 NVMe 和(历史上)PATA 不支持 SCSI 子系统的一部分?
我刚刚在虚拟机上安装了这个软件,我从 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) 我正在使用 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
我想弄清楚如何在我的内核中启用用户命名空间功能(我认为是 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 容器不再工作)。
我已经尝试过解压缩、gzip 和所有其他作为 google 结果出现的解决方案,但这些对我不起作用。
要仅获取 GZ 签名的图像搜索 -
1f 8b 08 00.Run Code Online (Sandbox Code Playgroud)> 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所以图像开始于
24576+8 => 24584。然后只需从该点复制图像并解压缩它 -Run Code Online (Sandbox Code Playgroud)> 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从在线论坛逐字获得这些说明:http : //www.codeguru.com/forum/showthread.php? t=415186
这个过程对我不起作用,最终会给出错误,指出文件未找到 0024576 …
linux-kernel ×10
linux ×4
ubuntu ×3
virtualbox ×3
debian ×2
drivers ×2
7-zip ×1
command-line ×1
compression ×1
gzip ×1
hard-drive ×1
scsi ×1
ubuntu-10.04 ×1