LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 09-11-2010, 06:00 AM   #1
ajr-tech
LQ Newbie
 
Registered: Jun 2010
Distribution: Fedora 13
Posts: 7

Rep: Reputation: 0
PXE Netboot Operating System (Network OS Booting/running) NOT Kickstart installation


Hello,

I have been searching/scouring the internet for a simple answer to a complex question:
How can I boot a mini-OS (or any OS) via the network using PXE and NFS shares?

The Problem:
I want a simple OS to PXE boot, mount the NFS share, and run a script (or scripts) to update BIOS and other Firmware automatically.

What I have:
I got PXE configured, but I can't seem to do anything other than Kickstart the installation. I have DHCP configured to tell it to boot of the network; I've got the TFTP server serving up the pxeboot.cfg/default file (acting as the boot loader); and I've got the kernel and initrd loading. I also have a NFS share with a complete CentOS installation installed to it (different from the server's installation).

What I am missing:
How do I get the kernel/initrd to mount an NFS share as root, and boot from that? Once I get that setup, I am relatively sure I can write the scripts to update BIOS and such, but I am missing this key step.

By the way, I have tried using system-config-netboot to configure a diskless host, but it doesn't seem to work. Can someone explain exactly what this tool does that I don't have?

I am using CentOS in this case, but it seems like I should be able to use any Linux OS which supports DHCP, PXE, and NFS.
 
Old 09-11-2010, 01:41 PM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 17,513

Rep: Reputation: 2604Reputation: 2604Reputation: 2604Reputation: 2604Reputation: 2604Reputation: 2604Reputation: 2604Reputation: 2604Reputation: 2604Reputation: 2604Reputation: 2604
Slackware has an excellent doc on it in ~/usb-and-pxe-installers/ of every cd. You can grab it alone
wget ftp://ftp.heanet.ie/mirrors/slackwar...README_PXE.TXT
 
Old 09-12-2010, 11:34 AM   #3
ajr-tech
LQ Newbie
 
Registered: Jun 2010
Distribution: Fedora 13
Posts: 7

Original Poster
Rep: Reputation: 0
Hey business_kid, thank you for the document.

I have found a large number of places that will walk me though setting up a PXE Installation. What I am trying to do, is actually RUN the OS from the network, using PXE and NFS. Think of it like a diskless client (no CD Drive or Hard disk drive) that I want to run a simple text based OS on. More precisely, I want a kernel and shell loaded so that I can run a script automatically.

The kernel that comes setup for PXE Booting seems to dump me into anaconda to start the installation. I don't want to run anaconda. I want to download some firmware patches and execute them in order to update the BIOS, BMC, RAID Controller, etc. before I install the OS.

Any ideas?
 
Old 09-13-2010, 02:28 AM   #4
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 17,513

Rep: Reputation: 2604Reputation: 2604Reputation: 2604Reputation: 2604Reputation: 2604Reputation: 2604Reputation: 2604Reputation: 2604Reputation: 2604Reputation: 2604Reputation: 2604
It's doable. Go seraching with +diskless in the search
 
Old 01-28-2011, 10:39 AM   #5
rzealous
LQ Newbie
 
Registered: Jan 2011
Posts: 1

Rep: Reputation: 0
Hi ajr-tech, I am in the same exact technical situation as you, needing to boot a minimal os (in this case, centos) off pxe and update hundreds of machines' of machine bios configs and save their bios configs to the nfs share. I attempted to pass a ks=blahblahblah parameter to the boot append string that I try to boot the machine from, but it seems to skip it since it's a prebuilt machine. Did you ever find out how to accomplish your goal? Thanks
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
pxe booting is not reading kickstart file surajpd Linux - Networking 5 07-01-2010 02:33 PM
[SOLVED] PXE Netboot installer trouble TheStarLion Debian 4 12-21-2009 04:45 PM
DOS - netboot (PXE booting) from Linux TFTP server Bhagyesh Linux - Newbie 1 12-04-2009 08:59 PM
pxe netboot ubuntu 9.04 cannot open display: 0.0 Ipolit Linux - General 2 07-18-2009 07:04 AM
Kickstart PXE install to machine of other network vikas027 Linux - Newbie 2 03-10-2009 12:17 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 01:49 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration