Koozali.org: home of the SME Server

How to add kernel parameters?

Offline holck

  • ****
  • 317
  • +1/-0
How to add kernel parameters?
« on: July 15, 2019, 10:54:13 AM »
With my HP Microserver, running SME 9, I always get the following message during boot:
Code: [Select]
Jul  1 17:32:55 karoline kernel: Your BIOS doesn't leave an aperture memory hole
Jul  1 17:32:55 karoline kernel: Please enable the IOMMU option in the BIOS setup
Jul  1 17:32:55 karoline kernel: This costs you 64 MB of RAM
I found an advisory from HP
https://support.hpe.com/hpsc/doc/public/display?docId=emr_na-a00022034en_us&docLocale=en_US
that recommends these parameters to be passed to the kernel during boot
Code: [Select]
amd_iommo=on iommu=ptif you enable the BIOS IOMMU option.

How do I do that? I suppose, that if I just edit /boot/grub/grub.conf, the changes will be overwritten next time a new kernel is installed?

Thanks for a great distribution and a great community,
Jesper
......

Offline mmccarn

  • *
  • 2,627
  • +10/-0
Re: How to add kernel parameters?
« Reply #1 on: July 15, 2019, 01:47:04 PM »
There is a set of templates for /boot/grub/grub.conf in /etc/templates/boot/grub/grub.conf. 

The templates appear to be editing any existing /boot/grub/grub.conf -- so possibly edits made to grub.conf would be persistent.

I don't know what would happen when a new kernel is released - whether your customizations would be included for the new kernel, or left out.

As I read the HP advisory, if you turn on IOMMU the system won't even boot without the new paramaters - which makes this feel like a tricky proposition. 

Offline ReetP

  • *
  • 3,736
  • +5/-0
Re: How to add kernel parameters?
« Reply #2 on: July 15, 2019, 02:14:41 PM »
Try testing using edit/append in the boot menu to start with.

If it works then I believe you can edit grub.conf directly and your changes will be preserved across updates (do check this)

The only time it wouldn't be is if you did say a 'rescue' or possibly an upgrade to v10 when it occurs.

Yes, you could try adding a grub.conf template if you wanted but i don't think it is strictly necessary right now.

They templates are here:

/etc/e-smith/templates/boot/grub/grub.conf
...
1. Read the Manual
2. Read the Wiki
3. Don't ask for support on Unsupported versions of software
4. I have a job, wife, and kids and do this in my spare time. If you want something fixed, please help.

Bugs are easier than you think: http://wiki.contribs.org/Bugzilla_Help

If you love SME and don't want to lose it, join in: http://wiki.contribs.org/Koozali_Foundation