2

当我像在 Ubuntu 或 CentOS 上一样运行“sudo sh VBoxLinuxAdditions.run”时,TinyCore 会抛出错误并失败,并且 /var/log/vboxadd-install.log 显示:

/tmp/vbox.0/Makefile.include.header:97: *** Error:
unable to find the sources of your current Linux kernel. 
Specify KERN_DIR=<directory> and run Make again.  Stop.

我用tce工具安装了一些包如gcc、make、linux-kernel-sources-env.tcz、linux-3.16.2_api_headers.tcz,然后VBoxLinuxAdditions.run可以得到KERN_DIR,但是此时没有KERN_INC。

如果有人以前这样做过,你能给我一些分数吗?我真的不知道应该在 TinyCore 中安装哪些软件包才能使 VBoxAdditions 工作。我的 VBox 和 TinyCore 是最新的。谢谢。

4

2 回答 2

0

为这个问题找到了一个 repo,但尚未验证:

https://github.com/MSumulong/vmware-tools-on-tiny-core-linux

在此之前,我尝试遵循本教程,但它不完整:

https://www.gilesorr.com/blog/tcl641-guest-additions.html

在此之前,尝试构建内核头文件 ( /lib/modules/5.15.10-tinycore),但没有成功。

将 Guest Additions 复制到主文件夹并运行sudo VBoxLinuxAdditions.run返回“找不到目标内核 5.15.10-tinycore 的内核头。请安装并执行/sbin/rcvboxadd setup

于 2022-02-09T02:24:36.833 回答
-4

Basically you have to install the package linux-headers-${kernel_version}

# apt-get install linux-headers-3.16.0-4-amd64

This solved my problem on Debian linux. To check the version of your kernel, you should run the command:

# uname -a
# Linux debian 3.16.0-4-amd64 # SMP Debian
于 2016-08-03T01:50:56.277 回答