Configuring the PXE and TFTP servers
You can configure or reconfigure the PXE and TFTP servers using the PXE/TFTP Server Configuration tool or from the TrueSight Server Automation console. Configuring the PXE Server enables the TrueSight Server Automation system to communicate with a target server during provisioning in the PXE environment. You configure the TFTP Server so the TrueSight Server Automation system can communicate with it to download the bootstrap program needed to initiate the PXE provisioning process.
This topic includes the following sections:
- Before you begin
- About the PXE/TFTP Server Configuration tool
- PXE server performance recommendations
- To configure the PXE and TFTP servers using the configuration tool
- To configure the PXE and TFTP servers from the console
- To stock the TFTP Server with Linux boot images
- To complete the setup
Before you begin
The PXE server and TFTP server must be installed. See the following tasks:
(Microsoft Windows)
(Linux and UNIX)
- The DHCP server must be installed and configured. See Configuring-a-DHCP-server-on-Windows and Configuring-a-DHCP-server-on-Linux.
- The TFTP server must be configured.
About the PXE/TFTP Server Configuration tool
With the PXE/TFTP Server Configuration tool, you can:
- Set or change database connection parameters for the PXE/TFTP server.
- Configure the PXE server.
- Configure the TFTP server.
- Configure the PXE server for a multiple database provisioning environment.
- Run diagnostic tests that check the PXE/TFTP server configurations.
PXE server performance recommendations
For best PXE server performance, BMC recommends the following blasadmin connection pool settings.
Module | Setting | Description and Recommendation |
---|---|---|
PXE | MinConnections | Minimum connections in the pool for PXE server. BMC recommends a value that is the same as the value for Database – MinGeneralConnections. |
PXE | MaxConnections | Maximum connections in the pool for PXE server. BMC recommends a value that is the same as the value for Database – MaxGeneralConnections. |
To configure the PXE and TFTP servers using the configuration tool
- Start the PXE/TFTP Server Configuration tool by performing one of the following actions:
- (Microsoft Windows) At the end of the PXE installation, on the PXE Server Setup panel, check Configure the PXE server.
- From the Windows Start menu, select Programs > BMC Software > BladeLogic Server Automation Suite > PXE Configuration tool.
Start the tool manually. From the directory where the PXE server is installed, run the blpxeconf script:
On the Database panel, review the database connection parameters set during PXE server installation and edit them if necessary.
To specify database connection parameters, perform one of the following actions:
- If you are not providing a custom connection string, provide information for all fields except Advanced.
To provide parameters in a custom connection string, provide information for: User ID, Password, and Advanced. See PXE database configuration information for multiple databases.
PXE database configuration information
For PXE Options, provide the information listed in the following table:
PXE Options
For TFTP Options, provide the information listed in the following table:
TFTP Options
- (optional) Configure the PXE server for a multiple-database provisioning environment. Use both the PXE MAS Options and the PXE MAS Data Source tabs. (For information, see Setting-up-a-multiple-database-provisioning-environment.)
- (optional) On the Diagnostics tab, click Run to check configuration parameters on the PXE and TFTP servers. The tests check:
- Database connectivity.
- PXE parameters, such as interface to bind, listening port, and TFTP server address.
- TFTP parameters, such as tftp root. In addition, the TFTP test checks if the TFTP server can bind to its port.
- Whether the DHCP server is already running. (A running DHCP server can be a problem because it keeps the PXE server from binding to bootp.)
- PXE Multiple Application Server (MAS) configuration — The test checks to see if DHCP scope options are present.
The Diagnostics Log displays test results and status messages. Test results show the status of the servers, as well as configuration problems and suggested solutions.
The diagnostics tests also generate a log file: <installDirectory>/PXE/br/PxeDiag.log
To configure the PXE and TFTP servers from the console
To see the tab for configuring the PXE server, you must have, at minimum, the ProvisionConfig.Read authorization.
- Choose Configuration > Provisioning Configurations.
- Click the PXE tab.
Provide information about the tab and click OK.
- Click the TFTP tab.
Provide information about the TFTP tab and click OK.
- Stop and restart the PXE server. See Starting-and-stopping-a-PXE-server.
- Stop and restart the TFTP server. See Starting-and-stopping-a-TFTP-server.
To stock the TFTP Server with Linux boot images
If you are provisioning Linux operating systems, you must stock the boot image files before you can start provisioning.
The TFTP server installation process creates the tftproot directory. You must copy the kernel or boot images that you want to provision into subfolders under the tftproot directory on the TFTP server. To stock the directory:
On the TFTP server host, navigate to the following directory:
<{TFTP install directory>\tftproot\X86PC\pxelinux\- Create a subfolder for each operating system that you plan to provision. The subfolder names are not important, but use a naming convention that makes sense, such as os-arch; for example, rhas3-i386 or sles-11-i386.
- Copy the following files into the new sub-directory that you created in the previous step:
- If you plan to provision Windows operating systems, check that the bootmgr.exe and pxeboot.0 files exist in tftproot. If you follow the instructions in Creating WinPE images using the Image Creation wizard, the image creation wizard moves these files into the correct location in tftproot. If you obtain the WinPE image in a different way, see Creating-WinPE-boot-image-files.
If you plan to provision Linux operating systems, copy the vmlinux and initrd.img files from the images\pxeboot directory on the OS media into the Linux subfolder. For example, copy the files to:
<PXE install directory>\tftproot\X86PC\pxelinux\RHEL_5If you plan to provision ESX operating systems, copy the vmlinux and initrd.img files from the isolinux directory on the OS media into the ESX subfolder. For example, copy the files to:
<PXE install directory>\tftproot\X86PC\pxelinux\ESX4If you plan to provision SUSE 11 operating systems, copy the initrd and linux files from the loader directory on the OS media into the SUSE subfolder.
For example. copy Suse\SLES11_x64\DVD1\boot\x86_64\loader\initrd and Suse\SLES11_x64\DVD1\boot\x86_64\loader\linux into:<PXE_ install _directory>\tftproot\X86PC\pxelinux\suse11
- (Optional, Windows) To prevent warnings about missing fonts in the TFTP server logs, add the font file to the tftproot directory, as follows:
- Under the tftproot directory, create the following path: /boot/fonts.
- Copy the wg14_boot.ttf file from the <WAIK installation directory>/boot/fonts into the tftproot/boot/fonts directory.
- When you configure the associated system package type, specify the new file names for the Boot image file name and Boot kernel file name options, relative to the pxelinux directory.For example:
- For Red Hat,rhas3-i386/initrd.img and rhas3-i386/vmlinuz
- For SuSE,sles-11-i386/initrd and sles-11-i386/linux
- Verify that your tftproot directory structure under the PXE root directory is similar to the following example. The folder structure under tftproot is important and must match this example.
To complete the setup
- Set up the TFTP server.
- Set up data stores.
- Stock the data store.
The data store holds all operating system installation files for provisioning, as well as Windows plug-and-play drivers and TrueSight Server Automation RSCD agents. For more information, see Stocking-the-data-store. - Set up all necessary agent installations and add them to the data store.
The TrueSight Server Automation provisioning process installs an agent on all servers so that they can be managed with TrueSight Server Automation. For more information, see Preparing-agents-for-provisioning. - Create boot image files.
TrueSight Server Automation uses Windows PE and Gentoo Linux as boot environments for bare metal provisioning. If you are provisioning:- Windows computers, use WinPE.
- Linux computers, use Gentoo Linux.
Regardless of your target environment, you must create appropriate bootable image files. For information, see Provisioning-servers.
- If you plan to use Unified Extensible Firmware Interface (UEFI), instead of BIOS, for booting hardware over the network during provisioning, perform several preparatory tasks to enable the use of UEFI. For information, see Preparing-for-UEFI-booting.
- (optional) Set up a multidatabase provisioning environment.
In a large, distributed provisioning environment, you might find it more efficient to use multiple Application Servers accessing multiple databases. For information, see Setting-up-a-multiple-database-provisioning-environment.