5

I just want to know if I can make a kind of menu choice list where the node can choose from the OS they want?

so instead of automatically runs the Ubuntu 16.04 image you assigned to it, you give it multiple images and the node user would just choose one.

Sarah H
  • 71

2 Answers2

4

Grub multi-boot MAAS feature Request

I've submitted a feature request (Feature Request Allow grub to multi-boot MAAS images) referencing this Q&A.

History

I've spent hours looking into this using google and it appears a good ole grub menu is the way to do it. Unfortunately I can't find official Ubuntu MAAS (Metal as a Service) documentation on doing it. Indeed the only thing I can find about grub with MAAS are bug reports where grub shouldn't show up.

For example from (https://bugs.launchpad.net/maas/+bug/1532935) this:

John George (jog) wrote on 2016-05-20:  #18
Ran into this issue multiple times while using Landscape Autopilot to 
deploy Openstack, which was never able to complete due to at least one 
machine failing to deploy, after getting stuck at the grub menu. Juju 
1.25.5 and MAAS 1.9.2 were being used.

Once stopped at the grub menu I was able to bring the system up for inspection by doing the following:

- Reboot the server and drop into the boot menue (F11 on HP)
- Select the UEFI module option
- Use the file explorer to drill down to and run shimx64.efi
- grub> cat /boot/grub/menu.lst (to see configured kernel and initrd paths)
- grub> linux /boot/vmlinuz-3.13.0-86-generic root=LABEL=root ro console=ttyS1,38400 1
- grub> initrd /boot/initrd.img-3.13.0-86-generic
- grub> boot
- Boot would stop at run level 1 and drop to a root shell prompt
- /etc/init.d/networking start
- service ssh start
- ifconfig (to find configured IP)
- ssh into the system as the ubuntu user

Also there is this complaining how MAAS installs grub to /dev/sda instead of the real boot drive which is /dev/sdb (MAAS always installs GRUB to /dev/sda, even when that's inappropriate):

So grub is part of the MAAS boot up process the question is how to make the grub menu active and give you the various images to choose from like how we choose different Ubuntu versions and Windows versions now.

I think the Ubuntu MAAS team might help if a nicely worded email were sent to the right channels. Additionally a can be posted somewhere.

3

You should be able to deploy a system with different images, first go to the "Images" tab and import the image you want:

Boot images

After that, when you deploy a system, you can select a different image from the dropdown list to deploy on that node: Deploy system

P.-H. Lin
  • 2,824
  • Thanks ! but I already know that, I meant in the client's machine, or node, when it starts, before the deployment of the image. so instead of the machine booting to the deployed image you gave it, a list shows up and someone chooses a operating system from there. – Sarah H Feb 13 '17 at 13:35
  • So it sounds like you want your user NOT to go through the MaaS web interface, but select the desired distro from the node during its boot process? Not sure about MaaS on this task, but a PXE server can achieve this. Good luck. – P.-H. Lin Feb 14 '17 at 07:35