It seems that there is away to achieve adding extra kernel parameters for machines. I am running MAAS 3.5 and I can do the following:
1. set kernel_opts configuration option to include "initrd=boot-initrd". e.g., `maas admin maas set-config name=kernel_opts value="initrd=boot-initrd"`
2. Commission the machine
3. Create a tag with kernel_opts: e.g., `maas admin tags create name=bug-tag kernel_opts="initrd=boot-initrd"`
4. Tag the machine with it. e.g., `maas admin tag update-nodes bug-tag add=$(maas admin machines read hostname=bug-machine | jq -r .[].system_id)`
5. unset the kernel_opts config option. e.g., `maas admin maas set-config name=kernel_opts value=`
The config option is required if machine is not already present in MAAS, since tag can be added to an existing machine. When the machine is enlisted, the config option can be replaced with a tag, or you can leave it set but it will be applied for all the machines in your MAAS deployment. So the usage of tag is preferred.
At my local dev MAAS I was able to construct the command line which includes the extra option:
Hello Michal, SK, Alan,
It seems that there is away to achieve adding extra kernel parameters for machines. I am running MAAS 3.5 and I can do the following:
1. set kernel_opts configuration option to include "initrd= boot-initrd" . e.g., `maas admin maas set-config name=kernel_opts value=" initrd= boot-initrd" ` opts="initrd= boot-initrd" ` bug-machine | jq -r .[].system_id)`
2. Commission the machine
3. Create a tag with kernel_opts: e.g., `maas admin tags create name=bug-tag kernel_
4. Tag the machine with it. e.g., `maas admin tag update-nodes bug-tag add=$(maas admin machines read hostname=
5. unset the kernel_opts config option. e.g., `maas admin maas set-config name=kernel_opts value=`
The config option is required if machine is not already present in MAAS, since tag can be added to an existing machine. When the machine is enlisted, the config option can be replaced with a tag, or you can leave it set but it will be applied for all the machines in your MAAS deployment. So the usage of tag is preferred.
At my local dev MAAS I was able to construct the command line which includes the extra option:
``` initrd= boot-initrd"
ubuntu@maas-dev:~$ maas admin maas set-config name=kernel_opts value="
Success.
Machine-readable output follows:
OK
ubuntu@maas-dev:~$ curl http:// 10.20.0. 2:5248/ ipxe.cfg- default- amd64 10.20.0. 2:5248/ images/ 39c00a8723ac580 4c60f020feccec0 9b364947ca33be2 347f84ea1ced0e9 bbf8/ubuntu/ amd64/ga- 22.04/jammy/ stable/ boot-kernel 10.20.0. 2:5248/ images/ 574b060f461da7f 5b281e04f345704 c12b8ab1f19f49e f0f23e33e7b0dba c466/ubuntu/ amd64/ga- 22.04/jammy/ stable/ squashfs ip=:::: maas-enlist: BOOTIF ip6=off cc:{'datasource _list': ['MAAS']}end_cc cloud-config-url=http:// 10-20-0- 0--24.maas- internal: 5248/MAAS/ metadata/ latest/ enlist- preseed/ ?op=get_ enlist_ preseed ro overlayroot=tmpfs overlayroot_ cfgdisk= disabled log_host=10.20.0.2 log_port=5247 --- initrd=boot-initrd BOOTIF=01-${mac} 10.20.0. 2:5248/ images/ ebab7ce82091c16 1eade87df88ae6c 1829b1af0b62097 fe6423cdb2ecd74 cab3/ubuntu/ amd64/ga- 22.04/jammy/ stable/ boot-initrd
#!ipxe
kernel http://
imgargs boot-kernel nomodeset root=squash:http://
initrd http://
boot
ubuntu@maas-dev:~$ maas admin maas set-config name=kernel_opts value=
Success.
Machine-readable output follows:
OK
ubuntu@maas-dev:~$ curl http:// 10.20.0. 2:5248/ ipxe.cfg- default- amd64 10.20.0. 2:5248/ images/ 39c00a8723ac580 4c60f020feccec0 9b364947ca33be2 347f84ea1ced0e9 bbf8/ubuntu/ amd64/ga- 22.04/jammy/ stable/ boot-kernel 10.20.0. 2:5248/ images/ 574b060f461da7f 5b281e04f345704 c12b8ab1f19f49e f0f23e33e7b0dba c466/ubuntu/ amd64/ga- 22.04/jammy/ stable/ squashfs ip=:::: maas-enlist: BOOTIF ip6=off cc:{'datasource _list': ['MAAS']}end_cc cloud-config-url=http:// 10-20-0- 0--24.maas- internal: 5248/MAAS/ metadata/ latest/ enlist- preseed/ ?op=get_ enlist_ preseed ro overlayroot=tmpfs overlayroot_ cfgdisk= disabled log_host=10.20.0.2 log_port=5247 BOOTIF=01-${mac} 10.20.0. 2:5248/ images/ ebab7ce82091c16 1eade87df88ae6c 1829b1af0b62097 fe6423cdb2ecd74 cab3/ubuntu/ amd64/ga- 22.04/jammy/ stable/ boot-initrd
#!ipxe
kernel http://
imgargs boot-kernel nomodeset root=squash:http://
initrd http://
boot
```
@Michal can you give it a try and let me know if you were able to commission the machines?
Thanks,
Stamatis