简体   繁体   English

如何在 TinyCore 上安装 VirtualBox Guest Addition

[英]How to install VirtualBox Guest Addition on TinyCore

When I run "sudo sh VBoxLinuxAdditions.run" just like on Ubuntu or CentOS, TinyCore throws errors and failed, and the /var/log/vboxadd-install.log shows that:当我像 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.

I have used tce tools installed some packets such as gcc, make, linux-kernel-sources-env.tcz, linux-3.16.2_api_headers.tcz, and then the VBoxLinuxAdditions.run can get the KERN_DIR, but no KERN_INC at this time.我用tce工具安装了gcc、make、linux-kernel-sources-env.tcz、linux-3.16.2_api_headers.tcz等包,然后VBoxLinuxAdditions.run可以得到KERN_DIR,但是此时没有KERN_INC。

If anybody has done this before could you please give me some points?如果有人以前做过这个,你能给我一些分数吗? I really don't know which packages should be installed in TinyCore to make VBoxAdditions work.我真的不知道应该在 TinyCore 中安装哪些包才能使 VBoxAdditions 工作。 My VBox and TinyCore is up to date.我的 VBox 和 TinyCore 是最新的。 Thanks.谢谢。

Found a repo for this issue, but have yet to verify:找到了这个问题的回购协议,但尚未验证:

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

Prior to that, I attempted to follow this tutorial, but it is incomplete:在此之前,我尝试按照本教程进行操作,但它不完整:

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

Prior to that, attempted to build the kernel headers ( /lib/modules/5.15.10-tinycore ) with no luck.在此之前,尝试构建 kernel 标头 ( /lib/modules/5.15.10-tinycore ) 但没有成功。

Copying the Guest Additions to home folder and running sudo VBoxLinuxAdditions.run returns "Kernel headers not found for target kernel 5.15.10-tinycore. Please install them and execute /sbin/rcvboxadd setup "将 Guest Additions 复制到主文件夹并运行sudo VBoxLinuxAdditions.run返回“找不到目标 kernel 5.15.10-tinycore 的内核标头。请安装它们并执行/sbin/rcvboxadd setup

Basically you have to install the package linux-headers-${kernel_version} 基本上,您必须安装软件包linux-headers-$ {kernel_version}

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

This solved my problem on Debian linux. 这解决了我在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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM