Differences between revisions 2 and 3
Revision 2 as of 2010-12-21 18:56:54
Size: 3398
Editor: ?skizzhg
Comment:
Revision 3 as of 2016-01-10 00:55:41
Size: 3368
Editor: PaulWise
Comment: update links
Deletions are marked like this. Additions are marked like this.
Line 103: Line 103:
##with a daily build from http://people.debian.org/~joeyh/d-i/images/2004-07-02/netboot/2.6/ ##with a daily build from https://d-i.debian.org/daily-images/

Translation(s): English - Italiano

(!) ?Discussion


Debian-Installer: avvio tramite etherboot

Come avviare un floppy del debian-installer da rete tramite etherboot.

I passi da seguire sono:

  • configurare DHCP
  • configurare etherboot sul client
  • etichettare il floppy d'avvio
  • verifica

Configurazione del server DHCP

  • Installare dhcp-server
  • Usare un file dhcp.conf come il seguente:

 # dhcpd.conf for debian-installer

 # global settings
 allow booting;
 allow bootp;
 default-lease-time 600;
 max-lease-time 7200;

 option domain-name-servers      yournameserver;
 option domain-name              "yourdomain";
 use-host-decl-names             on;

 subnet 192.168.11.0 netmask 255.255.255.0 {
  next-server 192.168.11.1;
  filename "/boot/di.nbi";
  option subnet-mask 255.255.255.0;

    host host1 {
        fixed-address 192.168.11.2;
        hardware ethernet 00:04:76:90:a5:12;
    }
 }

Naturalmente bisogna adattarlo alle proprie esigenze, in particolare la rete, l'indirizzo ip e il MAC address.

Configurazione di tftp

Si installi il pacchetto tftpd che "esporta" /boot in modo predefinito; l'installazione ricarica anche il demone inetd.

Configurare etherboot sul client

Questo permette al computer di effetturare un avvio da rete. Scaricare un'immagine floppy a questo indirizzo Etherboot ROM-O-MATIC dopo aver scelto il tipo di scheda di rete (NIC) e copiarla su un floppy.

Inserire il dischetto nel computer da avviare.

L'immagine

Creare un RAM disk iniziale nella directory build:

  fakeroot make TYPE=netboot initrd

Procurarsi il kernel Linux (vmlinuz) dal pacchetto kernel-image:

  mkdir nuovadirectory ; cd nuovadirectory
  ar -x percorso/a/kernel-image-versione.deb
  tar xf data.tar.gz

Inserire l'immagine:

  mknbi-linux --param="root=ramdisk" --output=/boot/di.nbi vmlinuz netboot-initrd.gz

Se si riceve un errore simile:

  attempt to access beyond end of device
  ...
  VFS: Cannot open root device "ramdisk" or 00:00

Provare con:

  mknbi-linux --param="root=/dev/ram ramdisk_size=8192" --output=/boot/di.nbi vmlinuz netboot-initrd.gz

Verifica

Avviare il computer e controllare se ottiene l'indirizzo con dhcp e quindi l'immagine da TFTP.

Il computer avvierà l'installatore Debian.