The following is a list of kernel tasks that you can perform with the MAAS CLI.
Quick questions you may have:
- What should I know about Ubuntu kernels on MAAS?
- What kernel boot options are available?
- How do I get started with the MAAS CLI?
- How do I set a minimum kernel for enlistment and commisioning?
- How to I set a minimum deploy kernel for a machine?
- How do I set a specific kernel during machine deployment?
Set a default minimum kernel for enlistment and commissioning
To set a default minimum kernel for all new and commissioned machines:
maas $PROFILE maas set-config name=default_min_hwe_kernel value=$KERNEL
For example, to set it to the 16.04 GA kernel:
maas $PROFILE maas set-config name=default_min_hwe_kernel value=ga-16.04
The command option default_min_hwe_kernel
appears to apply to only HWE kernels but this is not the case.
Set a minimum deploy kernel for a machine
To set the minimum deploy kernel on a per-machine basis:
maas $PROFILE machine update $SYSTEM_ID min_hwe_kernel=$HWE_KERNEL
For example, to set it to the HWE 16.04 kernel:
maas $PROFILE machine update $SYSTEM_ID min_hwe_kernel=hwe-16.04
The command option default_min_hwe_kernel
appears to apply to only HWE kernels but this is not the case.
Set a specific kernel during machine deployment
To set a specific kernel during the deployment of a machine:
maas $PROFILE machine deploy $SYSTEM_ID distro_series=$SERIES hwe_kernel=$KERNEL
The operation will fail if the kernel specified by hwe_kernel
is older than the kernel (possibly) given by default_min_hwe_kernel
. Similarly, it will not work if the kernel is not available for the given distro series (such as ‘hwe-16.10’ for ‘xenial’).
For example, to deploy a Xenial node with the HWE 16.04 edge kernel:
maas $PROFILE machine deploy $SYSTEM_ID distro_series=xenial hwe_kernel=hwe-16.04-edge
The command option hwe_kernel
appears to apply to only HWE kernels but this is not the case.