LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Kernel (https://www.linuxquestions.org/questions/linux-kernel-70/)
-   -   First post - kernel params in VMware (https://www.linuxquestions.org/questions/linux-kernel-70/first-post-kernel-params-in-vmware-4175415059/)

gregg_hughes 07-05-2012 09:43 AM

First post - kernel params in VMware
 
Good morning, all!

I have several RHEL machines of various builds (4AS U4, 5.2, 6.o) running in a VMware environment. I inherited this infrastructure and want to verify if some kernel params have been configured for these virtual machines.

In VMware KB 1006427 there are some recommended/required parameters to be passed to the kernel to ensure timekepeping is correct and tidy.

Is there a way to see what params have been passed to the kernel at boot? Can I make these params permanent?

Many thanks in advance!


Gregg

kbscores 07-05-2012 12:05 PM

You can see kernel parameters in /proc or by using sysctl.
Code:

sysctl -a
^ Displays all kernel parameters

If you want to set one permanently, change it in the /etc/sysctl.conf file. The file does not include all parameters so you might need to add it to set it. Once file is updated for it to take effect run:

Code:

sysctl -p
It will spit out all of the kernel parameters being set by that file. You can also reboot the box to update the changes.

If you just want to set a parameter on the fly use:

Code:

sysctl -w parameter.name=parameterValue
Setting it on the fly will not stick after a reboot though.


All times are GMT -5. The time now is 07:16 AM.