Tutorial : openSUSE Network Install over PXE-Boot Part II

/* Note : It’s the second article regarding PXE Boot Setting. Please refer to Tutorial : openSUSE Network Install over PXE-Boot Part I for beginning configuration and Description about PXE Boot. */

PREPARING DHCP SERVICE

DHCP (Dynamic Host Configuration Protocol) needed for supply the correct information for PXE Boot client.

  1. Install DHCP Service
    zypper in -t pattern dhcp_dns_server
    
  2. Move the default DHCP configuration. We will used the custom configuration
    mv /etc/dhcpd.conf /etc/dhcpd.conf.original
    
  3. Create a new /etc/dhcpd.conf with text editor and copy-paste the configuration below
    # dhcpd.conf
    #
    # Sample configuration file for ISC dhcpd
    ## option definitions common to all supported networks...
    #
    # All of this happens behind the firewall, and the whole domain
    # is made-up anwyay, so this is mostly fluff.
    #
    option domain-name "vavai.net";
    
    # We don't have Nameservers... so let's just forget this item
    #option domain-name-servers ns1.networkboot.org, ns2.networkboot.org;
    
    default-lease-time 600;
    max-lease-time 7200;
    
    # if you do not use dynamical DNS updates:
    #
    # this statement is needed by dhcpd-3 needs at least this statement.
    # you have to delete it for dhcpd-2, because it does not know it.
    #
    # if you want to use dynamical DNS updates, you should first read
    # read /usr/share/doc/packages/dhcp-server/DDNS-howto.txt
    ddns-update-style none; ddns-updates off;
    
    # If this DHCP server is the official DHCP server for the local
    # network, the authoritative directive should be uncommented.
    #authoritative;
    
    # Use this to send dhcp log messages to a different log file (you also
    # have to hack syslog.conf to complete the redirection).
    log-facility local7;
    
    #  We only want to respond to PXE DHCP requests
    
    allow booting;
    
    # define rules to identify DHCP Requests from PXE and Etherboot clients.
    
    class "pxe" {
    match if substring (option vendor-class-identifier, 0, 9) = "PXEClient";
    }
    class "etherboot" {
    match if substring (option vendor-class-identifier, 0, 9) = "Etherboot";
    }
    
    # This is our subnet for PXE boot/installation.
    
    subnet 192.168.0.0 netmask 255.255.255.0 {
    option broadcast-address 192.168.0.255;
    pool {
    range 192.168.0.101 192.168.0.150; # only need a few addresses
    default-lease-time 180; # no long lease time required for booting
    max-lease-time 360;     # booted system does its own dhcp request
    server-name "192.168.0.8"; # This happens to be the IP of this server too
    next-server 192.168.0.8; # Address of the TFTP server
    filename "pxelinux.0";
    allow members of "pxe"; # only respond to PXE requests
    allow members of "etherboot"; # allow etherboot, too
    }
    }
    
  4. Make a proper change to /etc/dhcpd.conf, especially the IP Address of DHCP Server. In this scenario, I’m using address 192.168.0.8. If you used another subnet, change the subnet, broadcast and range address.
  5. Edit /etc/sysconfig/dhcpd and activate the ethernet used for listen DHCP request. If you confused which ethernet will be used, try with ANY :-D as suggested on the configuration. I’m using eth0 so part of my configuration look like this :
    # Examples: DHCPD_INTERFACE="eth0"
    #           DHCPD_INTERFACE="eth0 eth1 eth2 tr0 wlan0"
    #           DHCPD_INTERFACE="internal0 internal1"
    #           DHCPD_INTERFACE="ANY"
    #
    DHCPD_INTERFACE="eth0"
    
  6. Start/Restart DHCP Service
    service dhcpd restart
    

PXE BOOT CONFIGURATION

  1. Copy all of these file from [PATH-OF-DVD-CONTENTS]/boot/i386/loader into /srv/tftpboot : message, initrd and linux
  2. Copy file : [PATH-OF-DVD-CONTENTS]/boot/i386/loader/isolinux.cfg into /srv/tftpboot/pxelinux.cfg/. Rename it into default
  3. Restart the DHCP Service
    service dhcpd restart
    

USING PXE BOOT FOR INSTALLATION

  1. Prepare a PC with attached Network card. This computer will be used as client for PXE Boot Installation
  2. Change BIOS Setting, activating Boot from LAN and switch the Boot Default Priority to boot from LAN
  3. Restart the computer. It will boot from LAN and display the installation option.
    `
    tftp-server-2

Related Entries

3 Responses for “Tutorial : openSUSE Network Install over PXE-Boot Part II”

  1. [...] to : Tutorial : openSUSE Network Install over PXE-Boot Part II January 17, 2009 — Tutorial : openSUSE Network Install over PXE-Boot Part II (0)January 13, 2009 [...]

  2. Rick Eshbach says:

    I’m a newbie on openSuse and linux, but this project is teaching me a lot. At this point I seem to be stuck. DHCP starts right away on the client (Toshiba 3500 Tablet PC) and the correct server address is shown but the TFTP dies. I get a message PXE-E32 TFTP timeout. Is there a firewall blocking me on the server machine? (Server is a Dell with openSuse 11.1) Can you get me unstuck? :)
    Thanks! Rick

  3. Abhijit says:

    Thanks a lot for sharing the info on PXE.

    I have to try this with dhcp server on windows, how do i go ahed.
    where in we have no control on MS dhcp server.

Leave a Reply

About Vavai

Masim Vavai Sugianto Masim Vavai Sugianto, Indonesian, male, 32 years old, born and live in Bekasi-West Java, a small town near Jakarta – main city of Indonesia – since 17 May 1976. Founder of Indonesian openSUSE and Zimbra Community, an adventure, travelling and book lover.



I live in a tropical country, Indonesia that only has two seasons, dry season and rainy season. I love the dry season with bright sunshine and rare rain…There is a joke about the seasons in Indonesia. Indonesia is known as a country with so many season, ie : durian season, mango season, married season and much more...



ContactI'm currently working as an IT support for a small company based on Jakarta. My career has led me to specialize in Sysadmin, networking and software implementation with current focus on Linux and open source area. I have experience on MRP, ERP, Gemba Kaizen, Just in Time, Six Sigma and TQC/TQM. Please use my contact page if you wish to contact me.
Log in - BlogNews Theme by Gabfire themes