Installing CentOS7/RHEL7 from YUMI

It seem like CentOS7/RHEL7 is slightly different from CentOS6/RHEL6, when trying to install from USB with multiple boot images (eg YUMI).

CentOS7/RHEL7 require “inst.stage2″^^1 to be specific, and the default from the ISO file is “inst.stage2=hd:LABEL=CentOS\x207\x20x86_64” or “inst.stage2=hd:LABEL=RHEL-7.3\x20x86_64”. This will need to be amend to reflect the correct LABEL of the usb.

How to find out the LABEL for your USB? You can refer to here. But to save your time (since you found this instead of that):
1. Boot into Linux
2. Assume your USB is on /dev/sda, and the first partition contain your multiboot:
blkid /dev/sda1

or
ls /dev/disk/by-label

Example of the label on my USB is “MULTIBOOT”, therefore I need to change the “inst.stage2” to:

inst.stage2=hd:LABEL=MULTIBOOT:/multiboot/CentOS-7

which will load the stage2 image from /dev/sda1/multiboot/CentOS-7

^^1 – This specifies the location to fetch only the installer runtime image; packages will be ignored.

^^2 – More info on the Boot options from here.

 

Advertisements

About shadantan

Just a simple guy who loved his iOS games and apps, and love Open Source Technology, and sharing knowledge along the way :D
This entry was posted in Linux and tagged , , , , , . Bookmark the permalink.

5 Responses to Installing CentOS7/RHEL7 from YUMI

  1. Hi,
    I assume you talk about the “inst.stage2” reference in \multiboot\CentOS-7-x86_64-DVD-1611\EFI\BOOT\grub.cfg!?
    This did not work for me (same error). Any thoughts?
    Thanks!

  2. shadantan says:

    Hi,
    Yes, it is “inst.stage2”.
    You will need to find out the label of your USB drive (/dev/sda1) by checking it in Linux Environment Shell (BASH):
    # blkid /dev/sda1

    or in Windows Environment (Command prompt):
    c:\> vol f:
    # Note: assuming your USB drive is “F” in Windows.

    Then you need to replace the “inst.stage2” in your isolinux folder. My example here is F:\multiboot\rhel-workstation-7.3\isolinux\isolinux.cfg:
    label linux
    menu label ^Install Red Hat Enterprise Linux 7.3
    kernel vmlinuz
    append live_dir=/multiboot/rhel-workstation-7.3/LiveOS initrd=initrd.img inst.stage2=hd:LABEL=MULTIBOOT:/multiboot/rhel-workstation-7.3/ quiet

    Hope the above help you in some ways.

  3. Hi,
    Now the setup is starting correctly but I still can’t install the OS because “Installation Source” is saying “Error setting up base repository” so I can’t begin installation (it asks me to select in ISO but there is none, because yumi is unpacking the installation files).
    The same lines with “inst.stage2” can be found in the grub.cfg file also. I tried to change there too, no luck.

    • shadantan says:

      Hi,
      Most of my YUMI ISO image is just the bare minimum boot ISO, which will need to point to a base repository for installation. I haven’t done a full ISO installation (CentOS-7-x86_64-Everything*.iso or rhel-workstation-7.3-x86_64-dvd.iso) because of the size of my USB drive (4GB).
      So, I am guessing you are using full ISO which contain the base installation files?

      • dalexandrescu says:

        Yes, actually the dvd version. But since yumi recommends to use FAT32 for compatibility with multiple applications and FAT32 is limited to max 4gb files they are unpacking the ISO (which is bigger for centos7-dvd) and put the individual files on the stick. I actually tried quite a few alternatives to yumi and only one worked (I don’t remember which) but I need it to work with yumi since all the other apps were installed with it (about 15-20 bootable apps/installers).

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s