00.11 Edit This 0 Comments »
-8">

Instalasi Mandriva Linux dengan PXE

PXE merupakan standar untuk boot suatu sistem melalui koneksi jaringan. Mandriva Linux can be installed via PXE, allowing you to install it on a system with no CD drive or bootable USB media (and no currently installed operating system) via a network connection. Mandriva Linux dapat diinstal melalui PXE, sehingga Anda dapat menginstallnya pada sebuah sistem tanpa CD bootable USB drive atau media (dan tidak ada saat terinstal sistem operasi) melalui sambungan jaringan.


Cara kerjanya

A network installation will use several protocols almost simultaneously; these are the file transfer protocols. Sebuah instalasi jaringan akan menggunakan beberapa protokol hampir bersamaan, ini adalah protokol transfer file. When a machine is booted over the network, the following things happen: Ketika sebuah mesin di-boot melalui jaringan, hal-hal berikut terjadi:

  • Your network card contains a small BIOS, which boots the system. Kartu jaringan Anda berisi BIOS kecil, yang mem-boot sistem.

  • It will independently find an IP address. Ini akan secara independen menemukan sebuah alamat IP. This address is provided by a DHCP server. Alamat ini disediakan oleh server DHCP.

  • It will then look for a server capable of sending it a small file. Anda kemudian akan mencari server mampu mengirimnya file kecil. This server is called a TFTP server. Server ini disebut sebuah server TFTP.

  • It will download this file and transfer control of the system to it. Ini akan download file ini dan transfer kontrol dari sistem itu.

  • This file, in our case, will contain the 'stage 1' of the Mandriva installer, which is a small program to which you provide the location of the installation media (in this case, the Mandriva ISO files). File ini, dalam kasus kami, akan berisi 'tahap 1' dari Mandriva installer, yang merupakan program kecil yang Anda menyediakan lokasi media instalasi (dalam hal ini, file-file ISO Mandriva).

  • We will tell this program to use NFS to find the ISO files and run the full installer from them. Kami akan kirim program ini menggunakan NFS untuk menemukan file-file ISO dan menjalankan installer penuh dari mereka.

  • Finally, the first ISO will be launched as if it were a CD in the local machine. Akhirnya, yang pertama akan diluncurkan ISO seolah-olah CD di komputer lokal.

Everything referred to as "the server" below will be the same machine in our example: the one which distributes the installation ISOs. Semuanya disebut sebagai "server" di bawah ini akan menjadi mesin yang sama pada contoh kita: satu yang mendistribusikan ISO instalasi.

The server must be connected to the machine which will install Mandriva via a local network, which means it will need two network cards if it is connected to the internet through one (it is actually possible to do this with one physical network card, if you use a "virtual" interface, but this is outside the scope of this article). Server harus terhubung ke mesin yang akan menginstal Mandriva melalui jaringan lokal, yang berarti akan memerlukan dua kartu jaringan jika terhubung ke internet melalui salah satu (sebenarnya mungkin untuk melakukan hal ini dengan satu kartu jaringan fisik, jika Anda menggunakan "virtual" interface, tapi ini di luar lingkup artikel ini). It is also of course possible to disconnect the server from the internet in order to connect it to the other machine via a local network. Hal ini juga tentu saja kemungkinan untuk memutuskan sambungan dari server internet untuk menghubungkan ke komputer lain melalui jaringan lokal.

Requirements Persyaratan

To complete a network installation, you will need several things on the server: Untuk menyelesaikan instalasi jaringan, Anda akan memerlukan beberapa hal di server:

  • Mandriva ISOs on the hard disk Mandriva ISO pada hard disk

  • The drakpxelinux package The drakpxelinux paket

  • The dhcp-server package Dhcp-server pada paket

  • The drakwizard package The drakwizard paket

  • The nfs-utils package Nfs-utils paket

DHCP Configuration Konfigurasi DHCP

Once you have all of this installed, open the Mandriva Control Center. Setelah Anda memiliki semua ini terinstal, buka Pusat Kontrol Mandriva. If you did not have drakwizard installed before, you will notice several new functions. Jika Anda tidak memiliki drakwizard diinstal sebelumnya, Anda akan melihat beberapa fungsi baru. The one we are currently interested in is under Network Services: "Configure DHCP". Yang kita sedang diminati dalam Layanan Jaringan dibawah: "Konfigurasi DHCP".

When you run it, it will ask several very simple questions. Ketika Anda menjalankan itu, ia akan menanyakan beberapa pertanyaan yang sangat sederhana. Make sure to read the explanations! Pastikan untuk membaca penjelasan! Choose the card connected to the local network and provide two non-public IP addresses that define a range, for example: 192.168.0.10 to 192.168.0.250. Pilih kartu yang terhubung ke jaringan lokal dan menyediakan dua non-publik yang mendefinisikan alamat IP suatu range, misalnya: 192.168.0.10 ke 192.168.0.250. Give the IP address of the server as the gateway and activate PXE. Berikan alamat IP dari server sebagai gateway dan mengaktifkan PXE.

Your DHCP server is ready: the other machine should now be able to receive an IP address. Server DHCP Anda siap: mesin lain sekarang harus dapat menerima alamat IP. Now we have to provide something for it to run: the Mandriva installer stage 1. Sekarang kita harus memberikan sesuatu untuk menjalankannya: Mandriva installer pada tahap 1.

Providing stage 1 Menyediakan stadium 1

Stage 1 is provided in the form of a kernel and an initrd (which contains modules to be loaded by the kernel). Tahap 1 adalah disediakan dalam bentuk kernel dan initrd (yang berisi modul-modul yang akan diambil oleh kernel). It is located on the first Mandriva ISO. Terletak di ISO Mandriva pertama.

Let's assume the ISOs are in the /iso directory and the first Mandriva ISO is called cd1.iso . Mari kita asumsikan the ISO berada di / iso direktori dan ISO Mandriva pertama disebut cd1.iso. Enter the following commands as root: Masukkan perintah berikut sebagai root:

mkdir /mnt/tmp mkdir / mnt / tmp

mount -o loop /iso/cd1.iso /mnt/tmp mount-o loop / iso/cd1.iso / mnt / tmp

You can now access the contents of the ISO file in the /mnt/tmp directory . Anda sekarang dapat mengakses isi dari file ISO di / mnt / tmp direktori. Enter the isolinux/alt0 subdirectory. Masukkan isolinux/alt0 subdirektori. You will see the stage1 kernel and initrd. Anda akan melihat stage1 kernel dan initrd.

Konfigurasi PXE: drakpxelinux

Now you can run drakpxelinux as root. Sekarang Anda dapat menjalankan drakpxelinux sebagai root. A wizard will launch that will help you get PXE up and running on your DHCP server. Sebuah wizard akan meluncurkan yang akan membantu Anda mendapatkan PXE berdiri dan berjalan pada server DHCP. At the right hand side of the screen you will see the 'default' profile - click on it. Pada sisi kanan dari layar anda akan melihat 'default' profil - klik di atasnya. Then click on "Add a PXE entry" at the bottom of the screen. Kemudian klik "Tambahkan sebuah entri PXE" di bagian bawah layar. A second wizard will launch to configure the TFTP server which will distribute the stage1. Kedua akan meluncurkan wizard untuk mengkonfigurasi TFTP-server yang akan mendistribusikan stage1.

Give it the path of the kernel and initrd image which the TFTP server will provide to the other machine. Berikan path dari kernel dan initrd image yang server TFTP akan menyediakan mesin yang lain. Once the PXE configuration is done, select this entry (named "Mandriva" by default) as the boot time default at the bottom right of the screen. Setelah konfigurasi dilakukan PXE, pilih entri ini (bernama "Mandriva" secara default) sebagai standar waktu boot di kanan bawah layar.

Go into the "Systems" tab. Masuk ke "System" tab. You will see a MAC address corresponding to the other machine (if it is on and connected to the network). Anda akan melihat alamat MAC sesuai dengan mesin yang lain (jika dan terhubung ke jaringan). If this is not the case, restart the other machine and boot it over the network: it should appear, even if it does not manage to boot correctly. Jika hal ini tidak terjadi, restart mesin lain dan boot melalui jaringan: itu harus muncul, bahkan jika tidak dikelola boot dengan benar.

At the bottom right of the screen, choose "default", then select the entry corresponding to your machine and click on the two buttons: "Set the installation profile" and "Set the startup profile". Di kanan bawah layar, pilih "default", kemudian pilih entri yang sesuai untuk komputer anda dan klik pada dua tombol: "Mengatur profil instalasi" dan "Mengatur profil startup". Finally, click on OK, which will close drakpxelinux. Akhirnya, klik OK, yang akan menutup drakpxelinux.

NFS server configuration Konfigurasi server NFS

You are finished with the PXE configuration. Anda selesai dengan konfigurasi PXE. Now you just have to configure the server to act as an NFS server, which is very simple. Sekarang Anda hanya perlu mengkonfigurasi server untuk bertindak sebagai server NFS, yang sangat sederhana. Edit the file /etc/exports. Edit file / etc / exports. You must add this line: Anda harus menambahkan baris ini:

/iso/ ip/netmask(sync) / iso / ip / netmask (sync)

Where /iso/ is the directory where the Mandriva ISOs are located, and ip/netmask is the address range of your local network, for example 192.168.0.0/255.255.255.0. Mana / iso / adalah direktori dimana ISO Mandriva terletak, dan ip / netmask adalah rentang alamat jaringan lokal Anda, misalnya 192.168.0.0/255.255.255.0. (sync) indicates that transfers should be sent in synchronous mode between the server and the client (a little slower than asynchronous, but recommended). (sync) menunjukkan bahwa transfer harus dikirim dalam modus sinkron antara server dan klien (sedikit lebih lambat dari asynchronous, tapi direkomendasikan).

To export the directory via NFS, run exportfs -a . Mengekspor direktori melalui NFS, menjalankan exportfs-a.

Installation Instalasi

Everything is now configured! Semuanya sekarang dikonfigurasi! All you have to do now is boot the machine which will receive the installation, choose the NFS method in stage 1, and provide the IP address of the server and the directory of the ISOs (/iso in our example). Yang harus Anda lakukan sekarang adalah mem-boot mesin yang akan menerima instalasi, pilih metode NFS di tahap 1, dan memberikan alamat IP dari server dan direktori dari ISO (/ iso pada contoh kita). The installation will start from CD1 as if it was in the CD-ROM drive. Instalasi akan mulai dari CD1 seolah-olah itu di CD-ROM. You can now proceed to do a normal Mandriva installation. Anda sekarang dapat melanjutkan untuk melakukan instalasi Mandriva normal. Note that you could use any other installation method too, once the system has booted over PXE. Perlu diketahui bahwa Anda bisa menggunakan metode instalasi lain juga, setelah sistem telah boot dari PXE.

0 komentar: