whuwangyong
whuwangyong

Reputation: 69

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:

/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.

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. My VBox and TinyCore is up to date. Thanks.

Upvotes: 2

Views: 4495

Answers (2)

Coolian
Coolian

Reputation: 1

Found a repo for this issue, but have yet to verify:

https://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

Prior to that, attempted to build the kernel headers (/lib/modules/5.15.10-tinycore) with no luck.

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"

Upvotes: 0

Joao Luiz Cadore
Joao Luiz Cadore

Reputation: 2732

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

Upvotes: -4

Related Questions