-
Notifications
You must be signed in to change notification settings - Fork 182
/
NOTES_INSTALL_PXE_LINUX.txt
56 lines (54 loc) · 2.03 KB
/
NOTES_INSTALL_PXE_LINUX.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
### use the following as a big source on devops.....
http://www.jedi.be/blog/
*** PXE Server Setup
Setup Centos with DHCP already setup
Set up TFTP
sudo yum install tftp-server
Enable TFTP
edit /etc/xinetd.d/tftp and set disable to no
Restart xinetd
service xinetd restart
**** Set up Boot Images
### how you organize the folders is upto you..:-).
mkdir -p /tftpboot/images/centos/i386/3.0
mkdir -p /tftpboot/images/centos/i386/3.1
mkdir -p /tftpboot/images/centos/x86_64/3.0
mkdir -p /tftpboot/images/centos/x86_64/3.1
mkdir -p /tftpboot/images/centos/i386/4.0
mkdir -p /tftpboot/images/centos/i386/4.1
mkdir -p /tftpboot/images/centos/x86_64/4.0
mkdir -p /tftpboot/images/centos/x86_64/4.1
mkdir -p /tftpboot/images/centos/i386/5.0
mkdir -p /tftpboot/images/centos/i386/5.1
mkdir -p /tftpboot/images/centos/x86_64/5.0
mkdir -p /tftpboot/images/centos/x86_64/5.1
For each "Release" and "ARCH", copy vmlinuz and initrd.img from /images/pxeboot/ on "disc 1" of that $RELEASE/$ARCH to /tftpboot/images/centos/$ARCH/$RELEASE.
*** Configure DHCP
Edit /etc/dhcpd.conf
allow booting;
allow bootp;
option option-128 code 128 = string;
option option-129 code 129 = text;
next-server xxx.xxx.xxx.xxx; # TFTP Server ip addres...
filename "/pxelinux.0"; #/tftpboot/pxelinux.0
*** REstart DHCP
service dhcpd restart
*** Install sysLinux
yum install syslinux
**** Copy needed files
cp /usr/lib/syslinux/pxelinux.0 /tftpboot
cp /usr/lib/syslinux/menu.c32 /tftpboot
cp /usr/lib/syslinux/memdisk /tftpboot
cp /usr/lib/syslinux/mboot.c32 /tftpboot
cp /usr/lib/syslinux/chain.c32 /tftpboot
**** Create Directory for menus
mkdir /tftpboot/pxelinux.cfg
*** edit pxelinux.cfg/default and add. Adapt as necessary. See syslinux man pages on how to setup menu of menus..
DEFAULT CENTOS53
PROMPT 0
LABEL CENTOS53
KERNEL images/centos/5.3/i386/vmlinuz
APPEND initrd=images/centos/5.3/i386/initrd.img ip=10.100.2.34 ks=http://10.10.100.200/x.cfg
LABEL UBUNTU
KERNEL images/ubuntu/5.3/i386/vmlinuz
APPEND initrd=images/ubuntu/5.3/i386/initrd.img