Kamis, 30 Mei 2013

PXE BOOT

APA YANG DIMAKSUD DENGAN PXE BOOT ?

PXE adalah singkatan dari Preboot Execution Environment. PXE adalah salah satu cara menjalankan komputer tanpa Floppy/Hard Disk/CD-ROM, dalam arti bahwa BIOS akan secara otomatis menjalankan perintah yang dikirimkan melalui jaringan. Tentu saja cara ini membutuhkan server yang bertindak sebagai penyedia layanan PXE dan komputer client harus memiliki kemampuan booting melalui jaringan.

Sebagian besar motherboard baru memiliki fasilitas Boot from LAN secara default. Boot from LAN biasa dikenal juga sebagai BOOTROM. Kita harus mengaktifkan kemampuan Boot from LAN ini melalui BIOS setup. Proses setup mungkin saja berbeda antara motherboard yang satu dengan yang lainnya namun biasanya terletak di menu Advanced BIOS setup. Aktifkan juga setting agar Boot from LAN/Network sebagai prioritas utama booting.

APA KEUNTUNGAN DARI INSTALASI MELALUI PXE BOOT ?
Tidak memerlukan CD/DVD/Floppy/LiveUSB maupun sistem yang sudah terinstall. Satu-satunya yang diperlukan adalah server yang sudah disetup dan klien mendukung boot dari LAN.
Mudah dan cepat dikonfigurasi
Tidak membutuhkan media untuk booting. Tidak perlu burning Net ISO untuk melakukan booting.
Mengurangi biaya instalasi dan upgrade dan mengurangi kemungkinan kesalahan setting
Mengurangi waktu persiapan dan proses instalasi

MEMPERSIAPKAN TFTP SERVER

TFTP Server merupakan singkatan dari Trivial File Transport Protocol (TFTP), model protokol untuk file transfer yang sederhana, dengan fungsi utama bertindak sebagai FTP server.

Kita akan menggunakan TFTP Server sebagai media melakukan booting berdasarkan data dari server jaringan.

1. Install TFTP Server

2.Lakukan konfigursi TFTP Server. Klik YAST | Network Services | TFTP Server



3.Pilih Enable, dan ubah Boot Image Directory menjadi /srv/tftpboot.

Jika menggunakan firewall, jangan lupa untukmemberikan tanda centang

/contreng pada pilihan Open Port in Firewall.



4. Klik OK

Coba check ke folder /srv/tftpboot, semestinya ada file dan folder tertentu.

CATATAN : Pada openSUSE 11.3, ada kemungkinan proses setup TFTP tidak secara otomatis melalukan copy data syslinux ke lokasi yang dituju sehingga ada kemungkinan folder /srv/tftpboot masih kosong. Jika ini yang terjadi, lakukan 2 hal sebagai berikut :
Copy file /usr/share/syslinux/pxelinux.0 ke /srv/tftpboot
Buat folder /srv/tftpboot/pxelinux.cfg

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 Serve

2. Backup konfigurasi awal DHCP Server

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 "malayin.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. 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.

5. Start/Restart DHCP Service dengan perintah

service dhcpd start.


Tidak ada komentar:

Posting Komentar