1/11/2016
PXEBootTinyCoreusingCentOSGeneralLinuxSpiceworks
Howtos
3
PXE Boot TinyCore using CentOS
GeneralLinux
byDorrelonSep12,2014at3:31am
Introduction
SetupaPXEserverinCentOSsowecanbootintoTinyCoreoveraLAN
Steps (6 total)
1
Set up tftp server
yuminstalltftpserver
vi/etc/xinetd.d/tftp
disable=no
server_args=s/tftpboot
servicexinetdrestart
yuminstallsyslinux
mkdir/tftpboot
cp/usr/share/syslinux/pxelinux.0/tftpboot
cp/usr/share/syslinux/menu.c32/tftpboot
cp/usr/share/syslinux/memdisk/tftpboot
cp/usr/share/syslinux/mboot.c32/tftpboot
cp/usr/share/syslinux/chain.c32/tftpboot
2
Set up DHCP
Ifyou'realreadyrunningaDHCPonWindows,addoption66(pxeserverIP)and67(pxelinux.0).
OtherwisesetupDHCPinCentOS:
yuminstalldhcp
vi/etc/dhcp/[Link]
allowbooting
allowbootp
optionoption128code128=string
optionoption129code129=text
nextserver10.0.0.100
filename"/pxelinux.0"
subnet10.0.0.0netmask255.255.255.0{
rangedynamicbootp10.[Link].0.10
}
:wqtosaveandquit
servicedhcpdrestart
3
Set up TinyCore
wget[Link]
mkdirp/tftpboot/images/TC
[Link]/mnt/TC
cpR/mnt/TC/boot/tftpboot/images/TC/
cpR/mnt/TC/cde/tftpboot/images/TC/
4
Add TinyCore entry to PXE menu
vi/tftpboot/[Link]/default
defaultmenu.c32
prompt0
timeout300
ONTIMEOUTlocal
MENUTITLEPXEMenu
LABELtinycore
MENULABELTinyCore
kernelimages/TC/boot/vmlinuz
appendinitrd=/images/TC/boot/[Link]=/cde
:wqtosaveandquit
5
Remaster TinyCore (so it can find the cde folder)
[Link]
[Link](aVMwithnoHDDisfineforthis)
MountUSBdriveinTinyCoreusingmounttool
[Link]/tmp
[Link]
[Link]
1/2
1/11/2016
PXEBootTinyCoreusingCentOSGeneralLinuxSpiceworks
[Link]
CopycdefolderfromUSBdriveto/tmp/core_extract
[Link]
Copy/tmp/core_package/[Link]
[Link]/tftpboot/images/TC/bootonCentOSmachine
6
Another Way
[Link],youcanalsousethetftplistbootcode:
Addtftplist=<serverip>://images/TC/cde/[Link]/tftpboot/[Link]/defaultandremovethetce=/cdebootcode.
Eg."appendinitrd=/images/TC/boot/[Link]=<serverip>://images/TC/cde/[Link]"
Thencopy/tftpboot/images/TC/cde/[Link]/images/TC/cde/optional/toeachlinebeforethe
<extension>.tgzfilename.
Eg./images/TC/cde/optional/[Link]
Thismethodisabitslowerthantheotherwayanddoesn'twork100%forme,butIthoughtI'dincludeitanyway.
Conclusion
YoushouldnowbeabletobootintoTinyCoreusingPXE.
Subscribe
4 Comments
ShawnCBSep12,2014at7:29am
Dorrelthisisawesomedude,OurcompanyjuststartedadoptingLinuxandUnixandweareforcedtosetupaPXEboot
environment.IInstalledCentos7onmyparallelsformacandinstalledtheTinycorefollowingyourinstructionsandit
[Link]
DorrelSep12,2014at9:28am
[Link]!
TinyCoreisprettycoolI'[Link]'reinterested,I'llwriteupanotherHow
toforthataswell.
ShawnCBSep15,2014at8:53am
PleasedoDorrel.
Thisisfreetoolsanditsamazing.I'mcurrentlybusyinstallingSaltandNagiostoMonitortheWindowsInfrastructure.
Andwhat'samazingisthatIonlyknowLinuxforaboutsixmonths.AllonCentos7andthendeploymentontheRedHat
ProdServers.
DorrelSep24,2014at11:59am
Here'showtosetupanemailclienttoconnecttoExchange2010:
[Link]
AddyourcommentsonthisHowto!JointheITNetworkorLogin.
[Link]
2/2