I feel like this should be super easy. How do i specify the kernel version for a machines deployment? I have an issue where the new kernel version is not supported for one of my solutions and i need to ensure that the older kernel version is deployed.
For example:
Deployed: 6.8.0-59-generic
Needed: 6.8.0-58-generic
Hey there 
Nope, that’s unfortunately not super easy
you have 2 options:
- (not super easy, but definitely ideal) you create your own simplestream server and you put there the kernel you want for your image
- (hacky solution - please do some tests a dev environment as I did not test it) say you want to replace the kernel for the noble image, then go to Index of /ephemeral-v3/stable/noble/amd64/20250424/ga-24.04/generic (currently the latest image available, it might change in the future as it is updated regularly) and download it. Then run
sha256sum boot-kernel
and run the following query on the DB
select filename_on_disk from maasserver_bootresourcefile where sha256='<THE SHA YOU COMPUTED ABOVE>';
then finally mv boot-kernel /var/snap/maas/common/maas/image-storage/<THE FILENAME_ON_DISK YOU EXTRACTED ABOVE>
.
Also, note that as a new image is pushed to the upstream server your kernel might be removed/replaced. So you either
- disable the automatic refresh of the images
- use the solution 1 - your own simplestream server
- you do this process again
Please let me know if this works