Citrix Systems 6.1.0 manual Creating an answer file for unattended PXE installation

Page 47

default xenserver label xenserver

kernel mboot.c32

append /tftpboot/xenserver/xen.gz dom0_max_vcpus=1-2 dom0_mem=752M,max:752M com1=115200,8n1 console=com1,vga --- /tftpboot/xenserver/vmlinuz \

xencons=hvc console=hvc0 console=tty0 \

--- /tftpboot/xenserver/install.img

A sample configuration that performs an unattended installation using the answer file at the URL specified:

Note:

To specify which network adapter should be used for retrieving the answer file, include the answerfile_device=ethX or answerfile_device=MAC parameter and specify either the ethernet device number or the MAC address of the device.

default xenserver-auto label xenserver-auto

kernel mboot.c32

append /tftpboot/xenserver/xen.gz dom0_max_vcpus=1-2 dom0_mem=752M,max:752M com1=115200,8n console=com1,vga --- /tftpboot/xenserver/vmlinuz \

xencons=hvc console=hvc0 console=tty0 \ answerfile=http://pxehost.example.com/-answerfile \ install --- /tftpboot/xenserver/install.img

For more information on PXE configuration file syntax, see the SYSLINUX website.

Please refer to your server operating system manual for details for your specific operating system. The information here is a guide that can be used for Red Hat, Fedora, and some other RPM-based distributions.

To set up the XenServer installation media on a HTTP, FTP, or NFS server:

1.On the server, create a new directory from which the XenServer installation media can be exported via HTTP, FTP or NFS.

2.Copy the entire contents of the XenServer installation media to the newly created directory on the HTTP, FTP or NFS server. This is your installation repository.

Note:

To make Supplemental Packs available during installation, copy the contents of each Supplemental Pack ISO into a separate directory within the main installation repository. Customers must edit XS-REPOSITORY-LISTto include the directory name in which the Supplemental Pack resides (on a new line). Otherwise the Supplemental Pack will not be installed. Refer to XenServer 6.1.0 Supplemental Pack & DDK Guide for more details.

Preparing the destination system

1.Start the system and enter the Boot Menu (F12 in most BIOS programs) and select to boot from your Ethernet card.

2.The system should then PXE boot from the installation source you set up, and the installation script will commence. If you have set up an answer file, the installation can proceed unattended.

C.2. Creating an answer file for unattended PXE installation

To perform installations in an unattended fashion, you need to create an XML answer file. Here is an example answer file:

42

Image 47
Contents Citrix XenServer 6.1.0 Installation Guide Trademarks Contents Using Scvmm and Scom with XenServer Boot From SAN Environments About This Document Benefits of Using XenServerAdministering XenServer WelcomeXenServer Editions New Features in XenServerGuest Enhancements XenServer DocumentationReferences XenServer Host System Requirements System RequirementsSystem Requirements Supported Guest Operating Systems XenCenter System RequirementsInstallation Media and Methods Installing XenServer and XenCenterTo install or upgrade the XenServer host Installing the XenServer HostPage Host Partition Format Installing XenCenterTo install XenCenter To connect XenCenter to the XenServer host Connecting XenCenter to the XenServer HostBasic hardware requirements Installation and Deployment ScenariosHigh-level procedure XenServer Hosts with Local StorageXenServer Hosts with Shared NFS Storage Pools of XenServer Hosts with Shared StorageXenServer Hosts with Shared iSCSI Storage Configuring your iSCSI storageConfiguring an iSCSI IQN for each XenServer host Xe pool-param-set uuid=pooluuid default-SR=iscsisharedsruuid IntelliCache Deployment Enabling on Host InstallationXenServer and IntelliCache Converting an Existing Host to Use Thin Provisioning To enable local caching, enter the following commandsImplementation Details and Troubleshooting VM Boot BehaviorXe sr-list params=local-cache-sr,uuid,name-label Integration Requirements for Scvmm Using Scvmm and Scom with XenServerHow to install the Integration Suite Supplemental Pack Integration Requirements for Scom Upgrading XenServer Rolling Pool UpgradesPage Before You Upgrade To upgrade a pool of XenServer hosts using the xe CLI Upgrading XenServer Hosts Using the xe CLIBefore you begin your rolling pool upgrade Before You Upgrade a Single XenServer Host Upgrading a Single XenServer Host Using the xe CLITo upgrade a single XenServer host using the xe CLI Upgrading a Single XenServer Host Using the xe CLITo empty the CD/DVD drive of a VM using the xe CLI Page Upgrading LVM Storage from XenServer 5.0 or Earlier Upgrading LVM-based SRs using the xe CLIBefore you begin updating Applying Updates and Hotfixes to XenServerBefore You Apply an Update or Hotfix Updating Individual XenServer Hosts To update individual hosts using XenCenterTo update individual hosts using the xe CLI Updating a Pool of XenServer Hosts To update a pool of hosts using XenCenterTo update a pool of XenServer hosts using the xe CLI To activate a free XenServer product Licensing XenServerActivating a Free XenServer Product To license XenServer Advanced editions and higher Licensing XenServer EditionsAdditional Licensing Information To configure licensing for XenServer hosts using XenCenterTo configure licensing for XenServer hosts using the xe CLI Grace Period To capture and save the log file Appendix A. TroubleshootingAppendix B. Boot From SAN Environments To configure your Tftp server Appendix C. PXE Boot InstallationsConfiguring your PXE Environment for XenServer Installation Preparing the destination system Creating an answer file for unattended PXE installationElement Description Required? Element Description Required? Element Proto dhcp or static