Using SIA In PXE-Based Network Installations
|
This chapter explains how to boot the Sun Installation Assistant (SIA) from a Preboot Execution Environment (PXE) and run it in attended (interactive) mode or unattended mode.
SIA is a Linux-based program that can be booted from a Linux-based PXE server. You can create an SIA image on your Linux-based PXE server, boot from it, and use SIA to perform deployment tasks in attended or unattended mode. In attended mode, you use SIA as you normally would to perform tasks using the interactive graphical interface. In unattended mode, SIA will automatically perform server installation tasks, such as operating system installation or firmware upgrades, without user intervention.
Note - For the Microsoft Windows operating system, only Windows Server 2003 is currently supported for an unattended installation using SIA.
|
Topics discussed in this chapter include:
Perform an SIA PXE-Based Attended Installation
These instructions describe how to boot the Sun Installation Assistant from a PXE boot server. This section includes the following procedures:
Note - The SIA program files are Linux-based and must be configured to boot from a Linux PXE server. However, the SIA program when booted from a Linux-based PXE server supports booting the Windows or Linux installation from physical media or an ISO CD image accessible from the network.
|
To Create the SIA Image and Prepare for PXE Boot
|
1. Preconfigure your network to support a Linux-based PXE server network installation.
You may refer to the Linux distribution documentation for more information on configuring a PXE server.
2. In the PXE Linux directory, create a new subdirectory for the SIA image(s).
On a Linux system, for example, the following command line creates a subdirectory for suninstall images:
# mkdir /home/pxeboot/suninstall
3. Insert the SIA CD/DVD into a CD/DVD drive of a Linux-based PXE server and mount the CD/DVD.
4. Copy the vmlinuz (the bootable Linux kernel) and initrd (initial ram disk) files from the SIA CD/DVD to the suninstall subdirectory that you created.
Use the correct path to the mounted CD image. This example uses /mnt/cdrom:
# cp /mnt/cdrom/boot/isolinux/vmlinuz /home/pxeboot/suninstall
# cp /mnt/cdrom/boot/isolinux/initrd.img /home/pxeboot/suninstall
|
5. Use an editor to add the following SIA references to the pxelinux.cfg/default file that is stored in the /home/pxeboot directory.
default suninstall
label suninstall
kernel suninstall/vmlinuz
append initrd=suninstall/initrd.img vga=0x314 ramdisk_size=900000 root=/dev/ram netboot
Note - Type the append command line from append initrd= to netboot as one continuous string with no returns.
|
6. Save the file, and then unmount and remove the SIA CD/DVD from the CD/DVD drive.
7. To boot the SIA PXE image from the PXE server, follow the steps presented in the following procedure.
To Boot SIA From a PXE Server for an Attended Installation
|
The following procedure explains the initial steps you must perform to boot SIA from a PXE Linux-based server. After SIA boots, you perform your installation tasks interactively using the graphical user interface (GUI).
1. Ensure that the target Sun server is configured on the same network as the PXE server, and then reset the Sun server. For example:
- From the service processor (Lights Out Manager) Remote Console web interface, click Remote Control->Remote Power Control then select Reset to reset the host server.
-or-
- Press the Power button on the front panel of the server to turn it off (hold the button in until the server powers off), then press the Power button to turn on the server.
The BIOS screen appears. An example is shown below (your server’s BIOS screen might look different).
Tip - The next events occur very quickly; therefore, focused attention is needed for the following steps. Watch carefully for these messages, as they appear on the screen for a brief time. You might want to enlarge the size of your screen to eliminate scroll bars.
|
2. As the system boots, do one of the following to start a network boot:
- When prompted, press F12 to boot from the first network boot device found.
- When prompted, press F8 to display the boot menu and specify the network boot device.
Tip - On a Sun Blade server module, you can determine the PXE interface boot device by (1) matching the PXE:Slot# (listed on the Please Select Boot Device menu) with the physical NEM or EM slot number label on the chassis, and (2) matching the F# (listed on the Please Select Boot Device menu) with the physical NIC port number label on the NEM (ports 0.0 to 9.0 and 0.1 to 9.1) or EM (ports 0 or port 1).
|
After the network boot device is specified, the system attempts to get the IP address from the DHCP PXE boot server. After the PXE server is found, the PXE boot prompt appears.
3. At the PXE boot prompt, press Enter or type: suninstall
The SIA installation image downloads to the server and the dialog for “Launching the Sun Installation Assistant” appears.
4. For further instructions about how to continue an attended installation after booting SIA from a PXE server, follow the steps (beginning at Step 2) in the procedure To Install an OS With SIA Using Local or Remote Media.
Perform an SIA PXE-Based Unattended Installation
This section describes how to perform unattended (no user interaction required) installation tasks, such as firmware upgrades or operating system installations, utilizing a PXE-based image of SIA. Support for PXE-based installations are available as follows:
- SIA v2.0.1 (and later versions) added the ability to do an SIA PXE-based unattended installation of a supported Linux operating system.
- SIA v2.1.0 (and later versions) added the ability to do an SIA PXE-based unattended installation of a supported Windows Server 2003 operating system.
This section contains the following topics. Refer to the topics that apply to your installation:
Contents of the SIA State File
The SIA state file provides the scripting variables required for carrying out an unattended session of SIA and performing the specified SIA tasks automatically without user intervention. A copy of the state file with all of the possible parameters can be found at the root level on the SIA CD and is accessible by command prompt during an SIA session.
To access the command prompt from SIA, do the following:
1. Boot SIA (locally or through the remote console).
2. At the first screen, press Ctrl-Alt-F2.
A command prompt will be displayed.
3. At the command prompt enter the command:
# cd /root# ls
Look for the externalStateVariables.txt file.
The following table describes the state file variables for the automated tasks that may be performed.
TABLE 6-2 SIA State File Variables (Default Values in Bold Text )
Variable
|
Description
|
Required for Windows Install
|
Required for Linux Install
|
Required for Firmware Upgrade
|
apit.unattended
|
Tells SIA to run in unattended mode. Values supported: true | false
Example: apit.unattended=true
|
X
|
X
|
X
|
apit.welcome.acceptlicense
|
Accepts the SIA license agreement. Values supported: true | false
Example: apit.welcome.acceptlicense=true
|
X
|
X
|
X
|
apit.remoteUpdate
|
Tells SIA to look for SIA software updates. Sun highly recommends performing a remote update to ensure you always install the latest software and firmware. Values supported: true | false
Example: apit.remoteUpdate=true
|
X
|
X
|
X
|
apit.remoteUpdateURL
|
If you specified “true” for remoteUpdate, tells SIA where to look for SIA software updates. Values supported: Any URL with updated SIA content files. You only need to specify this variable if you are not using the default url.
Default url: http://sia-updates.sun.com/remoteUpdate
|
X (if remote Update is true and default url is not used)
|
X (if remote Update is true and default url is not used)
|
X (if remote Update is true and default url is not used)
|
apit.networking
|
Tells SIA it has permission to work over the network. If true, SIA will configure network settings based on networkconfig variables. Values supported: true | false
Example: apit.networking=true
|
X
|
X
|
X
|
apit.networkconfig.needNetwork
|
If you specified “true” for network, tells SIA whether network access is required for a particular task. Values supported: true | false
Example: apit.networkconfig.needNetwork=true
|
X (if net-working is true)
|
X (if net-working is true)
|
X (if net-working is true)
|
apit.networkconfig.activeNic
|
If you specified “true” for network, tells SIA which network interface is connected to the active network. Values supported: eth0 | eth1 | eth2 | eth3 ... etc.
Example: apit.networkconfig.activeNic=eth0
|
X (if net-working is true)
|
X (if net-working is true)
|
X (if net-working is true)
|
apit.networkconfig.NetworkType
|
If you specified “true” for network, tells SIA the configuration of the active network interface. Values supported: static | dhcp
Example: apit.networkconfig.NetworkType=dhcp
|
X (if net-working is true)
|
X (if net-working is true)
|
X (if net-working is true)
|
apit.networkconfig.useDHCP
|
If you selected “dhcp” as the NetworkType, tells SIA to obtain the server’s address from the DHCP server. Values supported: true | false
Example: apit.networkconfig.useDHCP=true
|
X (if net-working is true)
|
X (if net-working is true)
|
X (if net-working is true)
|
apit.networkconfig.ipfield
|
If you selected “static” as the NetworkType, tells SIA to use the server’s IP address value you provide.
Example: apit.networkconfig.ipfield=n.n.n.n
|
X (if static IP is used)
|
X (if static IP is used)
|
X (if static IP is used)
|
apit.networkconfig.gatewayField
|
If you selected “static” as the NetworkType, tells SIA to use the IP address value you provide.
Example: apit.networkconfig.gatewayfield=n.n.n.n
|
X (if static IP is used)
|
X (if static IP is used)
|
X (if static IP is used)
|
apit.networkconfig.netmaskedField
|
If you selected “static” as the NetworkType, tells SIA to use the IP address value you provide.
Example: apit.networkconfig.ipfield=n.n.n.n
|
X (if static IP is used)
|
X (if static IP is used)
|
X (if static IP is used)
|
apit.http_proxy
|
If, for example, you specified “true” for remoteUpdate, tells SIA to use a proxy server for internet access.
Examples:
apit.http_proxy=n.n.n.n (IP address)
apit.http_proxy=file://web-proxy-configfile
apit.http_proxy=http://web-proxy-server
apit.http_proxy=http://internal-host:portnumber
|
X (if proxy used)
|
X (if proxy used)
|
X (if proxy used)
|
apit.taskList.selectedTask
|
Tells SIA which task to perform (only one task can be run per unattended session). This variable is required in the state file. Values supported: SP/Bios Firmware Upgrade | Operating System Installation | HBA Firmware Upgrade | Expander Firmware Upgrade | SP Recovery
Example: apit.taskList.selectedTask=Operating System Installation
|
X
|
X
|
X
|
apit.osid.installLoc
|
Tells SIA where the network image of the Linux operating system to be installed is located.
Example: apit.osid.installLoc=http://path_to_LinuxOS_image
|
|
X
|
|
apit.osid.installMedia
|
Tells SIA where the CD or .iso file for the OS installation software is located. Values supported: cdrom | networkLinux | networkWindows
Example: apit.osid.installMedia=cdrom
|
X
|
X
|
|
apit.osid.installMethod
|
Tells SIA which file transfer protocol to use during the installation. Values supported: http | ftp | nfs
Example: apit.osid.installMethod=http
|
X
|
X
|
|
apit.osid.kickstart
|
Tells SIA where the kickstart file is located for a Linux installation. This could be the URL to the Red Hat kickstart file or the SUSE autoyast file.
Examples:
apit.osid.kickstart=http://url_to_kickstart
apit.osid.kickstart=ftp://url_to_kickstart
apit.osid.kickstart=nfs://url_to_kickstart
|
|
X
|
|
apit.osid.windows.iso.url1
|
Based on the installMethod you chose (http, ftp or nfs), tells SIA where the location of the first Windows OS install disk .iso image file is located.
Examples:
apit.osid.windows.iso.url1=http://path_to_disk1.iso
apit.osid.windows.iso.url1=ftp://path_to_disk1.iso
apit.osid.windows.iso.url1=nfs://path_to_disk1.iso
|
X
|
|
|
apit.osid.windows.iso.url2
|
Based on the installMethod you chose (http, ftp or nfs), tells SIA where the location of the second Windows OS install disk .iso image file is located.
Examples:
apit.osid.windows.iso.url2=http://path_to_disk2.iso
apit.osid.windows.iso.url2=ftp://path_to_disk2.iso
apit.osid.windows.iso.url2=nfs://path_to_disk2.iso
|
X
|
|
|
apit.enclosureID.oldEnclosureID
|
Used as part of a two-step process that allows you to replace a Sun Blade 6000 disk module. The value for this variable must be the old enclosure ID number (also called WWN) that can be found on the circuit board of the blade being replaced.
|
|
|
|
apit.enclosureID.newEnclosureID
|
Used as part of a two-step process that allows you to replace a Sun Blade 6000 disk module. This value for this variable must be the new enclosure ID number (also called WWN) that can be found on the circuit board of the replacement blade.
|
|
|
|
apit.firmware.enabled
|
Tells SIA to enable or disable its firmware update function. Values supported: true | false
Typically used in a test environment, this variable is not required to upgrade firmware.
|
|
|
|
apit.firmware.spIP
|
Part of a firmware upgrade task. Tells SIA the IP address of the server’s service processor.
Example: apit.firmware.spIP=n.n.n.n
|
|
|
X
|
apit.firmware.spPasswd
|
Part of a firmware upgrade task. Tells SIA the password of the server’s service processor.
Example: apit.firmware.spIP=changeme
|
|
|
|
apit.windows.acceptEula
|
Tells SIA to accept the EULA (End User License Agreement), as required when installing the Windows OS.
Example: apit.windows.acceptEula
|
X
|
|
|
apit.windows.adminPasswd
|
Tells SIA the password you wish to use for the administrator account set up during the installation of the Windows OS. Password must comply with Windows password standards.
Example: apit.windows.adminPasswd=myadminpassword
|
X
|
|
|
apit.windows.computerName
|
Tells SIA the computer name you wish to use for the server set up during the installation of the Windows OS.
Example: apit.windows.computerName=mycomputername
|
X
|
|
|
apit.windows.key
|
Tells SIA the product key for your retail copy of the Windows OS. Required during Windows installation.
Example: apit.windows.key=XXXXX-XXXXX-XXXXX-XXXXX-XXXXX
|
X
|
|
|
apit.windows.orgName
|
Tells SIA the organization name you wish to use for the server set up during the installation of the Windows OS.
Example: apit.windows.orgName=myorganization
|
X
|
|
|
apit.windows.userName
|
Tells SIA the user name you wish to use for the initial user account set up during the installation of the Windows OS.
Example: apit.windows.userName=myusername
|
X
|
|
|
apit.done.notifyUrl
|
Tells SIA to access the specified URL following the completion of enabled SIA tasks. This is currently only supported for Sun N1 System Manager.
Example: apit.done.notifyUrl=http://my_destination_url
|
|
|
|
Preparing for an Unattended SIA Installation of Linux
The basic steps for setting up an unattended installation include:
The procedures presented in this section assumes the following:
- You are familiar with RHEL or SLES Linux unattended installations.
- You have created a RHEL Kickstart file or SLES AutoYaST file.
- You have configured the RHEL Kickstart or SLES AutoYaST PXE image with the following options:
- Additional drivers for your server not installed by SIA. This provides you the full supported feature set for installed server components (such as ACPI, video, network and mass storage) as described in your server installation and Product Notes documentation.
- Latest operating system installation patches available from the Linux vendor.
- Required SIA display resolution. SIA should always boot with vga=0x314 from CD-ROM or PXE.
- The Kickstart or AutoYaST file is accessible through an FTP, HTTP, or NFS server.
Creating the SIA Unattended State File for Linux
The SIA state file is a text file that directs the unattended installation of your Linux operating system and other SIA tasks to be performed (such as BIOS/SP firmware upgrade).
Consider these requirements when creating an SIA state file:
- When SIA boots from PXE, the state file must identify the location of the OS media to be installed and the transfer protocol method (FTP, NFS, or HTTP).
- The state file must not contain extraneous spaces or punctuation of any kind.
- The lines specified in the SIA state file must correspond to the steps you would see if you performed the interactive version of the SIA installation program (described in Chapter 2 and Chapter 3).
- The install location must be specified as a boot argument in the configuration file (described inTo Create the SIA Image and Prepare for PXE Boot).
An SIA state file for an unattended Linux installation looks like the following sample, see TABLE 6-2 for an explanation of each variable.
Note - Not all servers support the taskList and firmware options in the SIA state file. Refer to the SIA feature list for your server found on the Sun download site if you are in doubt about support for these options.
|
[STATE_BEGIN noname apit]
apit.unattended=true
apit.welcome.acceptlicense=true
apit.networking=true
apit.networkconfig.needNetwork=true
apit.networkconfig.useDHCP=true
apit.networkconfig.needProxy=false
apit.remoteUpdate=true
apit.remoteupdateURL=http://sia-updates.sun.com/remoteUpdate
apit.http_proxy=path_to_my_http_proxy
apit.taskList.selectedTask=Operating System Installation
apit.osid.installMedia=networkLinux
apit.osid.installMethod=http, ftp or nfs
apit.osid.installLoc=path_to_PXE_file
apit.osid.kickstart=path_to_configuration file
[STATE_DONE noname apit]
|
Setting Up an Unattended Configuration File and PXE OS Install Image for Linux
To set up an unattended configuration file and PXE install image of the OS, refer to the following OS documentation for creating an unattended configuration file and PXE install image, for example:
When done, proceed to To Create the SIA Image and Prepare for PXE Boot.
Preparing for an Unattended SIA Installation of Windows Server 2003
As of SIA software version 2.1.0 (and later versions), you can PXE-boot SIA to do an unattended installation of Window Server 2003 on your Sun server. The basic steps for setting up an unattended installation include:
Note - For the Microsoft Windows operating system, only Windows Server 2003 is currently supported for an unattended installation using SIA.
|
Creating the SIA Unattended State File for Windows
The SIA state file is a text file that directs the unattended installation of your Windows operating system and other SIA tasks to be performed (such as BIOS/SP firmware upgrade).
Consider these requirements when creating an SIA state file:
- When SIA boots from PXE, the state file must identify location of the OS media to be installed and the transfer protocol method (FTP, NFS, or HTTP).
- The state file must not contain extraneous spaces or punctuation of any kind.
- The lines specified in the SIA state file must correspond to the steps you would see if you performed the interactive version of the SIA installation program (described in Chapter 2 and Chapter 3).
An SIA state file for an unattended Windows installation looks like the following sample, see TABLE 6-2 for an explanation of each variable
Note - Not all servers support the taskList and firmware options in the SIA state file. Refer to the SIA feature list for your server found on the Sun download site if you are in doubt about support for these options.
|
[STATE_BEGIN noname apit]
apit.unattended=true
apit.networking=true
apit.welcome.acceptlicense=true
apit.networkconfig.needNetwork=true
apit.networkconfig.useDHCP=true
apit.networkconfig.needProxy=false
apit.taskList.selectedTask=Operating System Installation
apit.remoteUpdate=true
apit.remoteupdateURL=http://sia-updates.sun.com/remoteUpdate
apit.http_proxy=path_to_my_http_proxy
apit.osid.installMedia=networkWindows
apit.osid.installMethod=http, ftp or nfs
apit.osid.url1=path_to_Windows_OS_CD1_iso_file
apit.osid.url2=path_to_Windows_OS_CD2_iso_file
apit.windows.key=XXXXX-XXXX-XXXXX-XXXXX-XXXXX
apit.windows.computerName=computername
apit.windows.orgName=organizationname
apit.windows.userName=username
apit.windows.adminPasswd=password
apit.windows.acceptEula=Yes
[STATE_DONE noname apit]
|
Preparing for an Unattended SIA Firmware Upgrade
You can PXE-boot SIA to do an unattended system firmware upgrade on your Sun server. You can choose tasks such as system BIOS/ILOM upgrade, HBA firmware, and SP recovery. The basic steps for setting up an unattended installation include:
Note - Your server must support firmware upgrades through SIA to use the firmware upgrade option. If you enable an unattended firmware upgrade and an upgrade is not required on the target server (because the upgrade firmware image is either the same or earlier than what’s on the server being upgraded), the unattended install will stop at that point, prompting user intervention to continue. To avoid this, confirm that the firmware image you are using for the upgrade is later than what is already on the target server(s). The firmware version (build number) of the upgrade image is included in the README file. The firmware version (build number) on a target server can be viewed by logging into the server’s service processor and viewing the information through the LOM web interface, or by entering the version command through the CLI.
|
Creating the SIA Unattended State File for Firmware Upgrade
The SIA state file is a text file that directs the unattended installation of your upgraded firmware. See TABLE 6-2 for a description of variables.
Consider these requirements when creating an SIA state file:
- An SIA PXE boot image must already exist on a Linux-based PXE server, see To Create the SIA Image and Prepare for PXE Boot.
- The state file must not contain extraneous spaces or punctuation of any kind.
- The lines specified in the SIA state file must correspond to the steps you would see if you performed the interactive version of the SIA installation program (described in Chapter 2 and Chapter 4).
An SIA state file for an unattended firmware upgrade looks like the following sample, see TABLE 6-2 for an explanation of each variable.
Note - Not all servers support the taskList and firmware options in the SIA state file. Refer to the SIA feature list for your server found on the Sun download site if you are in doubt about support for these options.
|
[STATE_BEGIN noname apit]
apit.unattended=true
apit.networking=true
apit.welcome.acceptlicense=true
apit.networkconfig.needNetwork=true
apit.networkconfig.useDHCP=true
apit.networkconfig.needProxy=false
apit.taskList.selectedTask=SP/Bios Firmware Upgrade
apit.remoteUpdate=true
apit.remoteupdateURL=http://sia-updates.sun.com/remoteUpdate
apit.http_proxy=path_to_my_http_proxy
apit.firmware.spIP=n.n.n.n
apit.firmware.spPasswd=password_for_sp
[STATE_DONE noname apit]
|
To Create the SIA Image and Prepare for PXE Boot
|
After you have prepared for an unattended installation as described in the previous sections, follow the steps below to set up a PXE image to boot SIA and perform an unattended installation.
Tip - For additional information about setting up an SIA PXE boot image, consult the PXE sample target in the /boot/isolinux/isolinux.cfg file on the SIA CD/DVD.
|
1. If you have not already done so, create a network install image of SIA.
For detailed information about how to create an SIA PXE configuration file, see Perform an SIA PXE-Based Attended Installation.
2. Post your modified SIA state file (externalStateVariables.txt) on a web server that the PXE server can access (or on the PXE server itself, if it is configured as a web server).
3. Use an editor to include the following SIA references in the pxelinux.cfg/default file that is stored in the /home/pxeboot directory:
default suninstall
label suninstall
kernel suninstall/vmlinuz
append initrd=suninstall/initrd.img vga=0x314 ramdisk_size=900000 root=/dev/ram0 splash=silent siaurl=http://URL_to_ externalStateVariables.txt splash=silent
Note - Type the append command line from append initrd= to siaurl= as one continuous string with no returns. initrd= must point to the location of the initrd.img on your PXE server that you copied from the SIA CD/DVD and siaurl= must point to the URL for the state file.
|
You can also boot the installer from the network and perform a manual (attended) installation by removing the siaurl= argument from the PXE target.
4. To boot the SIA PXE image from the PXE server and begin the unattended installation, follow the steps presented in To Boot SIA From a PXE Server for an Attended Installation.
To Boot SIA From a PXE Server
|
The following procedure explains the initial steps you must perform to boot SIA from a PXE Linux-based server to initiate the unattended installation.
1. Ensure that the target Sun server is configured on the same network as the PXE server, and then reset the target Sun server. For example:
- From the service processor (Lights Out Manager) Remote Console web interface, click Remote Control->Remote Power Control then select Reset to reset the host server.
-or-
- Press the Power button on the front panel of the server to turn it off (hold the button in until the server powers off), then press the Power button to turn on the server.
The BIOS screen appears. An example is shown below (your server’s BIOS screen might look different).
Tip - The next events occur very quickly; therefore, focused attention is needed for the following steps. Watch carefully for these messages, as they appear on the screen for a brief time. You might want to enlarge the size of your screen to eliminate scroll bars.
|
2. As the system boots, do one of the following to start a network boot:
- When prompted, press F12 to boot from the first network boot device found.
- When prompted, press F8 to display the boot menu and specify the network boot device.
Tip - On a Sun Blade server module, you can determine the PXE interface boot device by (1) matching the PXE:Slot# (listed on the Please Select Boot Device menu) with the physical NEM or EM slot number label on the chassis, and (2) matching the F# (listed on the Please Select Boot Device menu) with the physical NIC port number label on the NEM (ports 0.0 to 9.0 and 0.1 to 9.1) or EM (ports 0 or port 1).
|
After the network boot device is specified, the system attempts to get the IP address from the DHCP PXE boot server. After the PXE server is found, the PXE boot prompt appears.
3. At the PXE boot prompt, press Enter or type: suninstall
The SIA installation image downloads to the server and the dialog for “Launching the Sun Installation Assistant” appears.
4. For information on observing an unattended installation, proceed to the section Observe the SIA PXE-Based Unattended Installation Progress.
Observe the SIA PXE-Based Unattended Installation Progress
Observing an unattended network installation enables you to view the progress of the installation, as well as any diagnostic messages that might appear if problems are encountered during the installation.
The four ways of observing an unattended network installation include:
- Viewing messages from a system console
- Viewing messages from a virtual console or secure shell connection
- Viewing messages from a virtual network computing (VNC) viewer
- Viewing messages from a serial console
If you plan to use a virtual console or VNC viewer to observe the unattended network installation, you must establish passwords for root and VNC.
Topics discussed in the section include:
Set Up Passwords for Root and Virtual Access
Passwords are provided as boot arguments to the installer, either manually when booting from CD or through PXE, or in the PXE boot target:
/home/pxeboot/pxelinux.cfg/default
You will need to set passwords to observe the installation using a virtual console or virtual network computing (VNC) viewer.
Note - When booting from CD, watch for the boot: prompt, as it is displayed for only five seconds. Press any key when the boot: prompt is displayed to allow time to enter the password arguments.
|
For maximum security, use the following password arguments at the CD boot: prompt:
- rootpw=des-crypted-password
The rootpw=des-crypted-password argument enables SSH remote access on a PXE boot without passing a plain text password across the network.
Create des-crypted-password using the following perl script:
# perl -e 'print crypt("password","42"). "\n"'
The string output is what to supply after the rootpw=argument.
This argument enables a password for VNC access.
The remote VNC authorization file is eight binary bytes. You create those eight bytes with vncpasswd and then convert them to a hex-string to be entered here.
Create the hex-string using the following commands:
# vncpasswd /tmp/vncauth
# od -t x1 /tmp/vncauth | awk '/0000000/ \
{print $2 $3 $4 $5 $6 $7 $8 $9}'
|
The string output is what to supply after the vncauth=argument.
The ptextpass=password argument provides a way of passing a plain text password that is to be used for both the root password and the VNC password.
Using a System Console
Typically the system console displays a splash screen during an unattended network installation that prevents you from viewing the console messages. To dismiss the splash screen and view the console messages, press the Esc key.
Using a Virtual Console or Secure Shell (SSH) Connection
The installation interface runs a Linux kernel and provides virtual console access. To access the virtual console, press Ctrl-Alt-F2. You can also use Ctrl-Alt-F3 and Ctrl-Alt-F4 for additional console screens.
Before logging into a virtual console, you must set a root password as a boot argument to the installer. For more information see Set Up Passwords for Root and Virtual Access.
After you have established a connection to a virtual console, you can determine the VNC server IP address and view the standard log files. Alternatively, you can also establish a SSH connection through a serial console using the VNC IP address.
Using a VNC Viewer
When you perform an unattended network installation, virtual network computing (VNC) is enabled by default. If you perform an unattended network installation, you can enable VNC by adding display=vnc as a boot argument.
To Establish Connection Using a VNC Viewer
|
Follow these steps to establish a connection using a VNC viewer.
1. Set a password as shown in Set Up Passwords for Root and Virtual Access.
2. Press the Esc key shortly after the SIA splash screen appears.
Console messages appear. After the VNC server has started, a message appears providing the IP address to connect using VNC.
3. Connect to the VNC viewer using the IP address displayed in Step 2.
For example:
# vncviewer IP_address:1.0
4. When prompted, enter the password that you set in Step 1 and VNC starts.
The installer interface appears when performing a manual installation. The screens automatically move forward as the installation progresses. The VNC screens are active for input and you will disrupt the installation if you do anything in the VNC window.
To Establish Connection Using a Serial Console
|
Follow these steps to establish a connection using a serial console.
1. Use the boot argument console=ttyS0,9600 to have console output redirected to the serial console.
This is helpful when debugging and you want to be able to scroll back to see messages. This will disable output to the VGA console.
2. Set up the serial console through the serial port.
For more information about using a serial console, see the service processor (Lights Out Manager) documentation. The default setup is for the service processor to be available through the serial port.
3. Log in to the service processor and enter the following command to start the console:
# start /SP/console
4. Reboot the system.
5. Select the Network Boot option.
6. Select your SIA target, and then observe the progress of the unattended network installation.
After booting SIA, the serial console is sometimes left in a state where it is writing black text on a black background. If this occurs, reset your terminal to view the text.
For additional information about debugging an unattended network installation, see Debugging Unattended Installation Problems.
Sun Installation Assistant for Windows and Linux User’s Guide
|
820-3357-19
|
![Table Of Contents Table Of Contents](shared/toc01.gif) ![Previous Chapter Previous Chapter](shared/prev01.gif) ![Next Chapter Next Chapter](shared/next01.gif)
|
Copyright © 2009 Sun Microsystems, Inc. All rights reserved.