Les deux révisions précédentes
Révision précédente
Prochaine révision
|
Révision précédente
|
tuto:ipasserelle:divers:boot_pxe [19/04/2012 16:15] dani [Clonezilla] |
tuto:ipasserelle:divers:boot_pxe [23/12/2014 15:10] (Version actuelle) dani [Ubuntu] |
<code> | <code> |
cd /tmp | cd /tmp |
wget http://www.kernel.org/pub/linux/utils/boot/syslinux/syslinux-3.86.tar.bz2 | wget http://www.kernel.org/pub/linux/utils/boot/syslinux/syslinux-5.00.tar.bz2 |
tar xvjf syslinux-3.86.tar.bz2 | tar xvjf syslinux-5.00.tar.bz2 |
cd syslinux-3.86 | cd syslinux-5.00 |
cp core/pxelinux.0 /tftpboot/ | cp core/pxelinux.0 /tftpboot/ |
cp com32/menu/menu.c32 /tftpboot/ | cp com32/menu/menu.c32 /tftpboot/ |
mkdir /tftpboot/gparted/ | mkdir /tftpboot/gparted/ |
cd /tmp/ | cd /tmp/ |
wget http://downloads.sourceforge.net/project/gparted/gparted-live-stable/0.5.2-9/gparted-live-0.5.2-9.zip?use_mirror=freefr | wget http://downloads.sourceforge.net/project/gparted/gparted-live-stable/0.16.1-1/gparted-live-0.16.1-1-i686-pae.zip?r=http%3A%2F%2Fsourceforge.net%2Fprojects%2Fgparted%2Ffiles%2Fgparted-live-stable%2F0.16.1-1%2F&ts=1373878939&use_mirror=garr |
unzip gparted-live-0.5.2-9.zip -d /tftpboot/gparted | unzip gparted-live-0.16.1-1-i686-pae.zip -d /tftpboot/gparted |
rm -f gparted-live-0.5.2-9.zip | rm -f gparted-live-0.16.1-1-i686-pae.zip |
cd /tftpboot/gparted | cd /tftpboot/gparted |
cp -a ../pxelinux.0 ./ | cp -a ../pxelinux.0 ./ |
label gparted | label gparted |
kernel live/vmlinuz | kernel live/vmlinuz |
append initrd=live/initrd.img boot=live union=aufs noswap noprompt vga=788 fetch=tftp://192.168.7.1/gparted/live/filesystem.squashfs gl_lang=fr_FR gl_kbd=fr keyb=fr gl_batch | append initrd=live/initrd.img boot=live config union=aufs noswap noprompt vga=788 fetch=tftp://192.168.7.1/gparted/live/filesystem.squashfs gl_lang=fr_FR gl_kbd=fr keyb=fr gl_batch |
| |
</code> | </code> |
db thinclient set gparted dist dir "gparted/" install Manual prog pxelinux.0 | db thinclient set gparted dist dir "gparted/" install Manual prog pxelinux.0 |
</code> | </code> |
| |
===== Clonezilla ===== | ===== Clonezilla ===== |
| |
| |
Télécharger la dernière version de l'ISO (en archive zip) de clonzilla-live depuis ici: [[http://www.clonezilla.org/download/sourceforge/stable/iso-zip-files.php|http://www.clonezilla.org/download/sourceforge/stable/iso-zip-files.php]] | Télécharger la dernière version de l'ISO (en archive zip) de clonzilla-live depuis ici: http://www.clonezilla.org/downloads/stable/iso-zip-files.php |
| |
<code bash>mkdir /tftpboot/clonezilla | <code bash>mkdir /tftpboot/clonezilla |
cd /tmp/ | cd /tmp/ |
wget http://downloads.sourceforge.net/project/clonezilla/clonezilla_live_stable/1.2.12-37/clonezilla-live-1.2.12-37-i686-pae.zip?r=http://sourceforge.net/projects/clonezilla/files/clonezilla_live_stable/1.2.12-37/&ts=1334844884&use_mirror=ignum | wget "http://downloads.sourceforge.net/project/clonezilla/clonezilla_live_stable/2.0.1-15/clonezilla-live-2.0.1-15-i686-pae.zip?r=http%3A%2F%2Fsourceforge.net%2Fprojects%2Fclonezilla%2Ffiles%2Fclonezilla_live_stable%2F2.0.1-15%2F&ts=1356535216&use_mirror=garr" |
unzip clonezilla-live-1.2.12-37-i686-pae.zip -d /tftpboot/clonezilla | unzip clonezilla-live-2.0.1-15-i686-pae.zip -d /tftpboot/clonezilla |
rm -f clonezilla-live-1.2.12-37-i686-pae.zip | rm -f clonezilla-live-2.0.1-15-i686-pae.zip |
cd /tftpboot/clonezilla | cd /tftpboot/clonezilla |
cp -a ../pxelinux.0 ./ | cp -a ../pxelinux.0 ./ |
| |
label clonezilla | label clonezilla |
kernel live/vmlinuz | kernel live/vmlinuz |
append initrd=live/initrd.img boot=live union=aufs noswap noprompt vga=788 ocs_lang=fr_FR.UTF-8 ocs_live_keymap="/usr/share/keymaps/i386/azerty/fr-latin9.kmap.gz" ocs_live_run="ocs-live-general" fetch=tftp://192.168.7.1/clonezilla/filesystem.squashfs | append initrd=live/initrd.img boot=live config locales=fr_FR.UTF-8 keyboard-layouts=fr union=aufs noswap noprompt vga=788 ocs_live_run="ocs-live-general" fetch=tftp://192.168.7.1/clonezilla/live/filesystem.squashfs |
</code> | </code> |
| |
db thinclient set clonezilla dist dir "clonezilla/" install Manual prog pxelinux.0 | db thinclient set clonezilla dist dir "clonezilla/" install Manual prog pxelinux.0 |
</code> | </code> |
| |
===== Ubuntu ===== | ===== Ubuntu ===== |
Télécharger l'archive netboot de la version désirée, par exemple http://archive.ubuntu.com/ubuntu/dists/lucid/main/installer-amd64/current/images/netboot/netboot.tar.gz | Télécharger l'archive netboot de la version désirée, par exemple http://archive.ubuntu.com/ubuntu/dists/vivid/main/installer-amd64/current/images/netboot/netboot.tar.gz |
| |
<code bash> | <code bash> |
mkdir -p /tmp/ubuntu | mkdir -p /tmp/ubuntu |
mkdir -p /tftpboot/ubuntu/lucid/x86_64 | mkdir -p /tftpboot/ubuntu/vivid/x86_64 |
cd /tmp/ubuntu | cd /tmp/ubuntu |
wget http://archive.ubuntu.com/ubuntu/dists/lucid/main/installer-amd64/current/images/netboot/netboot.tar.gz | wget http://archive.ubuntu.com/ubuntu/dists/vivid/main/installer-amd64/current/images/netboot/netboot.tar.gz |
tar xvzf netboot.tar.gz | tar xvzf netboot.tar.gz |
mv ./* /tftpboot/ubuntu/lucid/x86_64 | mv ./* /tftpboot/ubuntu/vivid/x86_64 |
</code> | </code> |
| |
Puis ajouter la distribution: | Puis ajouter la distribution: |
<code bash> | <code bash> |
db thinclient set lucid-64b dist dir "ubuntu/lucid/x86_64" install Manual prog pxelinux.0 | db thinclient set vivid-64b dist dir "ubuntu/vivid/x86_64" install Manual prog pxelinux.0 |
</code> | </code> |
| |
label CentOS 6 x86_64 | label CentOS 6 x86_64 |
kernel vmlinuz | kernel vmlinuz |
append initrd.img | append initrd=initrd.img |
| |
EOF | EOF |
<code bash> | <code bash> |
db thinclient set centos-6-x86_64 dist dir "centos/6/x86_64" install Manual prog pxelinux.0 | db thinclient set centos-6-x86_64 dist dir "centos/6/x86_64" install Manual prog pxelinux.0 |
| </code> |
| |
| ===== CentOS 7 ===== |
| |
| <code bash> |
| mkdir -p /tftpboot/centos/7/x86_64 |
| cd /tftpboot/centos/7/x86_64 |
| wget http://mirror.centos.org/centos/7/os/x86_64/images/pxeboot/initrd.img |
| wget http://mirror.centos.org/centos/7/os/x86_64/images/pxeboot/vmlinuz |
| cp -a /tftpboot/{pxelinux.0,menu.c32} ./ |
| mkdir pxelinux.cfg |
| cat <<'EOF' > pxelinux.cfg/default |
| default menu.c32 |
| prompt 0 |
| timeout 1 |
| hiddenmenu |
| |
| label CentOS 7 x86_64 |
| kernel vmlinuz |
| append initrd=initrd.img |
| |
| EOF |
| |
| cat <<'EOF' >> /tftpboot/pxelinux.cfg/default |
| |
| label CentOS 7 x86_64 |
| kernel centos/7/x86_64/vmlinuz |
| append initrd=centos/7/x86_64/initrd.img inst.repo=http://mirror.centos.org/centos/7/os/x86_64/ |
| |
| EOF |
| |
| </code> |
| |
| Puis ajouter la distribution: |
| <code bash> |
| db thinclient set centos-7-x86_64 dist dir "centos/7/x86_64" install Manual prog pxelinux.0 |
</code> | </code> |