Netzwerkinstallation

aus openSUSE, der freien Wissensdatenbank

Inhaltsverzeichnis

Durchführen einer Netzwerkinstallation

Wenn Sie SuSE Linux auf einem Computer installieren wollen, der nur über einen Netzwerkzugang verfügt haben Sie drei Möglichkeiten. Diese sind:

  • ssh
  • VNC
  • Serielle Konsole

Diese Seite zeigt Ihnen, wie Sie eine Netzwerkinstallation durchführen.

Hochfahren des Computers vorbereiten

Herunterladen der benötigten Installationsdetaien

Zuerst müsssen Sie das SuSE Linux Installationssystem auf dem Computer ausführen. Außerdem müssen Sie die IP-Adresse, die der Computer haben wird, wissen. Nehmen wir an, der Computer hat eine feste IP-Adresse. Wenn Sie DHCP benutzen, müssen Sie nur die Adresse, die der Computer vom DHCP-Server bekommen hat benutzen.

Zuerst müssen Sie das Installationssystem in Ihr /boot Verzeichnis kopieren. Geben Sie dazu folgende Befehle ein:

cd /tmp
wget -O vmlinuz.install ftp://<path to openSUSE>/suseboot/linux32.gz
wget -O initrd.install ftp://<path to openSUSE>/suseboot/initrd32
cp linux32.gz /boot/vmlinuz.install
cp initrd32 /boot/initrd.install

Beispiel für SuSE Linux 10.1 w/mirrors.kernel.org

cd /tmp
wget http://mirrors.kernel.org/opensuse/distribution/SL-10.1/inst-source/suseboot/linux32.gz
wget http://mirrors.kernel.org/opensuse/distribution/SL-10.1/inst-source/suseboot/initrd32
cp linux32.gz /boot/vmlinuz.install
cp initrd32 /boot/initrd.install

Den Bootmanager GRUB konfigurieren

Als nächstes müssen Sie Ihren Bootmanager so konfigurieren, dass er das Installationssystem startet. Ersetzen sie 192.168.10.10 durch die IP-Adresse Ihres Computers, 192.168.10.1 durch Ihr Internetgateway (normalerweise der DSL-Router) und /dev/hda1 durch Ihre Bootpartition.

Die Bootpartition ergebt sich aus /dev/hd für Festplatten. Danach folgt ein Buchstabe für die Nummer der Festplatte (die erste Festplatte hat z.B a) und eine Zahl für die Partition der Festplatte (1 bedeutet die erste Partition).

Fügen Sie nun eine Section wie die Folgende in die Datei /boot/grub/menu.lst ein :

title Boot -- SUSE LINUX 10.1
   root (hd0,0)
   kernel /boot/vmlinuz.install noapic usessh=1 sshpassword="12345678" install=ftp://<path to openSUSE> hostip=192.168.10.10 netmask=255.255.255.0 gateway=192.168.10.1 nameserver=192.168.10.1
   initrd /boot/initrd.install
Bitte beachten Sie 
Das Passwort muss mindestens 8 Zeichen lang sein!

Note that you must enter the IP-address in the path to SUSE Linux instead of the name, if you do not provide a nameserver. Then make this entry default by changing menu.lst at the line

default 0

to reflect the section number of your entry.

NOTE: if you want to boot that section only the next time, do not change the default. Instead use the command grubonce 0, where 0 is the number of your new section.

After doing this, do a reboot.

Example for latest development code w/one of the mirrors.kernel.org sites

title Boot -- SUSE LINUX DEVEL INSTALL
   root (hd0,4)
   kernel /boot/vmlinuz.install usessh=1 sshpassword="12345678" install=http://204.152.191.7/opensuse/distribution/SL-OSS-factory/inst-source hostip=192.139.88.209 netmask=255.255.255.0 gateway=192.139.88.254 nameserver=192.139.88.1
   initrd /boot/initrd.install

Start the Installation

The computer will start again, this time booting your installation image instead of the installed system. To reach the installation image, do a ssh to this system:

ssh -X root@192.168.10.10

and enter the password that was given in sshpassword (in the example above, this is 123454678). All you have to do now, is start yast, and proceed as in a normal installation.

NOTE 
You may get disconnected before entering the root password, then reconnect after some minutes and enter the given installation password from the that was set initially in the grub menu.lst file. After that you have to run /usr/lib/YaST2/startup/YaST2.ssh to continue the installation.

More Information

The options that may be used at the kernel command line are summarized in /usr/share/doc/packages/linuxrc/linuxrc.html. Instead of the colon, use a equal sign like above when adding those options to the kernel command line. linuxrc always tries to find out as many information as possible on itself, so if you don't provide a network connection, it will try to use dhcp to setup its network.