Depending on the operating system running on the machine to use as network installation source for SUSE Linux, there are several options for the server configuration. The easiest way to set up an installation server is to use YaST on SUSE LINUX Enterprise Server 9 or SUSE Linux 9.3 and higher. On other versions of SUSE LINUX Enterprise Server or SUSE Linux, set up the installation source manually.
![]() | Tip |
|---|---|
You can even use a Microsoft Windows machine as installation server for your Linux deployment. See Section 1.2.5, “Managing a SMB Installation Source” for details. | |
YaST offers a graphical tool for creating network installation sources. It supports HTTP, FTP, and NFS network installation servers.
Log in as root to the machine that should act as installation server.
Start ++.
Select .
Select the server type (HTTP, FTP, or NFS).
The selected server service is started automatically every time the system starts. If a service of the selected type is already running on your system and you want to configure it manually for the server, deactivate the automatic configuration of the server service with . In both cases, define the directory in which the installation data should be made available on the server.
Configure the required server type.
This step relates to the automatic configuration of
server services. It is skipped when automatic configuration
is deactivated. Define an alias for the root directory of
the FTP or HTTP server on which the installation data should
be found. The installation source will later be located
under
ftp:// (FTP) or under
Server-IP/Alias/Name
http:// (HTTP). Server-IP/Alias/Name
Name stands
for the name of the installation source, which is defined in
the following step. If you selected NFS in the previous
step, define wild cards and exports options. The NFS server
will be accessible under
nfs://. Details of NFS and exports can be found in Chapter 22, Sharing File Systems with NFS. Server-IP/Name
Configure the installation source.
Before the installation media are copied to their destination, define the name of the installation source (ideally, an easily remembered abbreviation of the product and version). YaST allows providing ISO images of the media instead of copies of the installation CDs. If you want this, activate the relevant check box and specify the directory path under which the ISO files can be found locally. Depending on the product to distribute using this installation server, it might be that more add-on CDs or service pack CDs are required to install the product completely. If you activate , YaST automatically reminds you to supply these media. To announce your installation server in the network via OpenSLP, activate the appropriate option.
![]() | Tip |
|---|---|
Consider announcing your installation source via OpenSLP if your network setup supports this option. This saves you from entering the network installation path on every target machine. The target systems are just booted using the SLP boot option and will find the network installation source without any further configuration. For details on this option, refer to Section 1.4, “Booting the Target System for Installation”. | |
Upload the installation data.
The most lengthy step in configuring an installation server is copying the actual installation CDs. Insert the media in the sequence requested by YaST and wait for the copying procedure to end. When the sources have been fully copied, return to the overview of existing information sources and close the configuration by selecting .
Your installation server is now fully configured and ready for service. It is automatically started every time the system is started. No further intervention is required. You only need to configure and start this service correctly by hand if you have deactivated the automatic configuration of the selected network service with YaST as an initial step.
To deactivate an installation source, select in the overview to reach a list of all available installation sources. Choose the entry to remove then select . This delete procedure only relates to the deactivation of the server service. The installation data itself remains in the directory chosen. However, you can remove it manually.
If your installation server should provide the installation data for more than one product of product version, start the YaST installation server module and select in the overview of existing installation sources to configure the new installation source.
Setting up an NFS source for installation is basically done in two steps. In the first step, create the directory structure holding the installation data and copy the installation media over to this structure. Second, export the directory holding the installation data to the network.
To create a directory holding the installation data, proceed as follows:
Log in as root.
Create a directory that should later hold all installation data and change into this directory. For example:
mkdir install/product/productversion
cd install/product/productversion
Replace product with an
abbreviation of the product name (in this case
SUSE Linux) and
productversion with a string that
contains the product name and version.
For each CD contained in the media kit execute the following commands:
Copy the entire content of the installation CD into the installation server directory:
cp -a /media/path_to_your_CD-ROM_drive .Replace
path_to_your_CD-ROM_drive
with the actual path under which your CD or DVD drive is
addressed. Depending on the type of drive used in your
system, this can be cdrom,
cdrecorder,
dvd, or
dvdrecorder.
Rename the directory to the CD number:
mvpath_to_your_CD-ROM_driveCDx
Replace x with the actual
number of your CD.
To export the installation sources via NFS using YaST, proceed as follows:
Log in as root.
Start ++.
Select and and click .
Select and enter the
path to the directory holding the installation data. In this
case, it is
/.productversion
Select and enter the
hostnames of the machines to which to export the
installation data. Instead of specifying hostnames here, you
could also use wild cards, ranges of network addresses, or
just the domain name of your network. Enter the appropriate
export options or leave the default, which works fine in
most setups. For more information about the syntax used in
exporting NFS shares, read the
exports man page.
Click .
The NFS server holding the SUSE Linux installation sources is automatically started and integrated into the boot process.
If you prefer to manually export the installation sources via NFS instead of using the YaST NFS Server module, proceed as follows:
Log in as root.
Open the file /etc/exports and
enter the following line:
/productversion *(ro,root_squash,sync)This exports the directory
/ to any host that is part of this network or to
any host that can connect to this server. To limit the
access to this server, use netmasks or domain names instead
of the general wild card productversion
*. Refer to the
export man page for details. Save
and exit this configuration file.
To add the NFS service to the list of servers started during system boot, execute the following commands:
insserv /etc/init.d/nfsserver insserv /etc/init.d/portmap
Start the NFS server using the following command:
rcnfsserver start
If you need to change the configuration of your NFS server later, modify the configuration file and restart the NFS daemon with rcnfsserver restart.
Announcing the NFS server via OpenSLP makes its address known to all clients in your network.
Log in as root.
Enter the directory
/etc/slp.reg.d/.
Create a configuration file called
install.suse.nfs.reg containing the
following lines:
# Register the NFS Installation Server
service:install.suse:nfs://$HOSTNAME/path_instsource/CD1,en,65535
description=NFS Installation SourceReplace path_instsource with
the actual path to the installation source on your
server.
Save this configuration file and start the OpenSLP daemon using the following command:
rcslpd start
For more information about OpenSLP, refer to the package
documentation located under
/usr/share/doc/packages/openslp/ or refer
to Chapter 19, SLP Services in the Network.
Creating an FTP installation source is very similar to creating an NFS installation source. FTP installation sources can be announced over the network using OpenSLP as well.
Create a directory holding the installation sources as described in Section 1.2.2, “Manual Setup of an NFS Installation Source”.
Configure the FTP server to distribute the contents of your installation directory:
Log in as root and install the package
pure-ftpd (a lean FTP server)
using the YaST package manager.
Enter the FTP server root directory:
cd /srv/ftpCreate a subdirectory holding the installation sources in the FTP root directory:
mkdir instsource Replace instsource with
the product name.
Copy the contents of all installation CDs into the FTP server's root directory (similar to the procedure described in Section 1.2.2, “Manual Setup of an NFS Installation Source”, Step 3).
Alternatively, mount the contents of the already existing installation repository into the change root environment of the FTP server:
mount --bindpath_to_instsource/srv/ftp/instsource
Replace
path_to_instsource and
instsource with values
matching your setup. If you need to make this permanent,
add it to /etc/fstab.
Start pure-ftpd:
pure-ftpd &
Announce the installation source via OpenSLP, if this is supported by your network setup:
Create a configuration file called
install.suse.ftp.reg under
/etc/slp/reg.d/ that contains the
following lines:
# Register the FTP Installation Server
service:install.suse:ftp://$HOSTNAME/srv/ftp/instsource/CD1,en,65535
description=FTP Installation SourceReplace instsource with
the actual name to the installation source directory on
your server. The service: line should
be entered as one continuous line.
Save this configuration file and start the OpenSLP daemon using the following command:
rcslpd start
Creating an HTTP installation source is very similar to creating an NFS installation source. HTTP installation sources can be announced over the network using OpenSLP as well.
Create a directory holding the installation sources as described in Section 1.2.2, “Manual Setup of an NFS Installation Source”.
Configure the HTTP server to distribute the contents of your installation directory:
Install the Web server Apache as described in Section 26.1.2, “Installation”.
Enter the root directory of the HTTP server
(/srv/www/htdocs) and create a
subdirectory that will hold the installation sources:
mkdir instsource
Replace instsource with
the product name.
Create a symbolic link from the location of the
installation sources to the root directory of the Web
server (/srv/www/htdocs):
ln -s/path_instsource/srv/www/htdocs/instsource
Modify the configuration file of the HTTP server
(/etc/apache2/default-server.conf)
to make it follow symbolic links. Replace the following
line:
Options None
with
Options Indexes FollowSymLinks
Reload the HTTP server configuration using rcapache2 reload.
Announce the installation source via OpenSLP, if this is supported by your network setup:
Create a configuration file called
install.suse.http.reg under
/etc/slp/reg.d/ that contains the
following lines:
# Register the HTTP Installation Server
service:install.suse:http://$HOSTNAME/srv/www/htdocs/instsource/CD1/,en,65535
description=HTTP Installation SourceReplace
path_to_instsource with the
actual path to the installation source on your server.
The service: line should be entered
as one continuous line.
Save this configuration file and start the OpenSLP daemon using rcslpd restart.
Using SMB (Samba), you can import the installation sources from a Microsoft Windows server and start your Linux deployment even with no Linux machine around.
To set up an exported Windows Share holding your SUSE Linux installation sources, proceed as follows:
Log in to your Windows machine.
Start Explorer and create a new folder that will hold
the entire installation tree and name it
INSTALL, for example.
Export this share according the procedure outlined in your Windows documentation.
Enter this share and create a subfolder, called
. product
product needs to be
replaced with the actual product name (SUSE Linux in
this case).
Copy each SUSE Linux CD into a separate folder and
name these folders CD1,
CD2, CD3,
etc.
Enter the top directory of the exported share
(INSTALL, in this example) and copy
the following files and folders from
to this
folder: product/CD1content,
media.1,
control.xml, and
boot.
Create a new folder under INSTALL
and name it yast.
Enter the yast folder and create
the files order and
instorder.
Open the order file and enter the
following line:
/NLD/CD1 smb://user:password@hostname/productCD1Replace user with the
username you use on the Windows machine or use
Guest to enable guest login to this
share. password should be
replaced either with your login password or any other string
for guest login. hostname should
be replaced with the network name of your Windows
machine.
Open the instorder file and add the
following line:
/product/CD1