<chapter id="netinstall-examples"><title>Installing Over the Network (Examples)</title><highlights><para>This chapter provides examples that illustrate how to use DVD or CD
media to install the Solaris OS over the network.</para><itemizedlist><para>All examples in this chapter have the following conditions.</para><listitem><para>The install server</para><itemizedlist><listitem><para>Is a network installation image.</para>
</listitem><listitem><para>Runs the current Solaris release.</para>
</listitem><listitem><para>Is already part of the site's network and naming service.</para>
</listitem>
</itemizedlist>
</listitem><listitem><para>You have already gathered or preconfigured the information
that you need in order to install. For further information, see <olink targetdoc="solinstallpbiu" targetptr="gatherinfo-1" remap="external">Chapter 5, <citetitle remap="chapter">Gathering Information Before Installation or Upgrade (Planning),</citetitle> in <citetitle remap="book">Solaris Express Installation Guide: Planning for Installation and Upgrade</citetitle></olink>.</para>
</listitem>
</itemizedlist>
</highlights><sect1 id="gdlig"><title>Network Installation Over the Same Subnet (Examples)</title><para>This section includes the following examples.</para><itemizedlist><listitem><para><olink type="auto-generated" targetptr="sparcdvd1" remap="internal">Example
7&ndash;1</olink>: <emphasis role="strong">SPARC: Install on the Same Subnet
(With DVD Media)</emphasis></para>
</listitem><listitem><para><olink type="auto-generated" targetptr="sparccd1" remap="internal">Example
7&ndash;2</olink>: <emphasis role="strong">SPARC: Install on the Same Subnet
(With CD Media)</emphasis></para>
</listitem><listitem><para><olink type="auto-generated" targetptr="x86dvd1" remap="internal">Example 7&ndash;3</olink>: <emphasis role="strong">x86: Install on the Same Subnet (With DVD
Media)</emphasis></para>
</listitem><listitem><para><olink type="auto-generated" targetptr="x86cd1" remap="internal">Example 7&ndash;4</olink>: <emphasis role="strong">x86: Install on the Same Subnet (With CD
Media)</emphasis></para>
</listitem>
</itemizedlist><example id="sparcdvd1" arch="sparc"><title><emphasis role="strong">Install
Over the Same Subnet (With DVD Media)</emphasis></title><para>This example creates a SPARC install server with SPARC DVD media. </para><itemizedlist><para>This example has the following conditions:</para><listitem><para>The install client is on the same subnet as the install server.</para>
</listitem><listitem><para>The network installation uses a graphical user interface (GUI)
in a desktop session.</para>
</listitem><listitem><para>General conditions for this example are listed at <olink targetptr="netinstall-examples" remap="internal">Chapter&nbsp;7, Installing Over the Network
(Examples)</olink>.</para>
</listitem>
</itemizedlist><orderedlist><listitem><para><emphasis role="strong">Create and set up a SPARC install
server.</emphasis></para><para>This example creates an install server by copying
the Solaris DVD to the install server's <filename>/export/home/dvdsparc</filename> directory. </para><orderedlist><listitem><para>Insert the Solaris DVD in the SPARC system's drive.</para>
</listitem><listitem><para>Use the following command to create a directory to contain
the DVD image. This command also changes to the <filename>Tools</filename> directory
on the mounted disc. Then the command copies the DVD image in the drive to
the install server's hard disk.</para><screen># <userinput>mkdir -p /export/home/dvdsparc</userinput>
# <userinput>cd /cdrom/cdrom0/s0/Solaris_11/Tools</userinput>
# <userinput>./setup_install_server /export/home/dvdsparc</userinput></screen>
</listitem>
</orderedlist>
</listitem><listitem><para><emphasis role="strong">Install the system with a network
installation image.</emphasis></para><para>In this example, you install with
the Solaris interactive installation GUI.</para><orderedlist><listitem><para>Boot the system from the network.</para>
</listitem><listitem><para>To install with the Solaris interactive installation GUI,
type the following command.</para><screen>ok <userinput>bootnet - install</userinput></screen><para>The system installs from the network.</para>
</listitem><listitem><para>If you are prompted, answer the system configuration questions.
If you preconfigured all of the system information, the installation program
does not prompt you to enter any configuration information.</para><para>After
you confirm the system configuration information, the Welcome to Solaris panel
appears. The installation is complete.</para>
</listitem>
</orderedlist>
</listitem>
</orderedlist><para>For a more detailed explanation about the network installation procedures
that are used in this example, see <olink targetptr="netinstalldvd-28995" remap="internal">Chapter&nbsp;5,
Installing From the Network With DVD Media (Tasks)</olink>.</para>
</example><example id="sparccd1" arch="sparc"><title><emphasis role="strong">Install
Over the Same Subnet (With CD Media)</emphasis></title><para>This example
creates a SPARC install server with SPARC CD media.</para><itemizedlist><para>This example has the following conditions:</para><listitem><para>The install client is on the same subnet as the install server.</para>
</listitem><listitem><para>The network installation uses a graphical user interface (GUI)
in a desktop session.</para>
</listitem><listitem><para>General conditions for this example are listed at <olink targetptr="netinstall-examples" remap="internal">Chapter&nbsp;7, Installing Over the Network
(Examples)</olink>.</para>
</listitem>
</itemizedlist><orderedlist><listitem><para><emphasis role="strong">Create and set up a SPARC install
Server.</emphasis></para><para>The following example illustrates how to create
an install server by copying the CD media to the install server's <filename>/export/home/cdsparc</filename> directory.</para><orderedlist><listitem><para>Insert the Solaris Software for SPARC Platforms - 1 CD in the system's CD-ROM
drive.</para>
</listitem><listitem><para>Use the following command to create a directory for the CD
image. This command also changes to the <filename>Tools</filename> directory
on the mounted disc, and copies the image in the drive to the install server's
hard disk.</para><screen># <userinput>mkdir -p /export/home/cdsparc</userinput>
# <userinput>cd /cdrom/cdrom0/s0/Solaris_11/Tools</userinput>
# <userinput>./setup_install_server /export/home/cdsparc</userinput>
# <userinput>cd /</userinput></screen>
</listitem>
</orderedlist>
</listitem><listitem><para><emphasis role="strong">Add systems to be installed from the
network.</emphasis></para><orderedlist><listitem><para>Insert the Solaris Software for SPARC Platforms - 2 CD in the CD-ROM drive.</para>
</listitem><listitem><para>Use the following command. This command changes to the <filename>Tools</filename> directory on the mounted CD. The command copies the CD in
the CD-ROM drive to the install server's hard disk. Then the command changes
to the root (<filename>/</filename>) directory.</para><screen># <userinput>cd /cdrom/cdrom0/s0/Solaris_11/Tools</userinput>
# <userinput>./add_to_install_server /export/home/cdsparc</userinput>
# <userinput>cd /</userinput></screen>
</listitem><listitem><para>Repeat the previous commands for each Solaris Software CD
that you want to install.</para>
</listitem><listitem><para>Insert the first Solaris Languages for SPARC Platforms CD in the
CD-ROM drive.</para><screen># <userinput>cd /cdrom/cdrom0/s0/Solaris_11/Tools</userinput>
# <userinput>./add_to_install_server /export/home/cdsparc</userinput></screen>
</listitem><listitem><para>Eject CD.</para>
</listitem><listitem><para>Repeat Steps 2d-2e for each Solaris Languages for SPARC Platforms CD.</para>
</listitem>
</orderedlist>
</listitem><listitem><para><emphasis role="strong">Install the system with a network
installation image.</emphasis></para><orderedlist><listitem><para>Boot the system from the network.</para>
</listitem><listitem><para>To install with the Solaris interactive installation GUI,
type the following command.</para><screen>ok <userinput>boot net</userinput></screen><para>The system installs from the network.</para>
</listitem><listitem><para>If you are prompted, answer the system configuration questions.</para><para>After you confirm the system configuration information, the Welcome
to Solaris panel appears. The installation is complete.</para>
</listitem>
</orderedlist>
</listitem>
</orderedlist><para>For a more detailed explanation about the network installation procedures
that are used in this example, see <olink targetptr="netinstall-28995" remap="internal">Chapter&nbsp;6,
Installing From the Network With CD Media (Tasks)</olink>.</para>
</example><example id="x86dvd1" arch="x86"><title><emphasis role="strong">Install Over
the Same Subnet (With DVD Media)</emphasis></title><para>This example creates an x86 install server with x86 DVD media.</para><itemizedlist><para>This example has the following conditions:</para><listitem><para>The install client is on the same subnet as the install server.</para>
</listitem><listitem><para>The network installation uses a graphical user interface (GUI)
in a desktop session.</para>
</listitem><listitem><para>General conditions for this example are listed at <olink targetptr="netinstall-examples" remap="internal">Chapter&nbsp;7, Installing Over the Network
(Examples)</olink>.</para>
</listitem>
</itemizedlist><orderedlist><listitem><para><emphasis role="strong">Create and set up an x86 install server.</emphasis></para><para>The following examples illustrate how to create an x86 install server
by copying the Solaris Operating System for x86 Platforms DVD to the install server's <filename>/export/home/dvdx86</filename> directory.</para><orderedlist><listitem><para>Insert the Solaris DVD into the system's drive.</para>
</listitem><listitem><para>Use the following command. This command creates a directory
to contain the boot image. Then this command changes to the <filename>Tools</filename> directory
on the mounted disc. Also, the command copies the disc in the drive to the
install server's hard disk by using the <command>setup_install_server</command> command:</para><screen># <userinput>mkdir -p /export/home/dvdx86</userinput>
# <userinput>cd /cdrom/cdrom0/Solaris_11/Tools</userinput>
# <userinput>./setup_install_server /export/home/dvdx86</userinput></screen>
</listitem><listitem><para>Make the
install server available to the boot server by using either
the <command>share</command> command or the <command>sharemgr</command> utility.</para><itemizedlist><listitem><para>Using the <command>share</command> command,  add this entry
to the <filename>/etc/dfs/dfstab</filename> file.</para><screen remap="wide">share -F nfs -o ro,anon=0 -d "install server directory" <replaceable>/export/home/dvdx86</replaceable></screen>
</listitem><listitem><para>Using the <command>sharemgr</command> utility, enter the following
commands:</para><para><literal>#</literal> <userinput>sharemgr add-share</userinput> <option>d</option> &ldquo;install server directory&rdquo; <option>s</option> <userinput>/export/home/dvdx86
default</userinput><replaceable></replaceable></para><para><literal>#</literal> <userinput>sharemgr set</userinput> <option>P</option> <replaceable>nfs</replaceable> <option>S</option> <replaceable>sys</replaceable> <option>p</option> <userinput>ro="*"</userinput> <option>s</option> <userinput>/export/home/dvdx86 default</userinput></para><para><literal>#</literal> <userinput>sharemgr set</userinput> <option>P</option> <replaceable>nfs</replaceable> <option>p</option> <userinput>anon=0</userinput> <option>s</option> <userinput>/export/home/dvdx86 default</userinput></para>
</listitem>
</itemizedlist>
</listitem><listitem><para>Check if the <command>nfsd</command> daemon is online. If
the <command>nfsd</command> daemon is not online, start it and share it.</para><note><para>If you
are using the <command>sharemgr</command> utility, omit the <command>shareall</command> command.</para>
</note><screen># <userinput>svcs -l svc:/network/nfs/server:default</userinput>
# <userinput>svcadm enable svc:/network/nfs/server</userinput> 
# <userinput>shareall</userinput> 
# <userinput>cd /</userinput></screen>
</listitem>
</orderedlist><note><para>If the install server was running the Solaris 9 OS, or compatible
version, you would type the following command instead.</para><screen># <userinput>ps -ef | grep nfsd</userinput></screen><para>For this older release, if the <command>nfsd</command> daemon was running,
you would continue to the next step. If the  <command>nfsd</command> daemon
was not running, you would start it.</para><screen># <userinput>/etc/init.d/nfs.server start</userinput></screen>
</note>
</listitem><listitem><para><emphasis role="strong">Add systems to be installed from the
network.</emphasis></para><orderedlist><para>The file system <filename>/export/home/dvdx86/</filename> contains the <command>add_install_client</command> command. The install client is named <literal>basil</literal>,
which is an x86 system.</para><listitem><para>Add the client to the install server's <filename>/etc/ethers</filename> file.</para><para>On the client, find the ethers address. The <filename>/etc/ethers</filename> map
is taken from the local file.</para><screen># <userinput>ifconfig -a grep ether</userinput>
ether 8:0:20:b3:39:1d</screen><para>On the install server, open the <filename>/etc/ethers</filename> file
in an editor. Add the address to the list.</para>
</listitem><listitem><para>Use the following command. This command changes to the <filename>Tools</filename> directory on the Solaris DVD image. Then, this command sets
up the client system so that it can be installed from the network. </para><screen><replaceable>install_server</replaceable># <userinput>cd /export/home/dvdx86/Solaris_11/Tools</userinput>
<replaceable>install_server</replaceable># <userinput>./add_install_client basil i86pc</userinput></screen>
</listitem>
</orderedlist>
</listitem><listitem><para><emphasis role="strong">Install the system with a network
installation image.</emphasis></para><para>The Solaris installation programs
for x86 based systems use the GRUB boot loader. This example installs an x86
based system over the network with the GRUB boot loader. </para><orderedlist><listitem><para>In the system BIOS, instruct the system to boot from the network.</para><para>After you exit BIOS, the system installs from the network. The
GRUB menu is displayed.</para>
</listitem><listitem><para>To install the Solaris OS from the network, select the appropriate
Solaris entry on the menu, then press Enter.</para><para>The installation
selection screen is displayed.</para>
</listitem><listitem><para>To install with the Solaris interactive installation GUI,
type 1, then press Enter.</para><para>The installation program begins.</para>
</listitem><listitem><para>If you are prompted, answer the system configuration questions.</para><para>After you confirm the system configuration information, the Welcome
to Solaris panel appears.</para><para>After the system boots and installs
over the network, instruct the system to boot from the disk drive on subsequent
boots.</para><note><para>When you boot the system after the installation, a GRUB menu lists
the operating systems that are installed, including the newly-installed Solaris
OS. Select which operating system you want to boot. The default selection
loads if you do not make another selection.</para>
</note>
</listitem>
</orderedlist>
</listitem>
</orderedlist><para>For further information, see the following references.</para><informaltable frame="topbot"><tgroup cols="2" colsep="0" rowsep="0"><colspec colwidth="50*"/><colspec colwidth="50*"/><thead><row><entry valign="top"><para>Procedure</para>
</entry><entry valign="top"><para>Reference</para>
</entry>
</row>
</thead><tbody><row><entry><para>For a more detailed explanation about the network installation procedures
that are used in this example</para>
</entry><entry><para><olink targetptr="netinstalldvd-28995" remap="internal">Chapter&nbsp;5, Installing From
the Network With DVD Media (Tasks)</olink></para>
</entry>
</row><row><entry><para>For information about how to complete an interactive installation with
the Solaris installation GUI</para>
</entry><entry><para><olink targetdoc="solarisinstall" targetptr="webstart-42" remap="external"><citetitle remap="section">To Install or Upgrade With the Solaris Installation Program With GRUB</citetitle> in <citetitle remap="book">Solaris Express Installation Guide: Basic Installations</citetitle></olink></para>
</entry>
</row><row><entry><para>For overview information about the GRUB boot loader</para>
</entry><entry><para><olink targetdoc="solinstallpbiu" targetptr="grub-1" remap="external">Chapter 6, <citetitle remap="chapter">GRUB Based Booting for Solaris Installation,</citetitle> in <citetitle remap="book">Solaris Express Installation Guide: Planning for Installation and Upgrade</citetitle></olink></para>
</entry>
</row>
</tbody>
</tgroup>
</informaltable>
</example><example id="x86cd1" arch="x86"><title><emphasis role="strong">Install Over
the Same Subnet (With CD Media)</emphasis></title><para>This example creates an x86 install server with x86 CD media.</para><itemizedlist><para>This example has the following conditions:</para><listitem><para>The install client is on the same subnet as the install server.</para>
</listitem><listitem><para>The network installation uses a graphical user interface (GUI)
in a desktop session.</para>
</listitem><listitem><para>General conditions for this example are listed at <olink targetptr="netinstall-examples" remap="internal">Chapter&nbsp;7, Installing Over the Network
(Examples)</olink>.</para>
</listitem>
</itemizedlist><orderedlist><listitem><para><emphasis role="strong">Create and set up an x86 install server.</emphasis></para><orderedlist><para>The following steps create an install server by copying the following
CDs to the install server's <filename>/export/home/cdx86</filename> directory.</para><listitem><para>Insert the Solaris Software - 1 CD in the system's drive.</para>
</listitem><listitem><para>Use the following command. This command creates a directory
for the CD image and changes to the <filename>Tools</filename> directory on
the mounted disc. This command then copies the image in the drive to the install
server's hard disk.</para><screen># <userinput>mkdir -p /export/home/cdx86</userinput>
# <userinput>cd /cdrom/cdrom0/Solaris_11/Tools</userinput>
# <userinput>./setup_install_server /export/home/cdx86</userinput></screen>
</listitem><listitem><para>Insert the Solaris Software - 2 CD in the system's CD-ROM
drive.</para>
</listitem><listitem><para>Use the following command. This command changes to the <filename>Tools</filename> directory on the mounted CD. Then this command copies the
CD in the CD-ROM drive to the install server's hard disk and changes to the
root (<filename>/</filename>) directory.</para><screen># <userinput>cd /cdrom/cdrom0/Solaris_11/Tools</userinput>
# <userinput>./add_to_install_server /export/home/cdx86</userinput>
# <userinput>cd /</userinput></screen>
</listitem><listitem><para>Repeat the previous commands for each Solaris Software CD
that you want to install.</para>
</listitem><listitem><para>Insert the first Solaris Languages CD in the system's
CD-ROM drive.</para>
</listitem><listitem><para>Use the following command. This command changes to the <filename>Tools</filename> directory on the mounted CD. This command then copies the
CD in the CD-ROM drive to the install server's hard disk.</para><screen># <userinput>cd /cdrom/cdrom0/Solaris_11/Tools</userinput>
# <userinput>./add_to_install_server /export/home/cdx86</userinput></screen>
</listitem><listitem><para>Eject CD.</para>
</listitem><listitem><para>Repeat Steps 1f-1h for each Solaris Languages CD.</para>
</listitem>
</orderedlist>
</listitem><listitem><para><emphasis role="strong">Add systems to be installed from the
network.</emphasis></para><para>In this example, the install client is named <literal>basil</literal>, which is an x86 system. The file system <filename>/export/home/cdx86/Solaris_11/Tools</filename> contains the <command>add_install_client</command> command.</para><orderedlist><listitem><para>Add the client to the install server's <filename>/etc/ethers</filename> file.
On the client, find the ethers address. The <filename>/etc/ethers</filename> map
is taken from the local file.</para><screen># <userinput>ifconfig -a grep ether</userinput>
ether 8:0:20:b3:39:1d</screen>
</listitem><listitem><para>On the install server, open the <filename>/etc/ethers</filename> file
in an editor. Add the address to the list.</para>
</listitem><listitem><para>Use the following command. This command changes to the <filename>Tools</filename> directory on the current Solaris release CD image on the install server.
Then this command adds the client system to be installed from the network.</para><screen><replaceable>install_server</replaceable># <userinput>cd /export/home/cdx86/Solaris_11/Tools</userinput>
<replaceable>install_server</replaceable># <userinput>./add_install_client basil i86pc</userinput></screen>
</listitem>
</orderedlist>
</listitem><listitem><para><emphasis role="strong">Install the system with a network
installation image.</emphasis></para><para>This step describes how to install
an x86 based system over the network with the GRUB boot loader.</para><orderedlist><listitem><para>In the system BIOS, instruct the system to boot from the network.</para><para>After you exit BIOS, the system installs from the network. The
GRUB menu is displayed.</para>
</listitem><listitem><para>To install the Solaris OS from the network, select the appropriate
Solaris entry on the menu, then press Enter.</para><para>The installation
selection screen is displayed.</para>
</listitem><listitem><para>To install with the Solaris interactive installation GUI,
type 1, then press Enter.</para><para>The installation program begins.</para>
</listitem><listitem><para>If you are prompted, answer the system configuration questions.</para><para>After you confirm the system configuration information, the Welcome
to Solaris panel appears.</para>
</listitem><listitem><para>After the system boots and installs over the network, instruct
the system to boot from the disk drive on subsequent boots.</para><note><para>When you boot the system after the installation, a GRUB menu lists
the operating systems that are installed, including the newly-installed Solaris
OS. Select which operating system you want to boot. The default selection
loads if you do not make another selection.</para>
</note>
</listitem>
</orderedlist>
</listitem>
</orderedlist><para>For further information, see the following references.</para><informaltable frame="topbot"><tgroup cols="2" colsep="0" rowsep="0"><colspec colwidth="50*"/><colspec colwidth="50*"/><thead><row><entry valign="top"><para>Procedure</para>
</entry><entry valign="top"><para>Reference</para>
</entry>
</row>
</thead><tbody><row><entry><para>For a more detailed explanation about the network installation procedures
that are used in this example</para>
</entry><entry><para><olink targetptr="netinstall-28995" remap="internal">Chapter&nbsp;6, Installing From
the Network With CD Media (Tasks)</olink></para>
</entry>
</row><row><entry><para>For information about how to complete an interactive installation with
the Solaris installation GUI</para>
</entry><entry><para><olink targetdoc="solarisinstall" targetptr="webstart-42" remap="external"><citetitle remap="section">To Install or Upgrade With the Solaris Installation Program With GRUB</citetitle> in <citetitle remap="book">Solaris Express Installation Guide: Basic Installations</citetitle></olink></para>
</entry>
</row><row><entry><para>For overview information about the GRUB boot loader</para>
</entry><entry><para><olink targetdoc="solinstallpbiu" targetptr="grub-1" remap="external">Chapter 6, <citetitle remap="chapter">GRUB Based Booting for Solaris Installation,</citetitle> in <citetitle remap="book">Solaris Express Installation Guide: Planning for Installation and Upgrade</citetitle></olink></para>
</entry>
</row>
</tbody>
</tgroup>
</informaltable>
</example>
</sect1>
</chapter>