LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > CentOS
User Name
Password
CentOS This forum is for the discussion of CentOS Linux. Note: This forum does not have any official participation.

Notices


Reply
  Search this Thread
Old 02-10-2016, 04:45 AM   #1
robertkwild
Member
 
Registered: Feb 2015
Posts: 382

Rep: Reputation: Disabled
making a PXE boot network server


hi all,

want to make a PXE boot server not just for WDS i want to make it so the user has the option when they hit F12 to select what boot server they want ie windows linux or mac, because atm when they hit F12 it just goes to the WDS server as i have made the scope options for the DHCP to point to that boot server

am i making any sense?

many thanks

rob
 
Old 02-10-2016, 09:09 AM   #2
robertkwild
Member
 
Registered: Feb 2015
Posts: 382

Original Poster
Rep: Reputation: Disabled
i have found a good walkthrough to follow -

https://thommck.wordpress.com/2011/0...-network-boot/

quick question i am about to deploy it on the wds server but before i fudge it up i would like to revert back incase, i am about to do this step -
"In Server 2008 R2 you have to use the wdsutil command line to set the the default boot program with these commands"

but what about if i want to go back to my normal boot option instead of using the pxelinux one?
 
Old 02-10-2016, 08:12 PM   #3
jefro
Moderator
 
Registered: Mar 2008
Posts: 22,003

Rep: Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629
"but what about if i want to go back to my normal boot option instead of using the pxelinux one"

What is your normal boot option? You mean wds? I'd assume you simply undo the syslinux pxe stuff.


While you are looking don't forget to look at gpxe/ipxe too if you have a more complex lan or wan.
 
Old 02-11-2016, 04:56 AM   #4
robertkwild
Member
 
Registered: Feb 2015
Posts: 382

Original Poster
Rep: Reputation: Disabled
success, done it

i had to add more files to the \boot\x64 for it to work as it keeped on asking for one more files to be added but eventually it booted into pxelinux

i downloaded the latest version of pxelinux (6.03) and in the folder its all in the bios sub folder

the files i added were -

chain.c32

ldlinux.c32

libcom32.c32

libutil.c32

pxelinux.0 but renamed it to pxelinux.com

vesamenu.c32

but another quick question, im trying to add a centos image to my pxeboot menu, what files do i add from my centos iso to do this

EDIT - figured it out, the files you need to copy on the iso are in the directory -
\images\pxeboot\

many thanks

rob

Last edited by robertkwild; 02-12-2016 at 08:48 AM.
 
Old 02-12-2016, 09:12 AM   #5
robertkwild
Member
 
Registered: Feb 2015
Posts: 382

Original Poster
Rep: Reputation: Disabled
ok so i have come this far but im stuck on the last hurdle

i press F12

i select from the boot menu centos 6.7 net install

it then loads

i select NFS directory for my installation media

i type in the details of the nfs server share

NFS server name: 192.168.1.91

Centos directory: /media/RT0/IT/rob/centos6.7/images/install.img - what i have done was i unzipped the iso image and extracted it to the folder centos6.7

NFS mount options (optional):

now i get to the centos installation and press continue to everything

i then get an error when it writes to my HD

unable to read package metadata. this may be due to a missing repodata directory. please ensure that your install tree has been correctly generated
 
Old 02-12-2016, 08:12 PM   #6
jefro
Moderator
 
Registered: Mar 2008
Posts: 22,003

Rep: Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629
Are you saying you get to the install a number of pages down where it gets to wanting to load some disk partition scheme?

I think there is a way to access terminal from that menu to run some tests. Not sure if your installer is somehow thinking the ramdisk this is running from is the install location. Other if the image you have can't mount the drive for some reason.
 
Old 02-15-2016, 11:05 AM   #7
robertkwild
Member
 
Registered: Feb 2015
Posts: 382

Original Poster
Rep: Reputation: Disabled
success,

on the nfs share i copied the centos 6.7 ISO in the share and also i extracted/copied the /images/install.img from the iso and put it also in the share, so it looks like this

so in the nfs mount point i put -

/media/RT0/IT/rob/centos6.7/install.img

once it knows that i imagine it can see the iso file and continue the installation as it has the directory tree of the installation (the iso file)
Attached Thumbnails
Click image for larger version

Name:	nfs share.JPG
Views:	28
Size:	31.0 KB
ID:	20838  
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
issue with uefi pxe boot on rhel 6.5 as pxe server geekmaxwell Linux - Networking 3 04-02-2014 02:27 PM
Setting up PXE network boot for diagnostic tools mike34341 Linux - Networking 8 03-25-2013 02:20 PM
Boot computer through network without PXE? Silver565 Linux - Software 4 04-19-2012 12:03 AM
Network Installation using PXE Boot Xeln Linux - Enterprise 7 09-16-2005 09:20 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > CentOS

All times are GMT -5. The time now is 09:54 PM.

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