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 [26/12/2012 16:21] dani [Clonezilla] |
tuto:ipasserelle:divers:boot_pxe [23/12/2014 15:10] (Version actuelle) dani [Ubuntu] |
mkdir /tftpboot/gparted/ | mkdir /tftpboot/gparted/ |
cd /tmp/ | cd /tmp/ |
wget http://downloads.sourceforge.net/project/gparted/gparted-live-stable/0.14.1-1/gparted-live-0.14.1-1.zip?r=http%3A%2F%2Fsourceforge.net%2Fprojects%2Fgparted%2Ffiles%2Fgparted-live-stable%2F0.14.1-1%2F&ts=1356359059&use_mirror=heanet | 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.14.1-1.zip -d /tftpboot/gparted | unzip gparted-live-0.16.1-1-i686-pae.zip -d /tftpboot/gparted |
rm -f gparted-live-0.14.1-1.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 ./ |
cd /tmp/ | cd /tmp/ |
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" | 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-2.0.5-15-i686-pae.zip -d /tftpboot/clonezilla | unzip clonezilla-live-2.0.1-15-i686-pae.zip -d /tftpboot/clonezilla |
rm -f clonezilla-live-2.0.1-15-i686-pae.zip | rm -f clonezilla-live-2.0.1-15-i686-pae.zip |
cd /tftpboot/clonezilla | cd /tftpboot/clonezilla |
| |
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> |
| |
</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> |