Fixing the Ubuntu 22.04 Boot Iussing on Dell VRTX

Finding the Path to the Fix

As we're able to reproduce the issue with a VM running inside the VMware ESXi environment, how can we fix the issue then?

My initial thought was that since it's dropping me into the (initramfs) prompt, it might indicate either some configuration, or software program, or both were missing from the initrd.img file, which is a ram disk image that the Linux booting process uses before it can load more stuff from the root file system.  The missing piece caused my system to fail to find the root file system and has to stop with the initramfs loaded.  But what exactly was missing?

So I tried to explore with the (initramfs) prompt.

(initramfs) grep multi /proc/modules 

multipath 20480 0 - Live 0xffffffffc0345000 

(initramfs) multipath 

sh: multipath: not found 

It seems the kernel module for multipath had been loaded already.  But there was no multipath command available.  Could it be that the package with multipath software was not installed?  But which package does it contain the software?

Some Google search results pointed me to this web page: https://packages.ubuntu.com/search?suite=jammy&arch=amd64&searchon=contents&keywords=multipath

According to the information listed on the web page, there are multiple packages related to multipath function.  Especially, there is a package called multipath-tools-boot, which contains some files related to initramfs.  It must be the package!

Install Additional Package During Installation

The installation image that I was using is ubuntu-22.04-live-server-amd64.iso.  It's using the subiquity program to install the Linux OS.  During the progress, it does not allow the user to select what additional packages need to be installed.  How can we install those multipath related packages before reboot?

On the "Install Complete!" screen, there are only three options.  "Help", "View full log", "Reboot Now".

The "View full log" option will show you the log from the installation process, which provides quite a lot of information.

The "Reboot Now" option will reboot the system.

But if select the "Help" option, a menu will pop up.  One of the menu items is "Enter shell".

After selecting the "Enter Shell" option, you will get into the shell environment.  After exploring in the shell environment, I realized that the root filesystem is currently mounted under /target.  By leveraging the chroot command, we can change the root filesystem for our current session to /target as if we're running with the target system.  But before running chroot, let's also get some pseudo file systems mounted under the new root file system as the mkinitrd command will reference those filesystems for information.

Now, we can run the chroot command to switch our root filesystem to /target.
With the apt command, we can confirm that package multipath-tools-boot is available but it's not installed.  Package multipath-tools is installed though.
After running the command apt install multipath-tools-boot, the package is finally installed successfully.

Now, we can reboot the system.  After the system is rebooted, it will be able to boot successfully into the Ubuntu 22.04 installed. Finally!



Comments

  1. To fix the bug, I submited the bug via the lunchpad.net
    https://bugs.launchpad.net/subiquity/+bug/1981914

    ReplyDelete

Post a Comment

Popular posts from this blog

Secure Home Network with OPNsense

Dropping Into "initramfs" Prompt After Installing Ubuntu 22.04 LTS on to Dell VRTX Server

Ubuntu 22.04 Multipath I/O Problem with Dell VRTX