Kamis, 20 November 2014 | By: roiputra

PXEInstallMultiDistro Gak penting sebenernya... tp suka.. gmn ?..

NFS

There are two NFS servers for Ubuntu.

nfs-user-server
nfs-kernel-server
As the package name indicates, one runs in user space and the other in kernel space.

Install NFS.

sudo apt-get -y install nfs-kernel-server



The NFS server uses /etc/exports to identify what local directories are available to NFS clients.

We will be using /srv/install and the NFS export to store operating system files used for installation.

sudo mkdir /srv/install
Modify /etc/exports and make /srv/install available for our Linux installations.

Example /etc/exports:

/srv/install                  10.10.1.0/24(ro,async,no_root_squash,no_subtree_check)

The above configuration will allow read-only access via NFS to /srv/install/ for clients on the 10.10.1.0 network.

Export our file system or restart the NFS server.

sudo exportfs -a

or

sudo /etc/init.d/nfs-kernel-server restart

Ubuntu

We will now configure support for Ubuntu to be installed.

There are multiple methods to install Ubuntu over the network, however, we will simply boot the Ubuntu Live CD over the network.

For an unattended method for installing Ubuntu over the network, please reference AutomatedNodeDeployment.

Create the directories to store the Ubuntu 9.10 CD.

sudo mkdir -p /var/lib/tftpboot/Ubuntu/9.10/i386
sudo mkdir -p /var/lib/tftpboot/Ubuntu/9.10/amd64
sudo mkdir -p /srv/install/Ubuntu/9.10/i386
sudo mkdir -p /srv/install/Ubuntu/9.10/amd64
Mount the Ubuntu 9.10 Desktop 64-bit DVD ISO and copy the kernel and initrd to the previously created location (starting around 10.04 a .disk directory on the Ubuntu ISO's are necessary to complete booting, be sure to copy that over as well or booting will freeze).

sudo mkdir /mnt/loop
sudo mount -o loop -t iso9660 /location/of/ISO/ubuntu-9.10-desktop-amd64.iso /mnt/loop
sudo cp /mnt/loop/casper/vmlinuz /var/lib//tftpboot/ubuntu/9.10/amd64
sudo cp /mnt/loop/casper/initrd.lz /var/lib/tftpboot/ubuntu/9.10/amd64
sudo cp -R /mnt/loop/* /srv/install/ubuntu/9.10/amd64
sudo cp -R /mnt/loop/.disk /srv/install/ubuntu/9.10/amd64
sudo umount /mnt/loop
Mount the Ubuntu 9.10 Desktop 32-bit DVD ISO and copy the kernel and initrd to the previously created location (starting around 10.04 a .disk directory on the Ubuntu ISO's are necessary to complete booting, be sure to copy that over as well or booting will freeze).

modifikasi untuk server yg ada ..

buat direktory untuk instalasi 14.04-1 ---> untuk taruh vmlinuz dan  initrd.gz (inget taruh yang dari folder netinstall dari iso untuk booting pxe --> /tftboot/linux/ubuntu14041
copy file instalasi nya ke nfs server --> buat dulu foldernya /images/dev/ubuntu14041s

sudo cp -R /mnt/loop/* /images/dev/ubuntu14041s
sudo cp -R /mnt/loop/.disk /images/dev/ubuntu14041s

buat menu --> 

done

sudo mkdir /mnt/loop
sudo mount -o loop -t iso9660 /location/of/ISO/ubuntu-9.10-desktop-i386.iso /mnt/loop
sudo cp /mnt/loop/casper/vmlinuz /var/lib//tftpboot/ubuntu/9.10/i386
sudo cp /mnt/loop/casper/initrd.lz /var/lib/tftpboot/ubuntu/9.10/i386
sudo cp -R /mnt/loop/* /srv/install/ubuntu/9.10/i386
sudo cp -R /mnt/loop/.disk /srv/install/ubuntu/9.10/i386
sudo umount /mnt/loop
Create the Ubuntu menu.


touch /var/lib/tftpboot/Ubuntu/Ubuntu.menu
Example /var/lib/tftpboot/Ubuntu/Ubuntu.menu:

LABEL 2
        MENU LABEL Ubuntu 9.10 (64-bit)
        KERNEL Ubuntu/9.10/amd64/vmlinuz
        APPEND boot=casper netboot=nfs nfsroot=10.10.1.10:/srv/install/Ubuntu/9.10/amd64 initrd=Ubuntu/9.10/amd64/initrd.lz
        TEXT HELP
        Boot the Ubuntu 9.10 64-bit DVD
        ENDTEXT
LABEL 1
        MENU LABEL Ubuntu 9.10 (32-bit)
        KERNEL Ubuntu/9.10/i386/vmlinuz
        APPEND boot=casper netboot=nfs nfsroot=10.10.1.10:/srv/install/Ubuntu/9.10/i386 initrd=Ubuntu/9.10/i386/initrd.lz
        TEXT HELP
        Boot the Ubuntu 9.10 32-bit DVD
        ENDTEXT
The boot process may appear to halt at "squashfs: version 3.3 (2007/10/31)Phillip Lougher".

Press Alt+Enter and the initialization will resume.

https://help.ubuntu.com/community/PXEInstallMultiDistro

0 komentar:

Posting Komentar