Meego Wiki
Views

Quality/QA-tools/PXEInstall

From MeeGo wiki
< Quality | QA-tools(Difference between revisions)
Jump to: navigation, search
 
(One intermediate revision not shown)
Line 2: Line 2:
* Prepare the directory and PXE boot loader for TFTP server
* Prepare the directory and PXE boot loader for TFTP server
   [root@meego-global ~]#mkdir /tftpboot/
   [root@meego-global ~]#mkdir /tftpboot/
-
  [root@meego-global ~]#mkdir / tftpboot/pxelinux.cfg
 
   [root@meego-global ~]#cp /usr/lib/syslinux/pxelinux.0  /tftpboot
   [root@meego-global ~]#cp /usr/lib/syslinux/pxelinux.0  /tftpboot
 +
* Setup boot configuration file
 +
  [root@meego-global ~]#mkdir / tftpboot/pxelinux.cfg
 +
  [root@meego-global ~]#vi / tftpboot/pxelinux.cfg/[[mac_address]]
 +
 +
The configuration file is sth like
 +
  default local
 +
  prompt 1
 +
  timeout 5
 +
  display boot.msg
 +
  label local
 +
  localboot 0
 +
  label installer
 +
  kernel xxxx
 +
  append initrd=xxxx
* Configure tftp service through xinet
* Configure tftp service through xinet
Line 25: Line 38:
* Install PXE kernel and initrd
* Install PXE kernel and initrd
-
For Fedora, there is existing PXE boot kernel and initrd, just use them. But for meego, you need create by yourself. Definitely you can refer to Fedora.
+
For Fedora, there is existing PXE boot kernel and initrd, just use them. But for meego, you need create by yourself. Definitely you can refer to Fedora. Make sure path is consistent with pxe configuration file

Latest revision as of 06:37, 14 September 2010

  • Make sure the package for TFTP server is installed.
  • Prepare the directory and PXE boot loader for TFTP server
 [root@meego-global ~]#mkdir /tftpboot/
 [root@meego-global ~]#cp /usr/lib/syslinux/pxelinux.0   /tftpboot
  • Setup boot configuration file
 [root@meego-global ~]#mkdir / tftpboot/pxelinux.cfg
 [root@meego-global ~]#vi / tftpboot/pxelinux.cfg/mac_address

The configuration file is sth like

 default local
 prompt 1
 timeout 5
 display boot.msg
 label local
 localboot 0
 label installer
 kernel xxxx
 append initrd=xxxx
  • Configure tftp service through xinet

Edit /etc/xinetd.d/tftp as below

 service tftp
 {
       disable = no     #enable the tftp server
       socket_type             = dgram
       protocol                = udp
       wait                    = yes
       user                    = root
       server                  = /usr/sbin/in.tftpd
       server_args             = -s /tftpboot     #set the tftp root dir is /tftpboot
       per_source              = 11
       cps                     = 100 2
       flags                   = IPv4
 }
  • Enable auto start the tftp server when next time system reboot
 [root@meego-global ~]# ntsysv
  • Install PXE kernel and initrd

For Fedora, there is existing PXE boot kernel and initrd, just use them. But for meego, you need create by yourself. Definitely you can refer to Fedora. Make sure path is consistent with pxe configuration file

Personal tools