Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentes Révision précédente Prochaine révision | Révision précédente | ||
en:developpement:productions:sidus4stretch [2017/11/28 18:52] equemene [Administration d'une session] |
en:developpement:productions:sidus4stretch [2020/08/17 15:49] equemene supprimée |
||
---|---|---|---|
Ligne 96: | Ligne 96: | ||
Le "domaine" SIDUS dont nous allons présenter l'installation aura les spécifications suivantes : | Le "domaine" SIDUS dont nous allons présenter l'installation aura les spécifications suivantes : | ||
- | * réseau IP SIDUS de domaine 'sidus.zone' sur des IP '10.20.15.0' à '10.20.17.254' | + | * réseau IP SIDUS de domaine 'sidus.zone' sur des IP '10.20.17.0' à '10.20.17.254' |
* adresse de passerelle, également serveur DNS, DHCP, TFTP, NFS sur '10.20.17.254' | * adresse de passerelle, également serveur DNS, DHCP, TFTP, NFS sur '10.20.17.254' | ||
* adresse IP externe réglée par DHCP sur 'eth0' | * adresse IP externe réglée par DHCP sur 'eth0' | ||
Ligne 261: | Ligne 261: | ||
MENU LABEL SIDUS based on Debian Stretch on x86_64 : OverlayFS mode | MENU LABEL SIDUS based on Debian Stretch on x86_64 : OverlayFS mode | ||
MENU default | MENU default | ||
- | KERNEL vmlinuz-4.9.0-3-amd64@stretch64nfs | + | KERNEL vmlinuz-4.9.0-S-amd64@stretch64nfs |
- | APPEND console=tty1 initrd=initrd.img-4.9.0-3-amd64@stretch64nfs rd.shell sidus=overlay ip=dhcp root=nfs:10.20.17.254:/srv/nfsroot/stretch64nfs:vers=3,rsize=1048576,wsize=1048576,tcp,nolock,noatime,nocto,actimeo=1,intr,hard net.ifnames=0 modprobe.blacklist=nouveau ipv6.disable=1 sky2.disable_msi=1 bnx2.disable_msi=1 intel_pstate=disable kernel.dmesg_restrict=0 | + | APPEND console=tty1 initrd=initrd.img-4.9.0-S-amd64@stretch64nfs rd.shell sidus=overlay ip=dhcp root=nfs:10.20.17.254:/srv/nfsroot/stretch64nfs:vers=3,rsize=1048576,wsize=1048576,tcp,nolock,noatime,nocto,actimeo=1,intr,hard net.ifnames=0 modprobe.blacklist=nouveau ipv6.disable=1 sky2.disable_msi=1 bnx2.disable_msi=1 intel_pstate=disable kernel.dmesg_restrict=0 |
LABEL stretch64aufs | LABEL stretch64aufs | ||
MENU LABEL SIDUS based on Debian Stretch on x86_64 : AUFS mode | MENU LABEL SIDUS based on Debian Stretch on x86_64 : AUFS mode | ||
#MENU default | #MENU default | ||
- | KERNEL vmlinuz-4.9.0-3-amd64@stretch64nfs | + | KERNEL vmlinuz-4.9.0-S-amd64@stretch64nfs |
- | APPEND console=tty1 initrd=initrd.img-4.9.0-3-amd64@stretch64nfs rd.shell sidus=aufs ip=dhcp root=nfs:10.20.17.254:/srv/nfsroot/stretch64nfs:vers=3,rsize=1048576,wsize=1048576,tcp,nolock,noatime,nocto,actimeo=1,intr,hard net.ifnames=0 modprobe.blacklist=nouveau ipv6.disable=1 sky2.disable_msi=1 bnx2.disable_msi=1 intel_pstate=disable kernel.dmesg_restrict=0 | + | APPEND console=tty1 initrd=initrd.img-4.9.0-S-amd64@stretch64nfs rd.shell sidus=aufs ip=dhcp root=nfs:10.20.17.254:/srv/nfsroot/stretch64nfs:vers=3,rsize=1048576,wsize=1048576,tcp,nolock,noatime,nocto,actimeo=1,intr,hard net.ifnames=0 modprobe.blacklist=nouveau ipv6.disable=1 sky2.disable_msi=1 bnx2.disable_msi=1 intel_pstate=disable kernel.dmesg_restrict=0 |
</code> | </code> | ||
Ligne 395: | Ligne 395: | ||
(les 2 principaux à ne surtout pas oublier étant ''dracut'' et ''aufs-dkms'' ! ) | (les 2 principaux à ne surtout pas oublier étant ''dracut'' et ''aufs-dkms'' ! ) | ||
<code bash> | <code bash> | ||
- | sidus apt-get update | + | mv ${SIDUS}/etc/apt/sources.list ${SIDUS}/etc/apt/sources.list.orig |
- | sidus apt-get -y install aptitude dselect dracut dracut-core dracut-network isc-dhcp-common isc-dhcp-client openssh-server locales aufs-dkms aufs-tools firmware-linux-nonfree bridge-utils firmware-linux firmware-bnx2 dstat sysstat iftop htop iotop emacs lsof tshark mbw strace memtest86 dbench iozone3 psmisc console-setup less vim unscd nfs-common stressapptest mlocate tshark linux-image-${ARCH} linux-headers-${ARCH} | + | wget -O ${SIDUS}/etc/apt/sources.list ${HTTP}/sources.list |
+ | sidus apt update | ||
+ | sidus apt -y install aptitude dselect dracut-core dracut-network isc-dhcp-common isc-dhcp-client openssh-server locales aufs-dkms aufs-tools firmware-linux-nonfree bridge-utils firmware-linux firmware-bnx2 dstat sysstat iftop htop iotop emacs lsof tshark mbw strace memtest86 dbench iozone3 psmisc console-setup less vim unscd nfs-common stressapptest mlocate hwloc time net-tools ssh linux-image-${ARCH} linux-headers-${ARCH} | ||
</code> | </code> | ||
Ligne 524: | Ligne 526: | ||
* Pour une architecture amd64 | * Pour une architecture amd64 | ||
<code bash> | <code bash> | ||
- | cp ${SIDUS}/boot/initrd.img-*-${ARCH} /srv/tftp | + | ls ${SIDUS}/boot/initrd* | while read INITRD; do EXTENSION=$(echo ${SIDUS} | awk -F'/' '{ print $NF }'); NEWINITRD=$(echo $INITRD | awk -F'/' '{ print $NF}')@$EXTENSION; cp $INITRD /srv/tftp/$NEWINITRD ; chmod 644 /srv/tftp/$NEWINITRD ; cd /srv/tftp/efi64 ; ln -s ../$NEWINITRD $NEWINITRD ; done |
- | cp ${SIDUS}/boot/vmlinuz-*-${ARCH} /srv/tftp | + | ls ${SIDUS}/boot/vmlinuz* | while read KERNEL; do EXTENSION=$(echo ${SIDUS} | awk -F'/' '{ print $NF }'); NEWKERNEL=$(echo $KERNEL | awk -F'/' '{ print $NF}')@$EXTENSION; cp $KERNEL /srv/tftp/$NEWKERNEL ; chmod 755 /srv/tftp/$NEWKERNEL ; cd /srv/tftp/efi64 ; ln -s ../$NEWKERNEL $NEWKERNEL ; done |
- | chmod 644 /srv/tftp/initrd.img-*-${ARCH} | + | |
- | rename "s/amd64/amd64.sidus/g" /srv/tftp/*${ARCH} | + | |
- | cd /srv/tftp/efi64 | + | |
- | ls ../*${ARCH}.sidus | xargs -I {} sh -c 'export NAME=$(echo "{}" | sed -e "s/\.\.\///g") ; ln -s ../$NAME $NAME' | + | |
</code> | </code> | ||