I‘m trying to install vmware-tools but Fedora Linux v12 prompting for kernel headers. How do I install kernel headers under Fedora Linux?
Continue reading “Linux: Find out what kernel drivers (modules) are loaded”
Q. I’m using OpenSuse as Guest OS (VPS). Installing SUSE Linux as a VMware Workstation guest operating system was easy task. But how do I setup and install SUSE Linux as a VMware Guest? How do I install vmware tools to improve performance?
A. In order to install Vmware tools, you need to build kernel modules. Building kernel modules is easy provided that following packages are installed on the guest OpenSuse / Suse Linux (VPS):
Install required software
Login to guest oses using SSH or Vmware server console. Use yast command (yast control center) to install required software:
Select Software > Software management > Add above packages > Accept and install the softwares
(YaST text mode software installation)
Start VMWARE Tools installation
Mount the VMware Tools virtual CD
If you are using guest system’s desktop, you should have mounted a CD. If you are using text mode, run mount command as follows:
# mount /dev/hdc /media
mount: block device /dev/hdc is write-protected, mounting read-only
Replace /dev/hdc with actual virtual cd rom drive.
Install the VMware Tools RPM
Finally install rpm file,
rpm -ivh VMwareTools-1.0.3-44356.i386.rpm
Configure Vmware tools
Next you need to run the VMware Tools configuration script. You must run script from VMWare server console / Workstation and not from SSH session:
# vmware-config-tools.pl -default
Q. How do I display information about loaded kernel modules under Sun Solaris UNIX operating system?
A. You need to use modinfo command which is a trivial program to display information about the loaded modules. The format of the information is as follows:
Id Loadaddr Size Info Rev Module Name
where Id is the module ID, Loadaddr is the starting text address in hexadecimal, Size is the size of text, data, and bss in hexadecimal bytes, Info is module specific information, Rev is the revision of the loadable modules system, and Module Name is the filename and description of the module.
Task: Displaying the status of kernel modules
Just enter modinfo command:
You can pass -c option to modinfo command to display the number of instances of the module loaded and the module’s current state:
Display information about particular module / driver only
You can also display information about particular module only by specifying its ID #:
modinfo -i 5
The above example displays the status of module # 5.
Read modinfo man page for other information and options.