Boot ubuntu cloud install

Jerry Geis jerry.geis at gmail.com
Sun Jan 17 22:31:05 UTC 2021


Hi - so I am looking at cloud install for ubuntu... The current system is
CentOS 7.

So I need to make a grub menu entry and set the default to be my cloud
install so it boots and re-installs ubuntu over the top of CentOS 7.

so I mount the live-server (20.04) CD, copy off the vmlinuz and initrd from
isolinux and put them in the /boot directory.

I then goto /etc/grub.d and edit the 40_custom file to add my entry.
I started with just a menuentry that just had linux and initrd - changed
the /etc/default/grub to be GRUB_DEFAULT=mylabel.  ran the grub2-mkconfig
-o /boot/grub2/grub.cfg and rebooted and got the message:
vmlinuz not found, you need to load the kernel first.

So then I thought - OK let me "start" with one of the CentOS menu items.
and just put in my new files. So this is what the CentOS first menu item is.

menuentry 'CentOS Linux (3.10.0-1160.2.2.el7.x86_64) 7 (Core)' --class
centos --class gnu-linux --class gnu --class os --unrestricted
$menuentry_id_option
'gnulinux-3.10.0-1127.13.1.el7.x86_64-advanced-13813d49-15b7-48ed-ab0d-da52aa3a9078'
{
        load_video
        set gfxpayload=keep
        insmod gzio
        insmod part_msdos
        insmod part_msdos
        insmod diskfilter
        insmod mdraid1x
        insmod xfs
        set root='mduuid/c525f5e336b65a3c4e82e5de411147bd'
        if [ x$feature_platform_search_hint = xy ]; then
          search --no-floppy --fs-uuid --set=root
--hint='mduuid/c525f5e336b65a3c4e82e5de411147bd'
 13813d49-15b7-48ed-ab0d-da52aa3a9078
        else
          search --no-floppy --fs-uuid --set=root
13813d49-15b7-48ed-ab0d-da52aa3a9078
        fi
        linux16 /boot/vmlinuz-3.10.0-1160.2.2.el7.x86_64
root=UUID=13813d49-15b7-48ed-ab0d-da52aa3a9078 ro
rd.md.uuid=c525f5e3:36b65a3c:4e82e5de:411147bd rd.lvm.lv=centos/swap
biosdevname=0 net.ifnames=0 rhgb quiet LANG=en_US.UTF-8
        initrd16 /boot/initramfs-3.10.0-1160.2.2.el7.x86_64.img
}

I copied that put in 40_custom - changed the label, changed the linux16 to
vmlinuz from isolinux - changed the initrd to be initrd from isolinux.
saved that and ran the grub2-mkconifg command above.

When I reboot - the default is on mylabel - but I get the exact same error:
vmlinuz not found, you need to load the kernel first.

What magic step am I missing ???

Jerry
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-devel-discuss/attachments/20210117/387f6f52/attachment.html>


More information about the Ubuntu-devel-discuss mailing list