Meego Wiki
Views
From MeeGo wiki
(Difference between revisions)
Jump to: navigation, search
(Created page with "== PXE boot server == What follows is a step by step instruction how to setup the PXE boot server for Fedora 13. Note! the steps include setting up DHCP server, be sure not to c…")
(→PXE boot server)
 
(One intermediate revision not shown)
Line 1: Line 1:
-
== PXE boot server ==
 
-
 
What follows is a step by step instruction how to setup the PXE boot server for Fedora 13. Note! the steps include setting up DHCP server, be sure not to configure it to corporate network, or you might get a visit from angry netadmin.  
What follows is a step by step instruction how to setup the PXE boot server for Fedora 13. Note! the steps include setting up DHCP server, be sure not to configure it to corporate network, or you might get a visit from angry netadmin.  
Line 7: Line 5:
  yum install tftp-server dhcp syslinux
  yum install tftp-server dhcp syslinux
-
* Configure DHCP  
+
* Configure DHCP (/etc/dhcp/dhcpd.conf)
  ddns-update-style interim;
  ddns-update-style interim;
  next-server 192.168.2.14
  next-server 192.168.2.14
Line 32: Line 30:
Set "disabled=no" in  
Set "disabled=no" in  
  /etc/xinetd.d/tftp  
  /etc/xinetd.d/tftp  
-
Check also that tfpt is not blocked by your firewall.
+
Check also that TFTP is not blocked by your firewall.
* Make the PXE server ip static
* Make the PXE server ip static
-
/etc/sysconfig/network-scripts/ifcfg-eth0.static:
 
-
DEVICE=eth0
 
-
BOOTPROTO=STATIC
 
-
ONBOOT=no
 
-
TYPE=Ethernet
 
-
IPADDR=192.168.2.14
 
-
NETMASK=255.255.255.0
 
-
GATEWAY=192.168.2.1
 
-
...or something. Actually I just shutdown the NetworkManager and configured the IP manually:
 
  /etc/init.d/NetworkManager stop
  /etc/init.d/NetworkManager stop
  ifconfig eth0 192.168.2.14 up
  ifconfig eth0 192.168.2.14 up
 +
...or something more eloquent.
* Copy pxelinux.0 so it can be found by during boot.
* Copy pxelinux.0 so it can be found by during boot.

Latest revision as of 05:44, 27 September 2010

What follows is a step by step instruction how to setup the PXE boot server for Fedora 13. Note! the steps include setting up DHCP server, be sure not to configure it to corporate network, or you might get a visit from angry netadmin.

  • Install needed servers
yum install tftp-server dhcp syslinux
  • Configure DHCP (/etc/dhcp/dhcpd.conf)
ddns-update-style interim;
next-server 192.168.2.14
subnet 192.168.2.0 netmask 255.255.255.0 {
    range 192.168.2.10 192.168.2.15;
    default-lease-time 36000;
    max-lease-time 48000;
    option routers 192.168.2.14;
    option domain-name-servers 192.168.2.14;
    option subnet-mask 255.255.255.0;
    option domain-name "meegoai";
    option time-offset -8;
}
host netbook {
    #set to the mac address of *your* netbook
    hardware ethernet 00:24:54:06:e8:ba
    fixed-address 192.168.2.15;
    option host-name "meegonetbook";
    filename "pxelinux.0";
}
  • Activate tftp

Set "disabled=no" in

/etc/xinetd.d/tftp 

Check also that TFTP is not blocked by your firewall.

  • Make the PXE server ip static
/etc/init.d/NetworkManager stop
ifconfig eth0 192.168.2.14 up

...or something more eloquent.

  • Copy pxelinux.0 so it can be found by during boot.
cp /usr/share/syslinux/pxelinux.0 /var/lib/tftpboot/
  • Copy the initrd and kernel from the tar ball to tftboot dir
mkdir /var/lib/tftpboot/meegoai
cp initrd.img vmlinuz  /var/lib/tftpboot/meegoai
  • Configure the images for boot menu
mkdir  /var/lib/tftpboot/pxelinux.cfg

Create file /var/lib/tftpboot/pxelinux.cfg/default:

DISPLAY boot.txt
DEFAULT meegoai
LABEL meegoai
kernel meegoai/vmlinuz
    append rootdelay=1 root=/dev/ram0 initrd=meegoai/initrd.img --
LABEL local
    localboot 0
PROMPT 3
TIMEOUT 0

and a file for boomenu, /var/lib/tftpboot/boot.txt:

- Boot Menu -
=============
meegoai
local
  • Start services
service dhcpd start
service xinetd restart
service httpd start
Personal tools