2014-01-13

Monday, October 20, 2008

request_module: runaway loop modprobe binfmt-464c

Short answer: If you are getting this error right after linux kernel initialization, you are likely booting a 32-bit kernel with a 64-bit OS.

Long answer: If you boot a 32-bit kernel with a 64-bit OS, when the kernel tries to start /sbin/init (a 64-bit binary), it won't recognize the binary format, and it'll try to load the binfmt-464c kernel module, which is ELF support. (ELF support is generally compiled into the kernel, not built as a module, by the way.)

The reason for the loop error is that the kernel is trying to invoke modprobe to load the module, and modprobe is itself an ELF binary, resulting in a recursion loop...

12 comments:

Anonymous said...
enabling IA32 emulation in the kernel fixed this for me. thanks for the tip.
Installing a PXE Server on unRAID



Examples of things you can do:

openELEC - You can network boot a machine into openELEC without a hard drive using your PXE Server. Each machine has it's own configuration that is also store / kept / maintained on the unRAID Server by default.

Linux Live CDs - You can network boot straight into Ubuntu, Linux Mint, Fedora, etc.

Clonezilla - You can network boot into Clonezilla and back up your PCs via NFS or Samba to your unRAID Server.





1. SSH into your unRAID Server.

2. Create the following directory if it doesn't exist already:
Code: [Select]
mkdir  /boot/config/custom
3. Change to that directory
Code: [Select]
cd /boot/config/custom
4. Download dnsmasq-2.57-i486-1.txz
Code: [Select]
wget http://ftp.slackware.com/pub/slackware/slackware-13.37/slackware/n/dnsmasq-2.57-i486-1.txz
5. Edit your go file
Code: [Select]
nano /boot/config/go
Add the following lines before it starts emhttp
Code: [Select]
installpkg /boot/config/custom/dnsmasq-2.57-i486-1.txz
cp /boot/config/custom/dnsmasq.conf /etc
chmod +x /etc/rc.d/rc.dnsmasq
/etc/rc.d/rc.dnsmasq start

6. Create the following file
Code: [Select]
nano /boot/config/custom/dnsmasq.conf
Add the following to it and customize it for your Network and where you want to put your tftp folder. I used my cache drive.
Code: [Select]
port=0
log-dhcp
enable-tftp
tftp-root=/mnt/cache/tftp # <--- Place where your menus, cfgs, etc. will go
dhcp-range=192.168.1.0,proxy # <--- Enter the correct IP for your network
pxe-service=X86PC,"Booting...",pxelinux

7. Using the unRAID webGUI create a share called tftp on your cache drive (I made mine cache only).

8. Download and copy the following file into the root of your cache drive (/mnt/cache)

Customizable PXE Server Menu <--- Download Link

9. untar tftp.tar
Code: [Select]
tar xvf tftp.tar
10. Start the PXE Server by rebooting your unRAID Server or cut and paste the commands in the go file from step 5 above. 

Important Notes...

You will need to use your brain and use the menu examples and learn the menu structure. I included this as a guide of how to PXE Boot into all kinds of things from openELEC, Linux Mint, Arch Linux, Clonezilla, etc.

I did not include the files and images. You will need to add those yourself. For example, go download Clonezilla and add the correct files to the images directory in a Clonezilla folder.

You can boot PXE Boot ISOs files. For an example of how to do this... Look at my Arch Linux Menu to see how. 

Again... YOU have to think for yourself and Use the menus I included as a guide so you can configure your PXE Server to work with you. Feel free to delete the menu options you do not want or need.

Things you need to know

The default Main Menu is located in /mnt/cache/tftp/pxelinux.cfg and it's called default.

You can create a default menu based on machines MAC Address. To learn more / how to do this... PXELINUX

The Main Menu takes you to various other menus. The other menus are located in /mnt/cache/tftp/menus.

If you want to change the name, background image, change the menu resolution, etc. edit /mnt/cache/tftp/pxe.conf

When you boot into the PXE Server... It's root is /mnt/cache/tftp/

If you are using ESXi, Xen, KVM, VMWare... Your VMs can boot into the PXE Server and you can install VMs this way instead of using ISOs.

pfSense or routers might need to be configured for tftp to work. Simply point tftp to your unRAID Server.

There are a ton of websites that have various menus, examples, etc. Also, most Linux Distros have guides on how to boot a Live CD or Netinstall and even Full Installs that working 100% over the network using NFS and PXE (no hard drive needed). 

Example of an openELEC menu by MAC Address so it directly boots into it (MAC Address in this example is: 00:26:2d:ab:9d:2e

1. Create the following file in /mnt/cache/tftpd/pxeconfig.cfg/

NOTE: You have to add 01 before using the rest of the MAC Address. <--- 01-xx-xx-xx-xx-xx-xx
Code: [Select]
nano /mnt/cache/tftpd/pxeconfig.cfg/01-00-26-2d-ab-9d-2e
Add the following...
Code: [Select]
DEFAULT openELEC Bedroom
PROMPT 0
LABEL openELEC Bedroom
KERNEL images/openelec/KERNEL
APPEND ip=dhcp boot=NFS=192.168.1.2:/mnt/user/tftp/images/openELEC disk=NFS=192.168.1.2:/mnt/user/tftp/images/openELEC/storage overlay quiet

NOTE: Set the IP Address and path according to your system. I also share my tftp via NFS which is why it shows /mnt/user/tftp.... instead of /mnt/cache/tftp in the example above. 

2. Set Permissions
Code: [Select]
chown nobody:users /mnt/cache/tftpd/pxeconfig.cfg/01-00-26-2d-ab-9d-2e && chmod 777 /mnt/cache/tftpd/pxeconfig.cfg/01-00-26-2d-ab-9d-2e
3. Start your openELEC PC and it should directly boot into openELEC
« Last Edit: Today at 03:10:29 PM by grumpybutfun »
Have got Clonezilla working.

That is great to hear.
but am stumped on CentOS. Could you possibly share a little more about how you had your server configured - in terms of share/file/folder structure? 

For example in the CentOS menu file you kindly provided I believe it references an NFS share - what is this share used for? As I'm able to get the installer to start but it says it's unable to find to installation files - finding it a little confusing since I thought the installer was already running! I'm guessing this NFS share plays a role that isn't required for Clonezilla, as I see no mention of it in the corresponding menu file.

Let's have a look below at /mnt/cache/tftp/menus/CentOS.menu... 
Code: [Select]
LABEL 2
        MENU LABEL CentOS 6.4(64-bit)
        KERNEL images/CentOS/x86_64/vmlinuz
        APPEND initrd=images/CentOS/x86_64/initrd.img ramdisk_size=100000 ip=dhcp METHOD=nfs:192.168.1.2:/mnt/user/tftp/images/CentOS/x86_65/install.img repo=http://mirror.centos.org/centos/6.4/os/x86_64/ lang=us keymap=us ip=dhcp ksdevice=eth0 noipv6
        TEXT HELP
        Install CentOS 6.4(64-bit)
        ENDTEXT

1. Copy initrd.img and install.img to the following folder: 
Code: [Select]
/mnt/user/tftp/images/CentOS/x86_64/
2. Correct the IP Address of your unRAID and fix the typo I made (I will fix later tonight). You will see I have x86_65 and not x86_64 for the install.img.

3. Again I created a share in unRAID and told it to use only the cache drive. I also have it shared using NFS. Because of this, you have a "share" which to unRAID is /mnt/user/tftp. That is why you will see a lot of menus using /mnt/user/tftp instead of /mnt/cache/tftp.



Author Topic: [POLL] Should Lime Technology make unRAID CentOS 64-Bit Edition?  (Read 1229 times)

Online grumpybutfun

·                     Sr. Member
·                     ****
·                    
·                     Posts: 467
·                      
o                                            View Profile

o                                            Personal Message (Online)

[POLL] Should Lime Technology make unRAID CentOS 64-Bit Edition?

« on: January 11, 2014, 11:19:45 AM »
·                            Quote
Should Lime Technology make unRAID CentOS 64-Bit Edition?

unRAID running on CentOS 6.5 with KVM, Webmin, Monitorix, XBMC, and a bunch of other services and file systems.



NOTE: A Desktop GUI, XBMC and all the other apps are OPTIONIAL and similar to a plugin. You would have decide you want it and then install it via the Package Manager. For the sake of the thread and making my life easier, I installed a Desktop GUI so I can show you more things at once rather than a command line / WebGUI. EVERYTHING you see running in the picture(s) above / below and a Desktop GUI... It still takes up less than 1GB of Memory.

What we know so far...
"I do think the idea of an 'unRaid package' is long overdue."

"we are adjusting business plans to accommodate this."

"I just ask for a little more patience."

Priorities / Possible Release Schedule...
"Publish 5.0.5 - this has a couple minor fixes."

"Publish 5.1-beta1 - this is 5.0.5 with latest 'webGui' integrated."

"Push this 'webGui' onto github as 'webGui-master'."

"Publish 6.1-beta1 - this is 64-bit unRaid with numerous updates including 'webGui-master' and virtualization support"

"Idea is webGui will run on both platforms."

NOTE: Lime Technology has not provided an ETA for any of the above. I am not privy to anything or wouldn't begin to guess what the ETA is. 

The purpose of this Poll / Thread...

1. Show "Proof of Concept" that unRAID does indeed work in CentOS and works well.

2. Lime Technology is currently reviewing and adjusting their business plans to possible make this become a reality so this thread / poll / "Proof of Concept" is a way for us to show our interest, desire for unRAID CentOS Edition or oppose it. 

3. It also gives me / others a chance to answer many of the questions you have and centralize everything that has been spread across multiple threads.

4. I also can provide additional pictures, tests, etc. upon request and update the first few posts with them.
« Last Edit: January 11, 2014, 07:03:04 PM by grumpybutfun »

Online grumpybutfun

·                     Sr. Member
·                     ****
·                    
·                     Posts: 467
·                      
o                                            View Profile

o                                            Personal Message (Online)

Re: [POLL] Should Lime Technology make unRAID CentOS 64-Bit Edition?

« Reply #1 on: January 11, 2014, 11:20:08 AM »
·                            Quote
unRAID CentOS Edition with LVM capability along with Samba / NFS Shares in the unRAID WebGUI plus the /user/mnt folder


unRAID CentOS Edition with EXT2, EXT3, EXT4, Reiser, BTRFS, JFS, XFS, GFS2, OCFS2, VFAT, NTFS, HFS, HFS+, iSCSI, AoE, NFS3/4, 9P (VirtFS), SquashFS, UFS, Ceph, etc.


unRAID CentOS Edition with KVM, XBMC, Drive Usage Anaysler and starting 2 separate Preclears


Tough Crowd... I waited 4 or 5 hours to see if anyone would noticed that one of my Hard Drives has errors (First Picture in this thread). Apparently due to the small size of the pictures you must of missed it or you want my Development Server to crash and lose my data. Not sure which one it is yet. Anyway... Glad CentOS popped up a notification on my Desktop, Emailed me and as you see below when I log into Webmin, it too lets me know.

There are several other screens / tests / reports / etc. from within Webmin and the programs / tools included in CentOS that I do not show below. 

NOTE: No Red Ball, no notification or warning when booting into unRAID "bare metal".

Here is what it looks like from Webmin...


NOTE: I have many more screenshots to add. I will show you various VMs running, unRAID running on the Host with some hard drives and another unRAID running in a VM with a different set of hard drives at the same time, a nVidia GT430 passed through in a VM with Video Hardware Acceleration, performance numbers, etc. 

However, I need to show you from Arch Linux since CentOS 6.5 is old and it would take me FOREVER to compile all the correct drivers, libvirt, QEMU, etc. This will not be an issue in CentOS 7.0 since it's a MAJOR overhaul / upgrade. The Red Hat 7.0 Beta (which CentOS is a 100% clone of is still too buggy)

Let me get a bulk of the CentOS questions out of the way and I will add the unRAID Arch Linux ones which will give you an idea of performance.
« Last Edit: January 11, 2014, 06:09:30 PM by grumpybutfun »

Online grumpybutfun

·                     Sr. Member
·                     ****
·                    
·                     Posts: 467
·                      
o                                            View Profile

o                                            Personal Message (Online)

Re: [POLL] Should Lime Technology make unRAID CentOS 64-Bit Edition?

« Reply #2 on: January 11, 2014, 11:20:27 AM »
·                            Quote
Updating unRAID CentOS Edition via a WebGUI

NOTE: Look at the bottom to see how easy it is to set a schedule when it looks for updates. You can also tell it to email you depending on what the updates are and even have them install automatically. 



Install Packages in unRAID CentOS Edition via a WebGUI



Start, Stop Services and Enable Services / Apps to start Automatically at boot via a WebGUI

« Last Edit: January 12, 2014, 01:04:13 AM by grumpybutfun »
If you made unRAID run on centOS would you then be able to use the package manager with using a VM?

Did you mean without a VM? If so, then the answer is yes.
My understanding is that all one would have to do is go to the command line and type "apt-get" (or whatever centOS uses) and then it would get the programs?

Yes, assuming the program that you want to install is in a CentOS repository (there are a bunch of them and Lime Technology could create their own where all the plugins we use now are in it).

In CentOS, Fedora, RHEL, etc. the command is "yum install".

Personally, I think the yum package manager is more robust than the one Debian, Ubuntu, Linux Mint, etc. use ("apt-get").

Examples of what you can do in Yum...

The search option checks the names, descriptions, summaries and listed package maintainers of all of the available packages to find those that match. For example, to search for all packages that relate to mysql, type: 
Code: [Select]
yum search mysql
The provides function checks both the files included in the packages and the functions that the software provides. To search for all packages that include files called libcrypto, type: 
Code: [Select]
yum provides libcrypto
Let's say you loaded a program and it gives you the following error when you try to run it:
Quote
Missing libncurses.so.5

You could use yum to find out what package you need to install:
Code: [Select]
yum provides libncurses.so.5
Code: [Select]
unRAID lib64 # yum provides libncurses.so.5
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
 * Webmin: download.webmin.com
 * base: mirror.teklinks.com
 * elrepo: mirror.symnds.com
 * epel: mirror.us.leaseweb.net
 * extras: mirror.trouble-free.net
 * rpmfusion-free-updates: mirror.us.leaseweb.net
 * rpmfusion-nonfree-updates: mirror.us.leaseweb.net
 * updates: dallas.tx.mirror.xygenhosting.com
ncurses-libs-5.7-3.20090208.el6.i686 : Ncurses libraries
Repo        : base
Matched from:
Other       : libncurses.so.5

Use ‘yum provides’ if you like to know which package a particular file belongs to. For example, if you like to know the name of the package that has the /etc/sysconfig/nfs file, do the following.
Code: [Select]
yum provides /etc/sysconfig/nfs
I hope that Lime Technology is taking things like a Package Manager into account in their Business Planning. I know that support is one of their Top Priorities and I believe a Package Manager will help with this. Due to the fact Slackware doesn't have a Package Manager and due to 10,000+ Threads / Posts related to Plugins / No Package Manager... A Linux Distro with a Package Manager is something I hope they really take a long / hard look at and consider possibly changing Linux Distros in the future.
« Last Edit: January 11, 2014, 07:38:16 PM by grumpybutfun »