Failed to Allocate memory for Kernel command line, bailing out booting kernel failed: bad file number


h3xcmd

Recommended Posts

Leave your boot set to BIOS. Make sure you press f11 on boot. Go into C: drive then your USB will appear to boot from.

Now the reason it wont boot on DELL is because your syslinux is not in the image and is required for the Dell servers.

 

1. Create your USB stick image manually in a linux distro.

- Install pop OS on your spare laptop or PC  or in hyperviser like VMWARE Workstation or Virtual Box. Make sure you are bridged on your Ethernet so pop OS can access the net on your existing network.

 

Boot up pop OS and install USB into your machine. Share the USB with the pop OS VM (different on each hypervisor but basically telling the hypervisor to pass through the USB stick to your pop OS install.

 

Open browser in pop OS and download the latest zip file of the UNRAID files from their website.

 

Once downloaded you can open "DISK" which is in the utility's menu on the GUI on pop OS

 

Click on the negative sign to delete any existing partitions on your USB stick

Then click on + and create a new partition

Then name the partition label to UNRAID in capitals

If the partition isn't formatted to FAT32 then format it using the same utility it's straight forward.

 

Now extract your zip using the GUI just lick on files, then click on downloads, then right click on your downloaded zip to extract "HERE"

 

Now you can select "al"l and COPY

 

Then you can open your USB folder and paste in the files, this may take a couple of minutes so be patient and wait for then folders to appear.

 

Ok now open terminal from the gui.

 

type the following

 

sudo apt install syslinux

 

after this is installed navigate to your downloads folder

 

If you  type the command "ls" , this will list your folders.

 

then for example

 

type cd Downloads (Downloads has a CAPITAL "D" so make sure you type it correctly)

 

type "ls"

 

you should now see your unRaidServerxxxxx folder

xxxx being the current release

type "cd" unRaidserverxxxxxxx to change to this folder

type "ls" and you should see the contents of the folder

 

now type

sudo ./make_bootable_linux

 

if this doesn't work press the up arrow key and press enter this will execute the command again

 

select UEFI "no"

 

Thats it now your USB will boot on Dell T/R series servers in BIOS mode.

 

 

 

 

 

 

 

 

unraid.PNG

Link to comment

????? What....🤦‍♂️why would you go through all that, use Linux to create Linux... I don’t get it... help me understand why Limetech and Unraid engineers came up with a simple and end user friendly way to download create and write to a usb. I don’t know about you but I like get rid of a headache in a few minutes than spend all day with the headache. 

 

listen, unraid UEFI cannot be done on the Dell T/R X20’s. That’s it, accept your server fate and use BIOS only. Problem solved. Or build a “newer” server, because for something that is over 9 years old almost 10 is past its prime, deprecated, obsolete and retired. The Dell T/R x20’s servers serve its purpose, nothing more nothing less and are not “fancy”. Keep it simple. 
 

these servers once supported windows server 2012,a UEFI OS and Dell has a list of Linux distros RHEL/Debian based that are UEFI compatible. Just For some reason Syslinux is not an enterprise distro that Dell will recognize as UEFI. It’s not a Unraid problem, it’s a Dell problem the OS was not meant for this server. I challenge anyone to prove me wrong using a non unraid syslinux install and let me know how it goes and if it works submit the results to Limetech.


don’t do this suggested long and crazy usb install using  PopOS. there is a free and Open source solution using the Unraid Flash Creator utility 

—————————————-

Using this program, you can easily convert almost any USB flash device into an Unraid boot device. In addition, the flash creator will give you the option to toggle some advanced settings such as loading a beta release, renaming your server hostname, setting a static IP address for your server pre-boot, and even toggling support for UEFI booting.

Plug the USB flash device into your Mac or PC

 

1. Go to the downloads page.

 

2. Download the USB Flash Creator to your Mac or PC and run it. This tool is an open source program digitally signed by Lime Technology, Inc.

 

3. Customize any options you desire and select the flash device you wish to use from the drop-down.

 

4. Click Write to create the bootable flash.

 

 

On 6/4/2021 at 8:55 AM, terryTtibbs said:

Leave your boot set to BIOS. Make sure you press f11 on boot. Go into 😄 drive then your USB will appear to boot from.

Now the reason it wont boot on DELL is because your syslinux is not in the image and is required for the Dell servers.

 

1. Create your USB stick image manually in a linux distro.

- Install pop OS on your spare laptop or PC  or in hyperviser like VMWARE Workstation or Virtual Box. Make sure you are bridged on your Ethernet so pop OS can access the net on your existing network.

 

Boot up pop OS and install USB into your machine. Share the USB with the pop OS VM (different on each hypervisor but basically telling the hypervisor to pass through the USB stick to your pop OS install.

 

Open browser in pop OS and download the latest zip file of the UNRAID files from their website.

 

Once downloaded you can open "DISK" which is in the utility's menu on the GUI on pop OS

 

Click on the negative sign to delete any existing partitions on your USB stick

Then click on + and create a new partition

Then name the partition label to UNRAID in capitals

If the partition isn't formatted to FAT32 then format it using the same utility it's straight forward.

 

Now extract your zip using the GUI just lick on files, then click on downloads, then right click on your downloaded zip to extract "HERE"

 

Now you can select "al"l and COPY

 

Then you can open your USB folder and paste in the files, this may take a couple of minutes so be patient and wait for then folders to appear.

 

Ok now open terminal from the gui.

 

type the following

 

sudo apt install syslinux

 

after this is installed navigate to your downloads folder

 

If you  type the command "ls" , this will list your folders.

 

then for example

 

type cd Downloads (Downloads has a CAPITAL "D" so make sure you type it correctly)

 

type "ls"

 

you should now see your unRaidServerxxxxx folder

xxxx being the current release

type "cd" unRaidserverxxxxxxx to change to this folder

type "ls" and you should see the contents of the folder

 

now type

sudo ./make_bootable_linux

 

if this doesn't work press the up arrow key and press enter this will execute the command again

 

select UEFI "no"

 

Thats it now your USB will boot on Dell T/R series servers in BIOS mode.

 

 

 

 

 

 

 

 

unraid.PNG

 

Link to comment
  • 4 weeks later...

Hi all,

 

I’m pretty new to Unraid but got the same issue on my Dell Server T710.

make things short: UEFI… Forget about that..

 

That‘s how it worked on my Server to autoboot from USB:

Set to Bios.

USB Device setting from Auto to Harddisk.

Set Bootorder to USB and then Raid.

Save and Reboot.

Server starts with Unraid without manual F11 etc…

 

Hope that works for you too!

 

Rauti 

  • Like 1
Link to comment
  • 9 months later...

Do what it says, rest your bios settings back to default, turn off UEFI, clear your Bios logs. Your dealing with a enterprise dell server it’s a short learning curve. Might want to look into dell support articles, for for the t power edge servers.  unraid can’t run uefi it’s a syslinux issue nothing to do with unraid. 


the dell power edge only runs off of ECC ram you can mix match speeds but not different types like you can’t put ECC type-R with regular ECC there a bios settings for it. I would just reset to factory defaults and play with it later, your going to be spending 1/2 day on it.

  • Like 1
Link to comment

So I have my usb plugged into the motherboard on my T420. Otherwise you have to use… the front USB ports??? If I remember correctly. The back ports are on a different bus controller and can’t boot usb drives from the back. 
 

I also think my unraid stick I removed the uefi flag at creation. 
 

and the usb drive if petitioned right is reading like a hard drive 

 

if you have a c drive listed it sounds like you have to remove the drives from dell virtual raid.  the drives will wipe and be converted to non raid disks, that’s what you want. Your not using the traditional raid unraid will take care of that.

Edited by h3xcmd
Link to comment

It’s not going to be shown in the boot sequence, but the usb drive will read as a hard drive. So that is the 1st boot sequence. Hard drives boot first  and below your hard disk sequence looks good it should boot every time to the usb drive first. Looks good to me. Remember this server was built for windows server 2008r2 and windows server 2012 as a premium upgrade and only compatible with OS’s listed in the lifecycle controller. 
 

wait till you set up iDRAC heheheheh…. Then you can remotely manage via IP url and use a virtual monitor on another computer and with the Dell BMC command line software you can use command prompt to manually adjust the fan speeds to like 35-42% so it’s less noisy.
 

another pointer… when adding hard disks to the dell server, because of the virtual raid Perc card you first have to go into the Bios and convert the hard drive to “non raid” use.

then unraid will see it later on when adding it. 

 

It’s cool stuff welcome to enterprise Life. 

Edited by h3xcmd
Link to comment

I don’t think you will get it to change its wording “hard drive c:” in the boot sequence if that’s what your asking … that’s like hard coded into the bios.
 

Your usb thumb drive is “ hard drive c.”  That’s another way of saying “hard drive Root directory” looking for a boot loader. I don’t think you have an issue here… as long as it detects the “hard drive” which is your usb flash drive and boots to it. You might have to check / enable hard drive C in that box. 
 

during partitioning of the usb drive it’s created on a fat32 file system and partition like a traditional hard drive would be so it can be read by the bios. 

 

have you tried to 

 

Reboot the server

Press F11 to enter the boot menu

Select the Boot Menu option 

It will scan for boot devices 

Go to Hard disk using Arrow keys This is the point where you get a secondary menu with the option to select the USB attached device 

Select it and press Enter. 

It will then boot from USB.

Edited by h3xcmd
Link to comment
  • 3 months later...
On 7/3/2021 at 8:24 PM, CaptRauti said:

That‘s how it worked on my Server to autoboot from USB:

Set to Bios.

USB Device setting from Auto to Harddisk.

Set Bootorder to USB and then Raid.

Save and Reboot.

Server starts with Unraid without manual F11 etc…

Rauti 

 

Thanks - this got my Dell Poweredge R720XD working with the Unraid USB Creator built USB stick on the internal USB slot. 

Link to comment

I had been struggling with a new R710 I acquired. I was also having the "Failed to Allocate memory for Kernel command line, bailing out booting kernel failed: bad file number" error but was struggling to get it to boot in BIOS mode.

 

This is the stupidest thing, but in the R710 BIOS after changing the boot order and all that to use the internal USB, you have to go back to the Boot selector menu and hit SPACE BAR to ENABLE the drive to boot.

 

I also had prepared the drive with PopOS and some other steps along the way but this might have been the key issue for me.

Link to comment
  • 4 months later...
On 7/3/2021 at 3:24 PM, CaptRauti said:

Hi all,

 

I’m pretty new to Unraid but got the same issue on my Dell Server T710.

make things short: UEFI… Forget about that..

 

That‘s how it worked on my Server to autoboot from USB:

Set to Bios.

USB Device setting from Auto to Harddisk.

Set Bootorder to USB and then Raid.

Save and Reboot.

Server starts with Unraid without manual F11 etc…

 

Hope that works for you too!

 

Rauti 

Hi guys,  I was able to get this to work!  awesome job Rauti. 

 

I have my previous Unraid all up and running, however how do I set my r720 to automatically boot in bios not uefi each time I need to do a reset and how do I set it to automatically boot to the usb drive.. 

each time it boots up I go back to UEFI, I have to change to bios and reboot than I have to go into my boot devices to pick my usb with Unraid installed.  

anyone have any ideas?  appreciate your help in advance. 

 

Link to comment
  • 1 year later...
On 7/3/2021 at 2:24 PM, CaptRauti said:

Hi all,

 

I’m pretty new to Unraid but got the same issue on my Dell Server T710.

make things short: UEFI… Forget about that..

 

That‘s how it worked on my Server to autoboot from USB:

Set to Bios.

USB Device setting from Auto to Harddisk.

Set Bootorder to USB and then Raid.

Save and Reboot.

Server starts with Unraid without manual F11 etc…

 

Hope that works for you too!

 

Rauti 

This worked for me and provided a flashback of when I installed my first server many years ago.

 

Just to provide more specifics from my Dell R720:

1. When booting press F2 for system setup.

2. System BIOS

3. Boot Settings

4. Boot mode should be set to BIOS (mine was on UEFI)

5. Go down to BIOS boot settings

6. Go into Hard-Disk Drive Sequence

7.  Make the flash drive the first (top) and the RAID the second (bottom)

8. Back out and save when prompted. Back out some more until you are asked to reboot. 

From this point the system should boot into Unraid without any interaction.

 

One side note: I tested the USB on the front USB and when I got it working I moved the USB to the internal USB. The BIOS automatically updated the location so no edit was needed.

 

I also used a Samsung Bar Plus 3.1 USB Flash drive that is 2.0 compatible. 

Link to comment
  • 4 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.