Unable to install redhat 6.4 using kickstart on x3690 server

Latest response

Hi,

I am trying to install redhat linux server 6.4 on x3690 X5 server. When i insert the rhel 6.4 iso I get the gnu grub menu, I don't get the option to hit the tab key to get to the boot prompt where I can insert my kickstart command.
The grub menu comes up with 3 options

  1. red hat enterprise linux 6.4
  2. install system with basic video driver
  3. rescue

"use the up arrow and down arrow keys to select which entry is highlighted. Press enter to boot the selected OS, 'e' to edit the commands before booting, 'a' to modify the kernel arguments before booting, or 'c' for command-line"

At this point when I press the 'tab' key I don't get the boot option where I can put my kickstart http details.
When I press the 'e' key I get further 2 options:

kernel /images/pxeboot/vmlinuz
initrd /images/pxeboot/initrd.img

I change the initrd to initrd /images/pxeboot/initrdtest and then boot, the server then boots from the DVD. Which then allows me to do a fresh install of Linux. I don't get the option to put my http kickstart details.

Any ideas?

Ketan

Responses

This is a TOTAL guess. Have you tried changing the BIOS/EFI to boot from legacy (or if it is currently set to legacy, try changing to EFI). Otherwise, your F12 boot options may allow you to select Legacy vs EFI at boot time.

I seriously doubt this will work, but I would try booting and editing the grub and try putting the Kickstart information after the kernel entry.
ks=http://server/ks/mykickstart.ks dns= gateway= netmask=

Hi,

I used the following commands:

kernel /images/pxeboot/vmlinuz initrd=initrdtest

Next prompt I used:

boot linux text ks=http://server/.ks.cfg ksdevice=eth0 ip= netmask= gateway=

I got further but now get errors like:

VFS: Cannot open root device "(null)" or unknown-block(8.5)
Please append a correct "root=" boot option; here are the available partitions:
kernel panic - not syncing:VFS: Unable to mount rootfs on unknown-block(8,5)

Any ideas?

Could be a number of potential issues:
* If you have a RAID controller and did not create a LUN
* RAID controller support might not be included (yet) in 6.4 (I believe you can define a "driver's disk" using a URL though
* the drives may be numbered in a way you're not expecting...

I would try to boot the system from the install DVD and check out what the drive letters are and that the controller is recognized. On my systems (non-IBM) some of them have an SD card on the RAID controller which takes /dev/sda, or the installation media takes /dev/sda - it can be a real pain. I believe it was Dell who created a declaration ONBIOSDISK which may also work for other hardware platforms. Figuring out your actual BIOSDISK number requires a bit of work.

Hi,

Thanks for your response, this is the first time we are installing on a new system, and yes we do have raid controllers. When I let the system boot from CD it's going through a fresh install of rhel server 6.4, do you know at which point I can get the drive letters? once I do get the drive letters will I have to update this on the kickstart image file or is there other methods I need to use. I could go into the BIOS and get the hardisk path.

I also used the following:

I did use the option 'c' to get to the command line I then used the following parameters:

kernel /images/pxeboot/vmlinuz initrd=initrdtest

Next prompt I used:

boot linux text ks=http://server/.ks.cfg ksdevice=eth0 ip= netmask= gateway=

I got further but now get errors like:

VFS: Cannot open root device "(null)" or unknown-block(8.5)
Please append a correct "root=" boot option; here are the available partitions:
kernel panic - not syncing:VFS: Unable to mount rootfs on unknown-block(8,5)

I am new to installing RHEL on a standalone server, I have installed RHEL on a VM with no problems, but am having trouble doing this on a new standalone server.

Please advice.
Really appreciate your help on this.

Ketan,

I believe I may have the answer, and to summarize:

  • Your intention is to perform a kickstart...
  • You boot into either the DVD/boot iso/boot disk
  • You have no option go to type the typical kickstart boot command such as the next line in the box below:
linux ks=http://yoursatserver.fqdn.com/cblr/etc/etc/yourkickstart.cfg:2:orgname dns=123.123.123.121    ip=123.123.123.122    gateway=123.123.123.1   ksdevice=eth0    netmask=255.255.255.0  "

I faced this and found the answer was simple for a rhel 6 kickstart -
Boot from the install media and hit the Esc key and the ability to type your kickstart boot prompt appears.
- The amusing part of this, a long time ago, I searched a lot of documentation and could find NOTHING for this and accidentally found it when my hand happened to hit the Esc key at the top left of your keyboard.

UPDATE: However, I finally found the Red Hat Documentation for this bit here at the very END of paragraph 7.1.1.
Quote from link above:

Alternatively, press the Esc key to access the boot: prompt, 
at which you can enter additional boot options as described 
in Section 7.1.3, “Additional Boot Options”.

Sadly, the boot menu graphic does not go out if it's way to tell a person to hit 'Esc' to enter the kickstart boot options/commands.

Kind Regards,
Remmele

Hi Remmele,

I tried to hit the 'esc' button but at which point do I hit the key. When I boot the server from the DVD iso it takes me to a gnu grub menu I've tried hitting the esc button then but nothing happens, from the gnu grub menu I press the 'c' key to go into the grub command line and when I typed the following:

kernel /images/pxeboot/vmlinuz initrd=initrdtest

Next prompt I used:

boot linux text ks=http://server/.ks.cfg ksdevice=eth0 ip= netmask= gateway=

I got further but now get errors like:

VFS: Cannot open root device "(null)" or unknown-block(8.5)
Please append a correct "root=" boot option; here are the available partitions:
kernel panic - not syncing:VFS: Unable to mount rootfs on unknown-block(8,5)

My system crashes or halts.
The disks on the systems are:

IBM ServerRAID M5016 id: PCI-0000:0e:00.0-SCSI-0:2:0:0
IBM ServerRAID M5016 id: PCI-0000:0e:00.0-SCSI-0:2:1:0

Hi Remmele,

I have looked at the document and tried what it said but unfortunately the menu screen I get is the text based gnu grub menu with only 3 options.

  1. red hat enterprise linux 6.4
  2. install system with basic video driver
  3. rescue

Ive tried using the esc key as well as the tab key but nothing happens.
But when I use the 'c' key it takes me onto the gnu grub menu.
I've tried a few options in there but server just panics and freezes.

Just boot into the boot media and when you see this graphic, hit the Esc key before the time out and then type in your kickstart boot statement (see my previous example)

Hi Remmele,

I've tried that but the software just keeps taking me into the gnu grub menu, which I don't understand why. I don't get a graphics menu. If i just boot from the CD it just lets me do a fresh install which is what am trying to avoid.

If you are doing this through a virtual console, you may have to click into the console to make the keyboard active.

All I have done is attached a keyboard and a monitor to the server.

From your original post, it seemed like your intention is to kickstart this system. Is that true? If so, boot from the boot media (if this is the case, you may have to change your boot options so you boot from the actual boot media).

Do you wish to kickstart this system? I suspected you wanted to do this based on the first paragraph of your original post:
--- Quote

I am trying to install redhat linux server 6.4 on x3690 X5 server. 
When i insert the rhel 6.4 iso I get the gnu grub menu, I don't 
get the option to hit the tab key to get to the boot prompt where 
I can insert my kickstart command.

--- End Quote

  • If you wish to perform a kickstart, you can boot into the boot media, hit Esc, and then type in your kickstart boot command from the boot media. Was it your intention to perform a kickstart of the system you speak of?

Kind Regards,
Remmele

Hi Remmele,

Yes I want to install RHEL server 6.4 using kickstart image, I have downloaded the RHEL software from the redhat support website, I have copied the iso to DVD and inserted the DVD into my new server, When the server boots from the DVD it takes me to a gnu grub menu and not to the graphical menu indicated in the document you have sent me, I try to hit the esc and tab key numerous times but this doesn't work.

Go to your bios and make sure the cd/dvd is the first option to boot from. It seems a partial install may have occurred on your system and it is attempting to boot but has no where to go but a broken grub.

  • Check your bios or whatever setup you have to ensure your cd/dvd is the first option to boot from
  • Boot from your boot media
  • when you see this graphic hit esc and type in... (see next line)
  • type in the kickstart boot command such as what I mentioned (adjust for your environment, and make sure the kickstart web server is up, permissions proper, or satellite server is operating).

Hi Remmele,

I have checked this in the BIOS and the CD/DVD is selected as the first option to boot from. The media is the server 6.4 iso binary.

updated
Hi Ketan,

Bear with me..
If you plan on kickstarting the system, are you able to do the following?
- Boot into the boot media
- when you see this graphic hit the esc key and type in... (see next line)
- type in the kickstart boot command such as what I mentioned (adjust for your environment, and make sure the kickstart web server is up, permissions proper, or satellite server is operating).

UPDATED
Ketan,

When we kickstart a system, we do the following
1) boot from the boot media,
2) hit Esc,
3) and type in the kickstart boot command (see example in previous post).

If you are kickstarting a system with a SAN/NAS/RAID attached, make sure to take all precautions to avert wiping your SAN/NAS/RAID if you wish to retain that data. perhaps disconnect your SAN/NAS fibre channel cards, or your RAID array (unless you don't mind wiping it clean).

May not be available to post for a while.

Kind Regards,
Remmele

This is a new server, there is no SAN currently attached to it, I have 4 internal disks.

The disks ID are:

IBM ServerRAID M5016 id: PCI-0000:0e:00.0-SCSI-0:2:0:0
IBM ServerRAID M5016 id: PCI-0000:0e:00.0-SCSI-0:2:1:0

As a test I tried to let the system boot from the DVD this went through a fresh install wizard, where it asked for server hostname, new root password, timezone, when it got to the storage sections it asked if I wanted to remove the data on the storage devices, I did a list first to see the devices, it came back with the devices:

IBM ServerRAID M5016 id: PCI-0000:0e:00.0-SCSI-0:2:0:0
IBM ServerRAID M5016 id: PCI-0000:0e:00.0-SCSI-0:2:1:0

Then I switch the server off as I don't want to do a fresh install, I want to do a kickstart install.

I am not sure what is on the Disks. The servers we are using are x3690 X5 server.

ketan

updated
Ketan,

You [really] can start the kickstart from the boot media and point it to your web-based kickstart.
1) Just BOOT FROM THE BOOT MEDIA
2) Then HIT the Esc Key
3) Then TYPE IN THE KICKSTART BOOT COMMAND (such as the example I posted much earlier)

I [really, no kidding] do kickstarts such as this all the time pointing to my satellite server.

Hi,

There is only 1 media I have and that is the RHEL server 6.4 binary DVD, am assuming that is correct. I don't have a kickstart boot media, must say I haven't created one before. How would I install rhel 6.4 without the main binary iso.

Ketan,

Apologies, I was not clear, you can use the RHEL server 6.4 binary DVD install disk to perform the kicsktart!! You do not need to make the mere boot disk.

So where I say "boot media" in the previous posts in this discussion, know that you can certainly use your installation disk.

If you want to build at RHEL 6.4, and build from your cdrom directly then make sure "cdrom" is in your kickstart file.

Side question - are you using a satellite server for the kickstart?

Kind Regards,
Remmele

Hi,
Hi Remmele,

The kickstart image is on a satellite server.
cdrom is in my kickstart file.

Ketan

see above post

Hi,

Do I just download the boot media from the redhat support website?
Please can you advice on how we can create a boot media.

Thanks for the help.

All our RHEL install are done on VM's and this is the first time am doing an install on a standalone machine.

Ketan,

Apologies, I was not clear, you can use the RHEL server 6.4 binary DVD install disk to perform the kicsktart!! You do not need to make or download the mere boot disk!

So where I say "boot media" in the previous posts in this discussion, know that you can certainly use your installation disk.

Side question - are you using a satellite server for the kickstart?

Kind Regards,
Remmele

Hi Remmele,

The kickstart image is on a satellite server.
cdrom is in my kickstart file.

Ketan

Hi Ketan,

I do kickstarts all the time with a DVD to my satellite server

I do the following:
1) boot from the install media (such as the disk you described), however if I kickstart to rhel 6.5, I use a rhel 6.5 server disk
2) Hit the Esc key
3) type in the kickstart boot command pointing to your satellite server kickstart image

I use this kickstart method quite often.

Remmele

I don't understand why I keep getting the gnu grub menu, I've tried using varies versions of RHEL from v6 - 6.4 all I get is the gnu grub menu, I don't see the graphical menu. Is there anything different you do with the boot media, do you update this or add additional disk paths, etc etc.
I did use a rhel 5.6 dvd and that got me to a boot prompt, but it wasn't the graphical menu.
It's really confusing as where I read that is the method that youve explained but some how it doesn't seem to be working for me.
What server are you using?
We are using IBM x3690 X5 servers.

I've had the scenerio you describe on a varity of physical systems, dell, sun (oracle), hp, etc... see next post...

UPDATED
Ketan,

I've had this happen to me...

I think I mentioned previously, it seems somehow a grub partition is on that system disk. Once you can get that out of the way, I believe your kickstart will work fine. You can either wipe that partition with a linux rescue and fdisk procedure, or perhaps via the kickstart using the clearpart --ondrive=sda (or whatever your OS disk is), and make sure there is a bootloader directive in your kickstart file, OR using your RAID BIOS.

If you can, go into the installation DVD and
- Select linux rescue and mount the sytem disk (use the chroot /mnt/sysimage)
- use fdisk to very carefully fdisk delete the boot partition where the grub is getting in the way
- retry the kickstart
- see if your kickstart has clearpart --drives=sda (or whatever your OS disk will be).

Wipe that partition and then retry your kickstart.

ADDED:
Another method, I have a raid controller typically on my physical servers. When I once in a while find the problem you describe, I go to the raid controller, select the proper disk and obliterate it, then retry the kickstart. There seems to be a boot/grub partition on the system and I've had the same thing you've described occur in our environment once in a while. UPDATED especially on a system that somehow had it's kickstart interrupted.

Hi Remmele,

Thanks for this, its the first time am installing RHEL on a standalone server using kickstart, I may need some more advice from you, I will check all this.
Many Thanks for your help really appreciate it.

Glad to help - apologies I wasn't clear at first about the install disk...

Thanks and I'll let you know if am still struggling.

Hi Ketan,

Can you please tell us the name of the kickstart file you want to use?
To be sure you did not make a typo in this article.

Kind regards,

Jan Gerrit Kootstra

Hi,

the kickstart file is called .ks.cfg

Ketan

Hi Ketan,

Did you use the Satellite server web gui to create the kickstart or just park that kickstart file under your /pub/ directory of your Satellite server's web directory?

I suspect you are familiar with using the kickstart boot command, but here's one example I use (ip addresses, hostname, fqdn changed of course):

  • (Note, the below example is for a kickstart created through the web gui)
    linux ks=http://rhn1.example.com/cblr/svc/ks/profile/nameofkickstart:2:orgname dns=123.123.123.123 ip=123.123.123.122 gateway=123.123.123.1 netmask=255.255.255.0 ksdevice=eth0
  • (note, your ksdevice may differ when going from rhel 5 to rhel 6 or 7. Additionally, your ethernet device may be eth1, eth2 etc depending on your system). If you leave the "ksdevice=eth?" then it will prompt you for an interface.

  • For a kickstart not created from your web gui and perhaps parked under your /pub/ (/var/www/html/pub/.ks.cfg):
    linux ks=http://rhn1.example.com/pub/.ks.cfg dns=123.123.123.123 ip=123.123.123.122 gateway=123.123.123.1 netmask=255.255.255.0 ksdevice=eth0

Make sure the permissions are proper for the file; you can test this from a linux system by executing a wget to the full url of the kickstart file and see if it successfully downloads.

Remmele

Hi,

I have managed to get alot further, my kickstart file is getting read, but am getting an error message:

"Automatic Partitioning Errors"

The following errors occurred with your partitioning:
you have not created a /boot/efi partition
This can happen if there is not enough space on your hard drive(s) for the installation.

Press OK to exit the installer.

Please can you advice.

Ketan

Hi Ketan,

What size is your drive for the partitioning you are using?

Additionally, can you post the partition portion of your kickstart here?

Hi Remmele,

These are new drives and are 146GB (IBM Serverraid m5016. The partitioning portion of my kickstart server is as:

bootloader --location=mbr --driveorder=sda,sdb --append="crashkernel=auto rhgb quiet"

The following is the partition information you requested

Note that any partitions you deleted are not expressed

here so unless you clear all partitions first, this is

not guaranteed to work

clearpart --all --initlabel --drives=sda
part /boot --fstype ext4 --size=500 --ondisk=sda
part pv.13 --size=1 --grow --ondisk=sda
volgroup rootvg --pesize=32768 pv.13
logvol swap --fstype swap --name=swaplv --vgname=rootvg --size=4096
logvol / --fstype ext4 --name=rootlv --vgname=rootvg --size=1024
logvol /home --fstype ext4 --name=homelv --vgname=rootvg --size=1024
logvol /tmp --fstype ext4 --name=tmplv --vgname=rootvg --size=2976
logvol /usr --fstype ext4 --name=usrlv --vgname=rootvg --size=2976
logvol /var --fstype ext4 --name=varlv --vgname=rootvg --size=992
logvol /usr/local --fstype ext4 --name=usrlocallv --vgname=rootvg --size=992
logvol /opt --fstype ext4 --name=optlv --vgname=rootvg --size=1984
logvol /xymon --fstype ext4 --name=xymonlv --vgname=rootvg --size=512
logvol /trans --fstype ext4 --name=translv --vgname=rootvg --size=1024
logvol /logs --fstype ext4 --name=logslv --vgname=rootvg --size=256
logvol /nmon --fstype ext4 --name=nmonlv --vgname=rootvg --size=256
logvol /perf --fstype ext4 --name=perflv --vgname=rootvg --size=512

Hope this helps.

updated see "added" below...

Ketan,

Check out this Red Hat solution https://access.redhat.com/site/solutions/196533, does it help?

Let us know...

Oh, when posting code, encapsulate it with three tildes '~~~'
Example:
(without the quotes)
'~~~'
your code goes here, omit the quotes on the tildes
'~~~'

added
In addition to the URL for the Red Hat Solution above in this specific post, see this bit, but they never replied back there if the kickstart partitioning for EFI was useful, especially the portion where you see what is in the code block below...
NOTE: (the below may or may not work, SEE FIRST LINK ABOVE *(also here) FIRST please

part /boot/efi --fstype="EFI System Partition" --size=200 --ondisk=sda

Hi Remmele,

So I need to change the boot option to Legacy Option.
So my boot sequence will be Legacy Only, CD/DVD, hdisk.

I suspect so... I've never crossed this UEFI bridge yet. I'd try what's listed in that Red Hat Solution.

Do I add this into my kickstart image?

updated
Sorry, I can not 100% confirm, I suspect so, but I've never loaded a UEFI system... perhaps someone else might be able to say with absolute certianty.

  • Tht being said, I'd pesonally try it in my environment, but only if the first solution from the Red Hat article didn't resolve it...

Hi Remmele,

I will do this from the Red Hat article.

Switching to "Legacy Only" option in IBM UEFI menu. This option must be put at the top of the boot sequence.

If you insert the "Legacy Only" flag into the boot order list, the server invokes the compatibility module for booting regardless of whether there appears to be anything there to boot (that is, UEFI is not aware of media behind non-UEFI compliant adapters). When the Legacy Only option is invoked, the server is committed to a BIOS boot, and the server eventually resets if nothing is booted during the BIOS boot process.

I will let you know how I get on.

Thanks.

would doing this work:

zerombr
ignoredisk --only-use=sda
part /boot/efi --fstype="vfat" --size=100 -ondisk=sda

Hi Ketan,

I'd recommend nothing less than 500, however, check this, and then you might be able to use ext4 (with rhel 6)

I'm hoping this IBM article helps, please check this link http://www-947.ibm.com/support/entry/portal/docdisplay?lndocid=MIGR-5087870

Workaround

The workaround is simply to install the 
operating system in the traditional 
legacy mode, since there is generally 
no reason to install in other than 
Legacy mode. The workaround is only 
necessary if the media you are booting 
defaults to EFI mode (DVD or EFI 
Preboot eXecution Environment (PXE)) 
otherwise a legacy installation (e.g.
 - traditional PXE) is the default 
and is unaffected by this issue.

To force a legacy installation of the 
operating system from the EFI bootable 
DVD 
media the user should:

Press F12 key when the IBM splash screen 
is shown during system boot.

-- Select Legacy Only option and press Enter.

-- The operating system will boot and install 
in traditional legacy boot mode.

I'm hoping that works for you Ketan...

Also check IBM documentation for your server. Do you have IBM support?
I may not be able to be here today.

Hi Remmele,

So do you advice on me to use the legacy mode option and not this:

zerombr
ignoredisk --only-use=sda
part /boot/efi --fstype="vfat" --size=100 -ondisk=sda

I was going to try this..

diregard, using wrong broken browser.

Ketan,

I was wrong, see Jan's post. You need BOTH partitions!!!

Thank - you - Jan, and appreciate you chiming in when I was wrong.

Kind Regards,
Remmele

Pages

Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.