SDB:Network installation
Recommended articles
Related articles
Installing from the Internet
Using the network ISO image, you can create a bootable CD or USB memory stick. You can find these ISO images at http://download.opensuse.org/distribution/leap/ or http://software.opensuse.org . Below are direct links:
When everything is set up correctly, you can start the installation. The installation program looks for the fastest available mirror automatically and retrieves the installation files from there. It then proceeds as described in DVD installation, step 1, with the exception of the network configuration step. This is not needed, as the network is already configured and active at this point.
Installing from a local network source
- Boot the system and wait for the boot screen to appear.
- Press
[F2]
to choose the language and your keyboard layout. - Press
[F3]
to choose the screen resolution. - Press
[F4]
and select the desired network protocol. FTP, HTTP, NFS, SMB/CIFS, and SLP (Service Location Protocol) are supported. - Provide the server's address and the path to the installation media:
- Select Installation from the main boot menu and press
[Enter]
to continue. - The installation program automatically configures the network connection using DHCP. If automatic configuration fails, you will be prompted to enter the appropriate parameters.
- The installation retrieves the installation data from the source specified.
- The installation then proceeds as described in the step-by-step installation guide with the exception of the network configuration step needed prior to adding additional repositories. This step is not needed as the network is already configured and active at this point.
Media-free network installation
If you are unable to create installation media, or the machine onto which you are installing does not support removable media, then it is possible to boot the machine directly from the network without any local media.
This method has one important limitation. Only use it to add another, secondary Linux system to your computer. If a network installation is interrupted for any reason, you will need another locally-installed system to restart the installation.
The idea is to boot the system using kernel and initd images published on the Internet or in a repository on the local network. Below is an example using the Leap 15.2 repositories of openSUSE.
You must be the root user for this.
Get the kernel and initrd images
mkdir /boot/install cd /boot/install wget http://download.opensuse.org/distribution/leap/15.2/repo/oss/boot/$(uname -i)/loader/linux wget http://download.opensuse.org/distribution/leap/15.2/repo/oss/boot/$(uname -i)/loader/initrd
There is no need to replace $(uname -i) — the command shell will replace it with your current architecture.
This, however, requires some knowledge of GRUB configuration file /boot/grub/menu.lst format. If not sure, just add this at the end, so it will appear as the last item on the GRUB boot screen.
title install root (sdX,Y) # change this (sdX,Y) kernel /boot/install/oS-15.2.vmlinuz.install install=http://download.opensuse.org/distribution/openSUSE-stable/repo/oss/ initrd /boot/install/oS-15.2.initrd.install
Change (sdX,Y) to whatever your setup requires, e.g. to the partition that was used in the previous entries to download the installation files.
Edit /boot/grub2/custom.cfg
This does require some knowledge of the GRUB2 configuration file /boot/grub2/custom.cfg format. If it doesn't already exist, create it using the following template:
menuentry "Rescue openSUSE 15.2 via HTTP" { search --no-floppy --label --set=root rootpartitionlabel linuxefi /os152/linux showopts install=http://download.opensuse.org/distribution/leap/15.2/repo/oss rescue=1 initrdefi /os152/initrd }
Change rootpartitionlabel to the label of your root partition. If you do not know, use the blkid command to find out.
You will also need to substitute the actual location where you placed the linux and initrd files — /os152/ in the example.
The Rescue entry after menuentry is some descriptive text; this can be anything you like. The rescue=1 entry on the linux line is only necessary if you wish to start a rescue boot. Omit it for a normal or upgrade installation. If you append upgrade=1 to the linux line, then an upgrade installation will be started, which omits most of the questions asked during a normal installation.
Start the Installation
There are two ways to start the installation process:
- Reboot the computer and choose your custom option on the GRUB boot screen. This works only if you edited GRUB as explained above.
or
- Use the kernel's bootloader emulation kexec and skip the hardware reboot. Make sure that package named kexec-tools is installed. Then:
kexec -l /boot/install/oS-15.2.vmlinuz.install --initrd=/boot/install/oS-15.2.initrd.install kexec -e
The first command will load the installation kernel and initrd into memory, and the second will start the new kernel.
Moments after issuing the kexec -e command, you will see the boot messages of the new installation kernel as it initializes.
See also
- Installation help
- Remote installation : how-to install openSUSE on a remote host
- Linuxrc runs before YaST starts and offers many options for further tweaking