Instalasi openSUSE tanpa CD/DVD – Menggunakan PXE Boot Network Bagian II

/* Catatan : Artikel ini merupakan bagian kedua dari 2 tulisan mengenai setting PXE Server agar bisa melakukan instalasi openSUSE melalui jaringan. Silakan merujuk pada Tutorial Bagian I Untuk penjelasan pengantar dan konfigurasi awal sistem. */

PXE Boot
MEMPERSIAPKAN KONFIGURASI DHCP SERVER

DHCP(Dynamic Host Configuration Protocol) diperlukan untuk memberikan IP Address dan rujukan mengenai PXE Server yang akan digunakan oleh klien. Berikut adalah panduan konfigurasinya :

  1. Install DHCP Server
    zypper in -t pattern dhcp_dns_server
    
  2. Backup konfigurasi awal DHCP Server
    mv /etc/dhcpd.conf /etc/dhcpd.conf.original
    
  3. Buat file  /etc/dhcpd.conf baru dengan isi sebagai berikut :
    # 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. Lakukan perubahan pada file /etc/dhcpd.conf, terutama untuk IP Address dari DHCP Server. Pada tutorial ini, IP yang akan digunakan sebagai server PXE adalah IP 192.168.0.8. Jangan lupa sesuaikan juga  subnet, broadcast dan range address.
  5. Edit file /etc/sysconfig/dhcpd dan aktifkan network card yang akan digunakan untuk menerima respon permintaan DHCP. Contoh, jika saya menggunakan LAN Card pertama sebagai penerima respon, saya akan memilih eth0. Jika bingung, silakan pilih  ANY :-D .
    # 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
    

KONFIGURASI PXE BOOT

  1. Copy semua file yang ada di DVD (lihat bagian I) didalam folder/boot/i386/loader kedalam folder /srv/tftpboot : message, initrd dan linux
  2. Copy file yang ada di DVD dengan nama/boot/i386/loader/isolinux.cfg kedalam folder /srv/tftpboot/pxelinux.cfg/. Ganti namanya menjadi default
  3. Restart  DHCP Service
    service dhcpd restart
    

MENGGUNAKAN KLIEN UNTUK BOOT MELALUI PXE

  1. Siapkan PC dengan  Network card yang mendukung proses Boot melalui network
  2. Ubah setting BIOS, jadikan Boot from LAN/Boot From Network sebagai prioritas
  3. Restart komputer.
    `
    tftp-server-2

Popularity: 22% [?]

5 Responses to “ Instalasi openSUSE tanpa CD/DVD – Menggunakan PXE Boot Network Bagian II ”

  1. [...] Tutorial berlanjut ke bagian II. [...]

  2. [...] mengenai “Tutorial Instalasi openSUSE Tanpa CD/DVD Menggunakan PXE Boot” bagian I dan bagian II. Kedua tutorial itu semestinya mudah diikuti dan sukses dijalankan karena saya mencobanya berulang [...]

  3. [...] Instalasi openSUSE tanpa CD/DVD – Menggunakan PXE Boot Network Bagian II [...]

  4. thanx ilmunya..
    ntar boleh nanya2kan???
    via email aja..

  5. Bos, kalau instalasi windows xp / seven tanpa CD/DVD dengan menggunakan PXE boot networking Server opensuse ada gak ya ????
    biar bisa menambah ilmu ni, hehehehe

Leave a Reply

You can use these XHTML tags: <a href="" title=""> <abbr title=""> <acronym title=""> <blockquote cite=""> <code> <em> <strong>