LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 11-12-2017, 12:05 PM   #1
mhammett
LQ Newbie
 
Registered: Jun 2010
Posts: 11

Rep: Reputation: 0
Slackware 11, VMTools and kernel headers


I've come across a Slackware 11 install on a VMWare environment. It doesn't have VM Tools installed. Not feeling up for trying to figure out how to get open vm tools installed on such an old distribution, I figured I'd compile the official VM Tools.

I found a guide (https://www.slackwiki.com/VMware_Guest_Install) and it went largely to plan. I didn't upgrade from the stock 2.4.33.3 to 2.6 because that's getting more involved than I'm looking for at the moment. (I'll replace the whole VM later). I discovered that the kernel-headers weren't on this machine, so I found the 2.4.33.3 kernel header package and installed it.

However, I can't figure out what path I need to enter when prompted by the VMTools config tool. I've tried various paths I've found on the Internet and none of them seem to work.

Ideas?
 
Old 11-12-2017, 01:40 PM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,289

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
It will have a default: have you tried guessing from that?
e.g. default = /usr/local; use it or perhaps go to /usr, if building as root. If building as a luser, ~/ is always a safe one, because rm -rf can be done when you figure stuff out.
 
Old 11-12-2017, 02:03 PM   #3
mhammett
LQ Newbie
 
Registered: Jun 2010
Posts: 11

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by business_kid View Post
It will have a default: have you tried guessing from that?
e.g. default = /usr/local; use it or perhaps go to /usr, if building as root. If building as a luser, ~/ is always a safe one, because rm -rf can be done when you figure stuff out.
/usr/
/usr/local/
/usr/include/linux/

All no dice.

I didn't build anything (well, other than VMtools which can't find the headers), I just downloaded the package and installed it.
 
Old 11-12-2017, 02:43 PM   #4
glorsplitz
Senior Member
 
Registered: Dec 2002
Distribution: slackware!
Posts: 1,308

Rep: Reputation: 368Reputation: 368Reputation: 368Reputation: 368
Are you asking about the prompts from when you run ./vmware-install.pl?

What is the prompt from VMtools that you respond to? What is the response when you enter anything?
 
Old 11-12-2017, 02:49 PM   #5
mhammett
LQ Newbie
 
Registered: Jun 2010
Posts: 11

Original Poster
Rep: Reputation: 0
Quote:
root@sip-proxy-dev:~# /usr/local/bin/vmware-config-tools.pl
Initializing...


Making sure services for VMware Tools are stopped.

Stopping VMware Tools services in the virtual machine:
Guest operating system daemon: done
Unmounting HGFS shares: done
Guest filesystem driver: done



Before you can compile modules, you need to have the following installed...

make
gcc
kernel headers of the running kernel


Searching for GCC...
Detected GCC binary at "/usr/bin/gcc".
The path "/usr/bin/gcc" appears to be a valid path to the gcc binary.
Would you like to change it? [no]

Searching for a valid kernel header path...
The path "" is not a valid path to the 2.4.33.3 kernel headers.
Would you like to change it? [yes]

Enter the path to the kernel header files for the 2.4.33.3 kernel? /usr/include/linux/

The path "/usr/include/linux/" is not a valid path to the 2.4.33.3 kernel
headers.
Would you like to change it? [yes]
I've tried at least as many of the paths I mentioned above in that last field.
 
Old 11-12-2017, 03:30 PM   #6
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,289

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
You've hit a problem with the kernel headers.

Over the versions, the directories and sub directories in the kernel headers have changed. If you have slackware-11.0 in there, you want to be compiling and installing for slackware-11.0 in slackware-11.0, because anything current will be seriously incompatible. IIRC (It's back quite a while) you also need a kosher version of gcc & glibc from the period

Can you get online with slackware-11.0? One solution is to get your local mirror, which should have slackware-11.0. Mine is ftp://ftp.heanet.ie/mirrors/slackwar...lackware-11.0/
cd to the slackware directory for (.tgz) packages or ../slackware-iso which has an iso for download.
Just squinting, the slackware-11.0 has gcc-3.4.6, kernel 2.4.33 + kernel headers, & glibc-2.3.6. 2.4.33 was one of the good kernels - they weren't all good back then.

If you need VMtools for the host, compile on the host and hope. BTW, slackware-11.0 by now is vulnerable to a host of security issues. Your biggest protection is that hackers will be more up to date than you, and won't be circulating things that were patched years ago.
 
Old 11-12-2017, 05:57 PM   #7
kjhambrick
Senior Member
 
Registered: Jul 2005
Location: Round Rock, TX
Distribution: Slackware64 15.0 + Multilib
Posts: 2,159

Rep: Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512
mhammett --

Hoo boy ... a 2.4 kernel and VMWare ...

As you figured out ( and as business_kid said ), vmware-config-tools.pl isn't seeing your kernel headers so it can't build the kernel modules for the Kernel.

Looking at the Slackware 11.0 MANIFEST, the Kernel Headers should be in 'the usual spot' ( /usr/include/linux/ ).
Code:
Package:  ./d/kernel-headers-2.4.33.3-i386-1.tgz
What version of /usr/local/bin/vmware-config-tools.pl are you trying to run ?

If I recall, the Program Name used to be 'different' ... vmware-config-tools.pl may be 'too new' for the 2.4.x Kernel ???

I know I ran vmware on my Slackware 10.2 Laptop but that was long ago and the hardware is far away.

After Slackware 10.2 my next Laptop ran Slackware 12.2 which had a 2.6 Kernel -- IOW, I skipped Slackware 11.0 ...

Looking back thru my vmware directory, Slackware 11.0 would be contemporary with ( something like ) VMWare 4.5 or 5.5 ... not sure ...

I do have a copy of the vmware tools install procedure for VMWare 4.0.5 ( attached as a .pdf file ).

Maybe that will help ?

If not, sounds like a lotta googling is in order ?

Good Luck !

-- kjh
Attached Files
File Type: pdf VMWare-4.05-vmware-tools.pdf (69.9 KB, 53 views)
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Slackware, which kernel headers should be where? systemloc Slackware 4 10-05-2014 08:39 PM
Installing VMtools (Workstation v6) on Slackware 12.0 NoNameNoNumber Slackware 5 07-16-2007 12:39 PM
Slackware 12 kernel headers Mig21 Slackware 3 07-06-2007 11:00 AM
Errors Compiling Kernel 2.6 on Slackware 10.2 - Old kernel headers required? Dave S. Slackware 8 03-04-2006 12:15 AM
Install vmtools failure! kernel is not the right one! help me catvzhou Linux - Software 2 05-19-2003 10:09 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 07:26 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration